Self hosted. All in one instance: from v6 uninstall to v13.5.0-1 new install

Hi Jess,

Thanks for advise. I appreciate your help
We have some errors:

/opt/kaltura/bin/kaltura-sanity.sh
[DWH cycle] [FAILED, RC: 255] - [19.999803303]

kaltlog
==> /opt/kaltura/log/batch/clearcuepoints-0-2018-03-28.err.log <==
PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Internal server error occurred’ in /opt/kaltura/app/ batch/client/KalturaClientBase.php:894

Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaClient.php(4304): KalturaClientBase->throwExceptionIfError(Array)

==> /opt/kaltura/log/batch/extractmedia-0-2018-03-28.err.log <==
PHP Warning: Division by zero in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Warning: Division by zero in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282

line
*/
public function throwExceptionIfError($resultObject)
{
if ($this->isError($resultObject))
{
line894 throw new KalturaException($resultObject[“message”], $resultObject[“code”], $resultObject[“args”])

276 * estimateDuration
277 * estimatedKeyFrameCount - I frame count that shoudl represent both the ForcedKF’s and scenec ut flavors. Typically - duration_in_sec * 3
278 /
279 KalturaLog::log(“estimateDuration($estimateDuration), estimatedKeyFrameCount($estimatedKeyFram eCount), fps($fps), frameStat:”.print_r($framesStat,1));
280
281 $estimatedSize = ($framesStat->I->size/$framesStat->I->cnt)
$estimatedKeyFrameCount;
282 $p2bRatio = ($framesStat->P->size + $framesStat->B->size)/($framesStat->P->cnt + $framesStat-> B->cnt);

[root@sb-kaltura dsmirnof]# rpm -qa “kaltura*”
kaltura-ffmpeg-aux-2.1.3-2.x86_64
kaltura-kvpm-v1.0.6-1.noarch
kaltura-server-13.15.0-1.noarch
kaltura-libmcrypt-2.5.7-5.x86_64
kaltura-kdp3-v3.9.9-2.noarch
kaltura-sphinx-2.2.1-23.x86_64
kaltura-x264-0.140-2.20140104.x86_64
kaltura-krecord-1.0.0-1.noarch
kaltura-mediainfo-0.7.61-9.x86_64
kaltura-monit-5.23.0-2.x86_64
kaltura-librtmp-2.3-3.x86_64
kaltura-html5lib-v2.67-1.noarch
kaltura-batch-13.15.0-1.noarch
kaltura-libopencore-amr-0.1.2-2.x86_64
kaltura-postinst-1.0.33-37.noarch
kaltura-kupload-v1.2.16-2.noarch
kaltura-kdp3wrapper-v37.0-1.noarch
kaltura-libmediainfo-0.7.61-9.x86_64
kaltura-a52dec-0.7.4-11.x86_64
kaltura-kmc-v5.43.12-2.noarch
kaltura-widgets-1.0.0-8.noarch
kaltura-pentaho-4.2.1-2.x86_64
kaltura-lame-3.99.5-3.x86_64
kaltura-html5-studio-v2.2.1-1.noarch
kaltura-kdp-v2.7.0-1.noarch
kaltura-kclip-v1.1.2.1-2.noarch
kaltura-front-13.15.0-1.noarch
kaltura-release-13.15.0-1.noarch
kaltura-base-13.15.0-13.noarch
kaltura-segmenter-1.0-2.x86_64
kaltura-libmcrypt-devel-2.5.7-5.x86_64
kaltura-kcw-1.0.0-6.noarch
kaltura-sshpass-1.05-1.x86_64
kaltura-flexwrapper-v1.2-1.noarch
kaltura-ffmpeg-3.2-5.x86_64
kaltura-clipapp-1.3-2.noarch
kaltura-dwh-12.14.0-1.noarch
kaltura-nginx-1.12.2-5.x86_64
kaltura-kdpwrapper-v11.0-1.noarch

CentOS release 6.9 (Final)
mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
\java version “1.7.0_171”
OpenJDK Runtime Environment (rhel-2.6.13.0.el6_9-x86_64 u171-b01)
OpenJDK 64-Bit Server VM (build 24.171-b01, mixed mode)
Non-SSL

tail -f /opt/kaltura/log/.log /opt/kaltura/log/batch/.log | grep -A 1 -B 1 --color "ERR:|PHP|trace|CRIT|[error]"

==> /opt/kaltura/log/batch/clearcuepoints-0-2018-03-28.err.log <==
PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Internal server error occurred’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:894
Stack trace:
0 /opt/kaltura/app/batch/client/KalturaClient.php(4304): KalturaClientBase->throwExceptionIfError(Array)
==> /opt/kaltura/log/batch/extractmedia-0-2018-03-28.err.log <==
PHP Warning: Division by zero in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 281
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282
PHP Warning: Division by zero in /opt/kaltura/app/infra/media/mediaInfoParser/KMediaFileComplexity.php on line 282

I have error in monit. Apreciate any help. Thanks Dmitri

Starting monit: /opt/kaltura/app/configurations/monit/monit.conf:12: syntax error ‘@’
[FAILED]

SSL ENABLE
PEMFILE /path/to/your/certificate.pem


The Monit HTTP daemon binds to loopback only by default [127.0.0.1]. If you wish to access the I/F from the Monitoring tab in admin console, edit /opt/kaltura/app/configurations/monit/monit.conf and change the following block to suit your needs:

set httpd port 2812
ADDRESS 127.0.0.1
allow root:@MONIT_PASSWD@

Hi @astrava,

See here:

This was fixed for 13.16.0 which was released today but you can easily patch the batch.ini file manually as I explained in my reply.

The DWH test sometimes fails due to timing, does not necessarily means anything is wrong. Check /opt/kaltura/dwh/logs/*log for errors, if you see none, we should be OK.

The @MONIT_PASSWD@ token is replaced in kaltura-base-config.sh.
Not sure why it was not replaced in your case but you can edit the file manually and set a passwd. Once done, restart the kaltura-monit service.

For general guidance in regards to Monit’s configuration, see:

209 [KAsyncExtractMedia : JobHandlerWorker]
210 params.ffmpegCmd = /opt/kaltura/bin/ffmpeg
211 id

Thank you for your help.

Hi Jess,

I added missing directive in /opt/kaltura/app/configurations/batch/batch.ini.
Checked kaltlog: same errors
I have updated to v 13.16
run
/opt/kaltura/bin/kaltura-config-all.sh
** kaltura-base-config.sh**

Appreciate your time and effort, Thanks, Dmitri

kaltlog

==> /opt/kaltura/log/kaltura_apache_errors.log <==
[Thu Mar 29 10:17:33 2018] [error] [client 10.48.12.178] PHP Warning: file_get_contents(/opt/kaltura/app/cache//api_v3/classMap.cache): failed to open stream: Permission denied in /opt/kaltura/app/infra/KAutoloader.php on line 415
[Thu Mar 29 10:17:33 2018] [error] [client 10.48.12.178] PHP Class map could not be loaded from path [/opt/kaltura/app/cache//api_v3/classMap.cache] file permissions [0600]


2018-03-29 10:17:33 [0.011054] [1825021608] [8] [BATCH] [KalturaClientBase->doQueue] NOTICE: server: [sb-kaltura…], session: []
2018-03-29 10:17:33 [0.000319] [1825021608] [9] [BATCH] [KalturaClientBase->doQueue] NOTICE: result (serialized): PHP Class map could not be loaded
2018-03-29 10:17:33 [0.000372] [1825021608] [10] [BATCH] [KScheduleHelper->run] ERR: exception ‘Exception’ with message ‘System is not yet ready - ping failed’ in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/batch/batches/KScheduleHelper.class.php(42): KalturaLog::err(‘System is not y…’)

Hi @astrava,

There are not the same errors as before:)
See:

I might miss something. There were the same errors as before after adding missing directive in /opt/kaltura/app/configurations/batch/batch.ini.
Then I did update to v13.16.
209 [KAsyncExtractMedia : JobHandlerWorker]
210 params.ffmpegCmd = /opt/kaltura/bin/ffmpeg
211 id

There are not the same errors as before after update to v13.16

Hi @astrava,

The errors you originally reported were:

This should be fixed by adding the line I referenced to bach.ini or else, by upgrading to 13.16.0.
The errors you posted here:

Have to do with /opt/kaltura/app/cache and its sub-directories bearing the wrong permissions.
For this, following the commands specified in my reply here:


should provide the solution.

Hi Jess,

In our lab I don’t have CA. How I can configure kaltura SSL to accept self signed certificate?

I appreciate your help. Thank you, Dmitri

Hi @astrava,

See my reply here:

Thank you Jess for your prompt reply.

Hi Jess,

Thank you for following up.

I can loging KMC. I can’t login admin console.

An error occurred
(error code: API:-1)

Closing connection #0

  • Peer certificate cannot be authenticated with known CA certificates

/opt/kaltura/app/configurations/batch/batch.ini
clientConfig.verifySSL = 0

ldd /usr/lib64/php/modules/curl.so |grep curl
libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x00007f2cfa3e4000)

rpm -qf /usr/lib64/libcurl.so.4
libcurl-7.19.7-53.el6_9.x86_64

  • Certificate is signed by an untrusted issuer: 'CN=sb-kaltura. …* NSS error -8172
  • curl: (60) Peer certificate cannot be authenticated with known CA certificates
    More details here: http://curl.haxx.se/docs/sslcerts.html
Kaltura Admin Console
	<h1>An error occurred</h1>
	(error code: API:-1)

Did you uncomment:

;settings.clientConfig.verifySSL = false

in /opt/kaltura//app/configurations/admin.ini?

yes I have:
settings.clientConfig.verifySSL = false

thanks

Please check the logs. Including /opt/kaltura/log/kaltura_admin.log.

/opt/kaltura/bin/kaltura-sanity.sh

[kaltura-kmc ver in KMC config.ini] [PASSED, RC: 0] - [.087427751]

PHP Warning: file_get_contents(http://sb-kaltura…/kmc): failed to open stream: HTTP request failed!
in /opt/kaltura/bin/get_kmc_swfs.php on line 9

line 9 $kmcHtmlContent = file_get_contents($kmcUrl);

[Get KMC SWFs] [FAILED, RC: 255] - [.208401361]
curl: no URL specified!
curl: try ‘curl --help’ or ‘curl --manual’ for more information
[check_start_page] [FAILED, RC: 1] - [.014956962]
curl: no URL specified!
curl: try ‘curl --help’ or ‘curl --manual’ for more information
[check_testme_page] [FAILED, RC: 1] - [.016565026]
[check_kmc_index_page] [FAILED, RC: 1] - [.008963255]
curl: no URL specified!
curl: try ‘curl --help’ or ‘curl --manual’ for more information
[check_admin_console_index_page] [FAILED, RC: 1] - [.013992531]
[check_studio_index_page] [FAILED, RC: 1] - [.023709369]
[check_clipapp_index_page] [FAILED, RC: 1] - [1.505226781]
[Create Partner] [FAILED, RC: 255] - [.489058421]
Partner creation failed. I will skip all tests that require it.
[Red5 file upload] [SKIPPED as OflaDemo isn’t configured]
see: https://github.com/kaltura/platform-install-packages/blob/master/doc/install-kaltura-redhat-based.md#configure-red5-server

The PHP scripts kaltura-sanity.sh runs will not work as they are w/o a valid CA.
That said, if you disable the SSL verification in admin.ini and batch.ini as I detailed before, the Admin Console and batch daemon and its workers should be able to function properly.
However, as mentioned before, it is really most recommended that you configure Apache and Nginx with a proper valid [not self signed] cert, key and CA. For testing, you can just skip SSL altogether. For Production [or any machine whose IP is mapped to real domain and is accessible from www, for that matter], you can use letsencrypt and obtain a valid cert for free.