Thread: cron Job error
View Single Post
  #5  
Old 2nd January 2013, 12:16
pawan pawan is offline
Senior Member
 
Join Date: Jul 2010
Posts: 222
Thanks: 44
Thanked 6 Times in 6 Posts
Default

my cronjob list look like this:

server1.example.com domain.com 10 * * * * /subdomain-directory/cron.sh

But the the monitor - show job queue shows it pending.

I tried running the command in the terminal the output is like this:
HTML Code:
pawan@server1:~$ sudo su
[sudo] password for pawan: 
root@server1:/home/pawan# rm -f /usr/local/ispconfig/server/temp/.ispconfig_lockroot@server1:/home/pawan# rm -f /usr/local/ispconfig/server/temp/.ispconfig_lockroot@server1:/home/pawan# rm -f /usr/local/ispconfig/server/temp/.ispconfig_lockroot@server1:/home/pawan# rm -f /usr/local/ispconfig/server/temp/.ispconfig_lockroot@server1:/home/pawan# /usr/bin/php -q /usr/local/ispconfig/server/server.php02.01.2013-15:33 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
02.01.2013-15:33 - DEBUG - Found 3 changes, starting update process.
02.01.2013-15:33 - DEBUG - Calling function 'update' from plugin 'cron_jailkit_plugin' raised by event 'cron_update'.
02.01.2013-15:33 - DEBUG - Jailkit Plugin (Cron) -> setting up jail
02.01.2013-15:33 - DEBUG - Added programs to jailkit chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_programs.sh /var/www/clients/client22/web35 '/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico'
02.01.2013-15:33 - DEBUG - Added cron programs to jailkit chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_programs.sh /var/www/clients/client22/web35 '/usr/bin/php /usr/bin/perl /usr/share/perl /usr/share/php'
usermod: no changes
02.01.2013-15:33 - DEBUG - Added jailkit user to chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_user.sh web35 /var/www/clients/client22/web35 /home/web35 /bin/bash
PHP Fatal error:  Call to a member function mkdir() on a non-object in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 302
root@server1:/home/pawan# 
One more thing while adding a cronjob - in the dropdown list I get the list of the parent website names only and not subdomain.domain.tld. is it ok?

server debug log is like this:
2013-01-02 15:47 server1.mywebsolutions.co.in Debug There is already a lockfile set. Waiting another 10 seconds...
2013-01-02 15:47 server1.mywebsolutions.co.in Debug There is already an instance of server.php running. Exiting.
2013-01-02 15:46 server1.mywebsolutions.co.in Debug There is already a lockfile set. Waiting another 10 seconds...
2013-01-02 15:46 server1.mywebsolutions.co.in Debug There is already a lockfile set. Waiting another 10 seconds...
2013-01-02 15:46 server1.mywebsolutions.co.in Debug There is already a lockfile set. Waiting another 10 seconds...
2013-01-02 15:46 server1.mywebsolutions.co.in Debug There is already a lockfile set. Waiting another 10 seconds...
2013-01-02 15:46 server1.mywebsolutions.co.in Debug There is already a lockfile set. Waiting another 10 seconds...

Last edited by pawan; 2nd January 2013 at 12:19.
Reply With Quote