Some ware during my upgrade something broke. Videos is no longer converted.
Starting batch with the following command appears to go well
/etc/init.d/kaltura-batch start
Batch Manager started with PID [ OK ]
Doing a status check, shows it’s not running
/etc/init.d/kaltura-batch status
Service Batch Manager isn’t running [ FAILED ]
Kaltlog shows
2017-11-12 10:09:33 [0.000000] [1566786832] [1] [BATCH] [KSchedulerConfig->load] NOTICE: loading configuration /opt/kaltura/app/configurations/batch at 1507538236
PHP Fatal error: Uncaught exception ‘Zend_Config_Exception’ with message ‘Section ‘demeter’ cannot be found in /opt/kaltura/app/cache//batch/config.ini’ in /opt/kaltura/app/vendor/ZendFramework/library/Zend/Config/Ini.php:150
demeter is the hostname of the machine running batch, which sits behind a SSL ofloader.
I have a vague memory of needing to adjust settings for batch but I cannot remember it now and obviously the changes is now gone, probably during an update.
I found the errors in batch.ini (INSTALLED_HOSNAME). After correcting it and clearing /opt/kaltura/app/cache//batch the batch seems to start.
/etc/init.d/kaltura-batch status
Batch Manager running with PID 32529 [ OK ]
Still there’s no sign of a ffmpeg-prccoess and videos is still stuck. And there’s even more errors in kaltlog.
2017-11-12 10:48:54 [0.000990] [192.168.0.16] [1159056122] [4] [API] [ks->logError] ERR: exception ‘Exception’ with message ‘Hash [618327ae42b56c838844eb581fed53b0912e8e84] doesn’t match the sha1 on the salt on partner [-1].’ in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
Please run:
# dpkg-reconfigure kaltura-batch
After doing so, if you still have issues, manually inspect /opt/kaltura/app/configurations/batch/batch.ini and make sure that:
[@HOSTNAME@ : mainTemplate]
Actually has the correct hostname for the batch node and also that the secret directive actually has the correct secret, as returned by this query:
mysql> select admin_secret from kaltura.partner where id=-1;
If all of this is correctly set up and you’re still having problems, please attach the errors from /opt/kaltura/log/kaltura_batch.log.