![]() |
Crons not running from Sites -> Crons
Whenever I create a cron using the Sites->Cron Jobs they wont run. However the same crons run fine in crontab.
Not only that they are not running, but there is no output. I noticed that when creating a Client it has settings for Crons, But I only have one site and therefore have no clients. I am doing it all from my admin. Is that why the crons are not running? Does the Admin by default have no Cron Authority? I am using CentOS 5.4, ISPC 3.0.1.6 |
Most likely you try to start progrems with cron that are not within the jail of the cronjob.
|
I am just trying to run a php file.
0 * * * * /usr/bin/php -q /var/www/clients/client0/web1/cron.php &> /dev/null I don't want to use Wget cause I like to keep my crons private. I know there are ways to protect public cron files, but i still like them in the private folder. This cron runs fine in crontab, but when in Sites -> Cron it wont run. The file and folder are owned by the web1 user. I am getting no output or logging. Does a client have to be created in order to run the cron? |
I'm getting the same problem with a simple backup.sh Script, which I tried to run with the default admin client to backup my website automatically.
So I went through the Cron-Menu in ISPConfig adding a record which contains: Code:
0 0 * * 0 web5 /var/www/clients/client0/web5/BackupScript.shWhen I looked into /var/log/ispconfig/cron.log, there was no output and some errors are shown: Code:
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not foundSo what's missing? |
I've been having problems with crons as well in the past .. the thing is, stuff like PATH env vars aren't there, or aren't the same as if you'd run them from the CLI ..
especially when you jailroot .. you ned to make sure the files you need are within your root |
...but even I create a non-chroot shell user, I assume that ISPConfig is still assigning the new created user jailroot attributes :confused: !
So this is what I found in the created crontab: Code:
MAILTO=''And I used of course full path in my script ! Unforunately this feature is really still confusing on ispconfig. Any idea? |
I decided to give up and set up a crontab manually to perform the backup. It seems not working at all when I use ISPConfig.
|
what's inside BackupWpress.sh?
|
This simple script:
Code:
#!/bin/sh |
is nice available from jailroot as well?
|
| All times are GMT +2. The time now is 18:27. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.