Kaltura CE latest version 11.1.0 blank central screen (menus are shown) in KMC after login and also API -1 Error in KAC

Hi all,

I´ve installed succesful this latest version as you can see in the output of kaltura-sanity.sh script:

[root@gmvtube ~]# /opt/kaltura/bin/kaltura-sanity.sh
[Space on /] [PASSED, RC: 0] - [.003961943]
[Space on /opt/kaltura/web] [PASSED, RC: 0] - [.005126836]
[Check httpd daemon status] [PASSED, RC: 0] - [.029705078]
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 2 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 3 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 4 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 5 seconds to allow the daemon httpd to finish its init after monit restarted it…
[Check httpd daemon is started by Monit] [PASSED, RC: 0] - [6.313345977]
[check daemon httpd init status] [PASSED, RC: 0] - [.005335897]
[Check kaltura-sphinx daemon status] [PASSED, RC: 0] - [.034377865]
[Check kaltura-sphinx daemon is started by Monit] [PASSED, RC: 0] - [10.579670857]
[check daemon kaltura-sphinx init status] [PASSED, RC: 0] - [.005263961]
[Check kaltura-batch daemon status] [PASSED, RC: 0] - [.031632211]
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 2 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 3 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 4 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
[Check kaltura-batch daemon is started by Monit] [PASSED, RC: 0] - [4.191104561]
[check daemon kaltura-batch init status] [PASSED, RC: 0] - [.005164955]
[Check kaltura-monit daemon status] [PASSED, RC: 0] - [.028616123]
[check daemon kaltura-monit init status] [PASSED, RC: 0] - [.005219336]
[Check memcached daemon status] [PASSED, RC: 0] - [.028063904]
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 2 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 3 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 4 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 5 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 6 seconds to allow the daemon memcached to finish its init after monit restarted it…
[Check memcached daemon is started by Monit] [PASSED, RC: 0] - [6.334999762]
[check daemon memcached init status] [PASSED, RC: 0] - [.004939668]
[kaltura-html5lib ver in KMC config.ini] [PASSED, RC: 0] - [.123249185]
[kaltura-kdp3 ver in KDP3 config.ini] [PASSED, RC: 0] - [.053361740]
[kaltura-kmc ver in KMC config.ini] [PASSED, RC: 0] - [.060605843]
[Get KMC SWFs] [PASSED, RC: 0] - [.365834530]
[check_testme_page] [PASSED, RC: 0] - [.402032494]
[check_kmc_index_page] [PASSED, RC: 0] - [.134432681]
[check_admin_console_index_page] [PASSED, RC: 0] - [.411247529]
[check_studio_index_page] [PASSED, RC: 0] - [.113882261]
[check_clipapp_index_page] [PASSED, RC: 0] - [1.025014614]
[Create Partner] [FAILED, RC: 255] - [.252788447]

When I login into KMC the screen shows like this:

Also if I login into KAC the screen shown is:

An error occurred

(error code: API:-1)

Could you please help me?

Many thanks in advance,

Raúl

Hello,

In your browser, open the dev tools and look at the ‘Network’ and ’ Console’ tabs when making the requests.
In the server’s shell:
# source /etc/profile.d/kaltura-base.sh
# kaltlog

and look at the output.

Thank you for your anser,

This is the output:


2015-11-19 15:23:01 [0.000180] [127.0.0.1] [148418789] [51] [API] [SphinxCriteria->applyFilters] DEBUG: Add sort field[entry.CREATED_AT] copy from [entry.CREATED_AT ASC]
2015-11-19 15:23:01 [0.001197] [127.0.0.1] [148418789] [52] [API] [DbManager::connectFallbackLogic] ERR: exception ‘Exception’ with message ‘failed to connect to sphinx2’ in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/db/DbManager.php(279): KalturaLog::err(‘failed to conne…’)

2015-11-19 15:23:32 [0.003976] [127.0.0.1] [2128877148] [6] [API] [kPermissionManager::getFromCache] DEBUG: Found a cache value for key [role_2_partner_-1_internal_1] map hash [a60f4b55e6f56a455b56e246e8161897] in layer [apcSerialized]
2015-11-19 15:23:32 [0.001669] [127.0.0.1] [1668636055] [52] [API] [DbManager::connectFallbackLogic] ERR: exception ‘Exception’ with message ‘failed to connect to sphinx2’ in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/db/DbManager.php(279): KalturaLog::err(‘failed to conne…’)

Hi,

exception ‘Exception’ with message ‘failed to connect to sphinx2’ in /opt/kaltura/app/infra/log/KalturaLog.php:83

Can be solved by editing /opt/kaltura/app/configurations/db.ini, setting
sphinx2.connection.dsn = "mysql:host=127.0.0.1;port=9312;"
but that is not what is causing your issue.
What do you see in the ‘console’ and ‘network’ tabs? also, look at /opt/kaltura/log/kaltura_api_v3.log checking for ‘ERR:’.

Hi again, what i´ve seen in the console is that:

Mixed Content: The page at ‘https://gmvtube.gmv.com/index.php/kmc/kmc1?partner_id=-2&subp_id=-200&ks=MW…1O3JyaGhAZ212LmNvbTtkaXNhYmxlZW50aXRsZW1lbnQ7Ow==&uid=&screen_name=&email=’ was loaded over HTTPS, but requested an insecure script ‘http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js’. This content should also be served over HTTPS.

The point is that I´ve tryed to install kaltura over http but installation fails. Using https what happens is that.

Any idea?

Thank you again,

Trying to install using HTTP the result is:

Checking MySQL version…
Ver 5.5.44-MariaDB found compatible

CREATE USER kaltura;
CREATE USER etl;
CREATE DATABASE kaltura;
CREATE DATABASE kaltura_sphinx_log;
CREATE DATABASE kalturadw;
CREATE DATABASE kalturadw_ds;
CREATE DATABASE kalturadw_bisources;
CREATE DATABASE kalturalog;
Checking connectivity to needed daemons…
Connectivity test passed:)
ERROR: Couldn’t make an API request to https://gmvtube.gmv.com/api_v3/index.php?service=system&action=ping.
Please check your setup and then run /opt/kaltura/bin/kaltura-db-config.sh again.

Do you wish to remove the Kaltura DBs? [n/Y]
Hit ‘n’ to keep it for debugging purposes.

So, if I install using HTTPS then kaltura shares pages using http and https and if I install using HTTP, then kaltura installation process invoques to https.

Note the ‘https://’ so, seems like you passed the wrong service URL to the install?

Hi Jess,

I´ve install a fresh kaltura (from the begining) using HTTP with success result. I´ve pass the kaltura-sanity.sh program with all the tests result:PASSED.

But still having the same problem (blank screen after login).
Now the browser does not say problems between http and https contents but it indicates probles with functions.js:

I executed the commands:

source /etc/profile.d/kaltura_base.sh

kaltlog

but not result in the log when clicking in the top menu options.

Thanks again for your help,

Raúl

Hello,

I suspect you are trying to login to KMC using the admin console credentials. You should go to Admin Console and create a partner and use it to login to KMC.

I can confirm that the same happens for me. After 11.1 upgrade content is empty. Console in FireFox show no sign of error. The kaltlog is filled with errors though, as usual. Video is still available and plays on pages with code previously pasted.

Did you follow:

or:

post upgrading? if so, please paste the errors you see, if not, please do so.

Finally I have installed the new 11.2.0 version using the dame configuration and now all the interfaces are working fine.

Many thank´s Jess for your help.

Hi @jess¨

I am getting these errors:
root@video:~# source /etc/profile.d/kaltura-base.sh
root@video:~# kaltlog
[Tue Jun 28 22:59:06.409595 2016] [authz_core:error] [pid 4645] [client 109.70.113.100:50861] AH01630: client denied by server configuration: /opt/kaltura/app/kmc, referer: http://video.quadcom.ch/index.php/kmc/kmc4
[Tue Jun 28 23:22:05.584244 2016] [:error] [pid 7103] [client 109.70.113.54:50733] PHP Fatal error: Call to undefined method BatchJob::setDeletedAt() in /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kJobsManager.php on line 77


2016-06-28 23:04:42 [0.001067] [109.70.113.100] [1382024206] [12] [PS2] [sfView->initialize] INFO: {sfView} initialize view for "kmc/kmc"
2016-06-28 23:04:42 [0.000956] [109.70.113.100] [1382024206] [13] [PS2] [sfPHPView->renderFile] INFO: {sfView} render "/opt/kaltura/app/alpha/apps/kaltura/modules/kmc/templates/kmcSuccess.php"
2016-06-28 23:04:42 [0.001007] [109.70.113.100] [1382024206] [14] [PS2] [sfPHPView->decorate] INFO: {sfView} decorate content with "/opt/kaltura/app/alpha/apps/kaltura/templates/kmclayout.php"
2016-06-28 23:04:42 [0.000147] [109.70.113.100] [1382024206] [15] [PS2] [sfPHPView->renderFile] INFO: {sfView} render "/opt/kaltura/app/alpha/apps/kaltura/templates/kmclayout.php"
2016-06-28 23:04:42 [0.000685] [109.70.113.100] [1382024206] [16] [PS2] [sfRenderingFilter->execute] INFO: {sfFilter} render to client

==> /opt/kaltura/log/batch/dbcleanup-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]


==> /opt/kaltura/log/batch/dropfolderwatcher-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]


==> /opt/kaltura/log/batch/jobsuspender-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]


==> /opt/kaltura/log/batch/kschedulehelper-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]


==> /opt/kaltura/log/batch/partnerloadcleanup-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]


==> /opt/kaltura/log/batch/synchronizedistribution-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]


==> /opt/kaltura/log/batch/validatelivemediaservers-0-2016-06-28.err.log <==
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]
PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
PHP Class map could not be loaded from path [/opt/kaltura/app/cache//batch/classMap.cache] file permissions [0600]

but directory is chmoded to 775 recursive

Hello,

you are login into kmc with the admin console user
that is not correct

you should login using yoursite.com/admin_console

then create a new partner and now you can go to yoursite.com/kmc
and now login with that partner

Bryan

In addition to what @aquileasfx1 said, which is very true, it seems your main issue now is permissions on the /opt/kaltura/app/cache dir:

PHP Warning: file_get_contents(/opt/kaltura/app/cache//batch/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415 

The directory should be owned by kaltura, with group apache [in the case of RPM based systems] or www-data, in the case of deb based systems. It should be set to 775. So, on CentOS for instance, it should be:

drwxrwxr-x 8 kaltura apache 4096 Jun 22 18:54 /opt/kaltura/app/cache/

and on say, Ubuntu:

drwxrwxr-x 8 kaltura www-data 4096 Jun 22 18:54 /opt/kaltura/app/cache/

I believe in your case, the permissions are wrong. Correct it.
You can also remove existing cached files with:
# find /opt/kaltura/app/cache/ -type f -exec rm {} ;