Batches - Gracefully exiting

5 replies [Last post]
Joined: 12/03/2009
Points: 5

Hi,

sometimes on our Kaltura Server i got the message, that some services are down:

Your KalturaCE Server Is Only Partially Functional
1 services are down - go to the Server Monitor to learn more

If i check the batch log i found this:

27/01 16:08:13.29 {214759064} : handleParseCSV - Number of jobs: 0
27/01 16:08:18.29 {214749656} : Gracefully exiting...

Why exiting the batches?
Is it possible to start them automaticly?

Thanks.

Joined: 11/06/2009
Points: 8

I met the same issue... there is no error or warning, the service just killed itself and print "gracefully exit..." in the log.

Also wandered if there is a way to restart the services automatically or keep the services alive.

Joined: 01/05/2009
Points: 1500

Hi,

To automatically start the services - you'll need to set up a scheduled task / cron job to do that.
Regarding the specific batch case - can you send you full set of logs - that way we'll be able to analyze the issue?
You can upload it here as attachment.

Joined: 04/10/2010
Points: 15

could you please give me some hint about writing a cron job for restarting auto the batch ?

I tried adding the script kaltura/alpha/batch/runBatch.sh to init.d , but seems to be wrong, errror when running it in the console :

/etc/init.d/runBatch.sh start
/etc/init.d/runBatch.sh: line 5: kaltura_env.sh: No such file or directory
Could not open input file: runBatch.php

erwin

Joined: 04/16/2010
Points: 1

Hi!

I got do work runBatch.sh

You must exec the script like this:

sudo -u www-data /var/www/kalturaCE_DIR/kaltura/alpha/batch/runBatch.sh start

The first param is the action (start, stop, etc...), the second is optional and is the name of the batch wich you want to make the action.

Your problem is you're exec the script from a wrong location and the script can't load kaltura_env.php with defined variables inside.

Joined: 04/10/2010
Points: 15

Thanks ....