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

rm $BASE_DIR/app/base-config.lock
rm $BASE_DIR/app/base-config-generator.lock

/opt/kaltura/log/generate.php.log

INFO: Now generating: batchClient using Php5ClientGenerator
WARN: Service [multicenters_filesyncimportbatch] not found
WARN: Service [playready_playreadydrm] not found
WARN: Service [drm_drmprofile] not found
WARN: Missing type [KalturaHuluDistributionField]

id kaltura
uid=7373(kaltura) gid=7373(kaltura) groups=7373(kaltura),48(apache)

php /opt/kaltura/app/deployment/base/scripts/insertContent.php
Queuing action [userRole.add]
Queuing action [user.add]
Executing multirequest
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message ‘couldn’t connect to host’ in /opt/kaltura/app/tests/lib/KalturaClientBase.php:362

Stack trace:
#0 /opt/kaltura/app/tests/lib/KalturaClientBase.php(953):
KalturaClientBase->doQueue()

951 public function doMultiRequest()
952 {
953 return $this->doQueue();
954 }

#1 /opt/kaltura/app/tests/standAloneClient/exec.php(345):
KalturaClientBase->doMultiRequest()
344 echo “Executing multirequest\n”;
345 $multiResponse = $client->doMultiRequest();
346 foreach($multiResponse as $index => $response)

#2 {main}
thrown in /opt/kaltura/app/tests/lib/KalturaClientBase.php on line 362
362 throw new KalturaClientException($error, KalturaClientException::ERROR_GENERIC);

/opt/kaltura/bin/kaltura-sanity.sh
INFO: php5full generated successfully
[Check httpd daemon status] [FAILED, RC: 1] - [.100174303]
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…

I was able to install without httpd SSL . Troubleshooting.

OK. With SSL, please make sure to also set the CA. To verify the Apache SSL config, you can use:

# curl $SERVICE_URL

If that succeeds [without passing the -k arg] then you should be good to go.

Hi Jess,
Thank you for reply. I can’t login to admin console. And I can’t get reset password by email. I’m using right email and password. Please advise. Thanks, Dmitri

Are you sure the DB deployment phase completed successfully?
Please check for errors in /opt/kaltura/log/kaltura_api_v3.log, /opt/kaltura/log/kaltura_apache_errors*.log and /opt/kaltura/log/kaltura_prod.log

we dont have the /opt/kaltura/log/kaltura_prod.log

We have received a message.

-----Original Message-----
Sent: March-27-18 2:36 PM
Subject: Your new Kaltura server is up! and 6 Quick Tips For Smooth Kaltura Maintenance
Dear Kaltura administrator,
Thank you for installing Kaltura, the open source media management platform.
This email confirms that you’ve successfully installed a Kaltura server on:

Hi Jess,

We have a message in the kaltlog:
User was not found’ in /opt/kaltura/app/api_v3/lib/KalturaBaseUserService.php:188
I appreciate your time and effort. Thank you. Dmitri

// if a KS of a specific partner is used, don’t allow logging in to a different partner
169 if ($this->getPartnerId() && $partnerId && $this->getPartnerId() != $partnerId) {
170 throw new KalturaAPIException(KalturaErrors::INVALID_PARTNER_ID, $partnerId);
187 if ($code == kUserException::LOGIN_DATA_NOT_FOUND) {
188 throw new KalturaAPIException(KalturaErrors::USER_NOT_FOUND);

[0.001115] [10.33.3.8] [1587297931] [20] [API] [kCoreException-__construct] ERR: exception ‘kUserException’ in /opt/kaltura/app/alpha/lib/model/UserLoginDataPeer.php:352
Stack trace:
0 /opt/kaltura/app/api_v3/lib/KalturaBaseUserService.php(179): UserLoginDataPeer::userLoginByEmail(‘learning…’, ‘password’, -2, ‘’)

7 {main}
2018-03-28 08:01:32 [0.001739] [10.33.3.8] [1587297931] [21] [API] [KalturaFrontController->getExceptionObject] ERR: exception ‘KalturaAPIException’ with message ‘User was not found’ in /opt/kaltura/app/api_v3/lib/KalturaBaseUserService.php:188
Stack trace:
0 /opt/kaltura/app/api_v3/services/UserService.php(373): KalturaBaseUserService->loginImpl(NULL, ‘learning…’, ‘password’, -2, 86400, ‘disableentitlem…’, ‘’)

mysql> show databases;
±--------------------+
| Database |
±--------------------+
| information_schema |
| kaltura |
| kaltura_sphinx_log |
| kalturadw |
| kalturadw_bisources |
| kalturadw_ds |
| kalturalog |
| mysql |
±--------------------+

/opt/kaltura/app/api_v3/services/UserService.php

349 * Logs a user into a partner account with a user login ID and a user password.
350 *
351 * @action loginByLoginId
352 *
353 * @param string $loginId The user’s email address that identifies the user for login
354 * @param string $password The user’s password
355 * @param int $partnerId The identifier of the partner account
356 * @param int $expiry The requested time (in seconds) before the generated KS expires (By default, a KS expires after 24 hours).
357 * @param string $privileges Special privileges
358 * @param string $otp the user’s one-time password
359 * @return string A session KS for the user
360 * @ksIgnored
361 *
362 * @throws KalturaErrors::USER_NOT_FOUND
363 * @throws KalturaErrors::USER_WRONG_PASSWORD
364 * @throws KalturaErrors::INVALID_PARTNER_ID
365 * @throws KalturaErrors::LOGIN_RETRIES_EXCEEDED
366 * @throws KalturaErrors::LOGIN_BLOCKED
367 * @throws KalturaErrors::PASSWORD_EXPIRED
368 * @throws KalturaErrors::USER_IS_BLOCKED
369 /
370 public function loginByLoginIdAction($loginId, $password, $partnerId = null, $expiry = 86400, $privileges = '
’, $otp = null)
371 {
372 // exceptions might be thrown
373 return parent::loginImpl(null, $loginId, $password, $partnerId, $expiry, $privileges, $otp);
374 }

We have received a message.

-----Original Message-----
Sent: March-27-18 2:36 PM
Subject: Your new Kaltura server is up! and 6 Quick Tips For Smooth Kaltura Maintenance
Dear Kaltura administrator,
Thank you for installing Kaltura, the open source media management platform.
This email confirms that you’ve successfully installed a Kaltura server on:

and
The Kaltura DWH DB seems to already be installed.
DB creation will be skipped.
DWH configured.

====================================================================================================================

Setup completed successfully!

To access your Kaltura tools visit:
http://sb-kaltura.csps-efpc.com

To verify the integrity of your deployment and that all components are fully configured and installed,
you can run the sanity tests using the following command:
/opt/kaltura/bin/kaltura-sanity.sh

To begin, access the Admin Console using the Admin email and password you’ve entered while installing.
When logged in to the KAC, create a new publisher account to being using Kaltura.
Visit http://www.kaltura.org to join the community and get help!

Hi @astrava,

I suspect your DB deployment did not complete successfully.
Also, I am a bit confused by the thread’s subject. Are you upgrading the DB from CE 6 or deploying a fresh one as you’ve previously indicated? Upgrading from 6 is a pretty complex [or perhaps complicated would be a better word] process which is detailed here:

Assuming this is a new deployment and NOT an upgrade from 6, I recommend you drop the existing DB with:

# /opt/kaltura/bin/kaltura-drop-db.sh

and then redeploy it by calling:

# /opt/kaltura/bin/kaltura-db-config.sh <mysql-hostname> <mysql-super-user> <mysql-super-user-passwd> <mysql-port>
# /opt/kaltura/bin/kaltura-dwh-config.sh

If something fails during the execution of either of these scripts, please post the exact output as well as the relevant log entries from the log files I specified before.

Hi Jess,

It was a magic. I was able to connect after running kaltura-drop-db.sh and kaltura-db-config.sh.

and last kaltura-dwh-config.sh
sent 80 bytes received 12 bytes 184.00 bytes/sec
total size is 34770 speedup is 377.93
current version 5999
DWH configured.

Thank you,
Dmitri

Hi Jess,

We have some errors in kaltlog. Please advise. I appreciate your time and effort. Thanks, Dmitri

2018-03-28 10:40:56 [0.004194] [10…] [1564421732] [4] [API] [ks->logError] ERR: exception ‘Exception’ with message ‘Hash [d9b5fee62830c1ded…80] doesn’t match the sha1 on the salt on partner [-1].’ in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/webservices/kSessionUtils.class.php(743): KalturaLog::err(‘Hash [d9b5fee62…’)

#9 {main}
2018-03-28 10:40:56 [0.001957] [10…] [1564421732] [5] [API] [kCoreException->__construct] ERR: exception ‘kCoreException’ with message ‘INVALID_STR’ in /opt/kaltura/app/alpha/apps/kaltura/lib/kCurrentContext.class.php:219
Stack trace:
#0 /opt/kaltura/app/api_v3/lib/KalturaDispatcher.php(79): kCurrentContext::initKsPartnerUser(‘ZDliNWZlZ…’, ‘-1’, ‘’)

==> /opt/kaltura/log/batch/dropfolderwatcher-0-2018-03-28.err.log <==
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/plugins/drop_folder/batch/DropFolderWatcher/KAsyncDropFolderWatcher.class.php on line 69

Hi @astrava,

After deploying a new DB, /opt/kaltura/app/configurations/batch/batch.ini needs to be updated so that the secret directive is set to the admin_secret of partner -1.
Get the secret with:

mysql>  select admin_secret from partner where id=-1;

update the file and restart the kaltura-batch service.

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.