HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   CronJob not starting (http://www.howtoforge.com/forums/showthread.php?t=54350)

Kira 30th September 2011 02:12

CronJob not starting
 
Hi,

I've created a cronjob to run every minute (for testing), but it looks like it's never started..


The command I run is an executable python file:
/var/www/myDomain/cron/myCronJob.py

I used a * for every flag to run it every minute..


I can't see anything in the "ISP Cron Log" about my job, there are only a lot of errors like:
Quote:

sh: /usr/share/awstats/tools/awstats_buildstaticpages.pl: No such file or directory
or:

Quote:

mkdir: cannot create directory `/var/www/clients/client1/web43/var/run/mysqld': File exists
Any idea?

Thanks,
Kira

till 30th September 2011 11:00

The ispc cron log is a ispconfig log file and not a log for your client cronjobs. So the errors that you see there are not related.

My guess is that you created a jailed cronjob, which is the default and as python is not within the jail, the cronjob can not be run. So either you create a unjailed cronjob or you would have to modify the jail and add python.

Kira 30th September 2011 11:43

Hi,

I see this makes sense.

But, how do I create a unjailed cronjob? or alternatively, how do I add Python to the Jail? :)

Thanks,
Kira

till 30th September 2011 11:56

Quote:

But, how do I create a unjailed cronjob?
Edit the client limits and select "Full Cron" as cron type.

Quote:

or alternatively, how do I add Python to the Jail?
You might have to take a look into the jailkit documentation for that:

http://olivier.sessink.nl/jailkit/


All times are GMT +2. The time now is 20:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.