Batch fails to start

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.

Debian 8.9
Kaltura 12.20.0-2

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:

2017-11-12 10:49:39 [0.000592] [192.168.0.16] [114591453] [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(‘OGQ0ZTc5MDE2MWN…’, ‘-1’, ‘’)

PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Invalid KS “YWVmYTUxYjhkMDhlMjExOTdlNTlmNjRjN2Y1MGMxMTU4NmIxNzI2NnwtMTs7MTUxMzA3MjIyMjsyOzE1MTA0ODAyMjIuNDc3NDtiYXRjaFVzZXI7ZGlzYWJsZWVudGl0bGVtZW50Oy0xOw==”, Error “-1,INVALID_STR”’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:894
Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaClient.php(4694): KalturaClientBase->throwExceptionIfError(Array)

Hi @i1259161,

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.

Thanks,

dpkg-reconfigure kaltura-batch did it!. Thanks.