#1  
Old 25th February 2010, 10:19
IrDA IrDA is offline
Junior Member
 
Join Date: Dec 2009
Posts: 13
Thanks: 0
Thanked 2 Times in 1 Post
Default Cron jobs not running

Hi all,

I am trying to set up some cron jobs for certain clients but I can't get them to work properly. I use the ISPconfig interface to set up cron jobs and the client have the option Full Cron enabled. The command is use for a test client to run every two minutes is:

Code:
2
*
*
*
*
/usr/bin/wget -O - -q -t 1 http://www.xxxx.gr/cron.php
This does not run. In /etc/cron.d/ there are an entry representing my test client (ipsc_chrooted_webX). These contain the jk_chrootsh shell which is not installed in my server, I didn't think that I would need jailkit.

Several errors appear in ISPC Cron-log (under "Monitor" tab).

Code:
chmod: cannot access `/var/www/clients/client7/web7/*': No such file or directory
chmod: cannot access `/var/www/clients/client8/web8/*': No such file or directory
chmod: cannot access `/var/www/clients/client7/web7/*': No such file or directory
chmod: cannot access `/var/www/clients/client8/web8/*': No such file or directory
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_user.sh: line 25: jk_jailuser: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not found
mkdir: cannot create directory `/var/www/clients/client2/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client2/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client2/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client2/web2/var/run/mysqld/mysqld.sock': File exists
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_user.sh: line 25: jk_jailuser: command not found
usermod: no changes
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not found
mkdir: cannot create directory `/var/www/clients/client2/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client2/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client2/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client2/web2/var/run/mysqld/mysqld.sock': File exists
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_user.sh: line 25: jk_jailuser: command not found
usermod: no changes
I am not sure about these errors at all. Some of them appear to be coming from missing jailkit programs. Could you please help me set up cron correctly and get rid of these errors??
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2010, 10:23
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

There is a problem in ispconfig 3.0.1.6 with the creation of the chroot enviroment for cronjobs, the cronjobs only work if you add also a chrootes ssh user for this website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th February 2010, 10:35
IrDA IrDA is offline
Junior Member
 
Join Date: Dec 2009
Posts: 13
Thanks: 0
Thanked 2 Times in 1 Post
Default

Since I don't have jailkit installed is it ok to create the ssh-user with "Chroot Shell" set to "None" ??

[edit]Thanks for the blazing fast reply till [/edit]
Reply With Quote
  #4  
Old 25th February 2010, 10:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Quote:
Since I don't have jailkit installed is it ok to create the ssh-user with "Chroot Shell" set to "None" ??
Should be ok.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 25th February 2010, 11:06
IrDA IrDA is offline
Junior Member
 
Join Date: Dec 2009
Posts: 13
Thanks: 0
Thanked 2 Times in 1 Post
Default

I can confirm that in /etc/cron.d/ there exists a file "ipsc_webX without any reference of chrooted in the file name nor inside it.

Checking syslog reveals that the cron is executed by the user.

Can I clear my ISPC cron-job log ??
Reply With Quote
  #6  
Old 25th February 2010, 11:10
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

No need to clear the log, its just a logfile and you should not clear logfiles as this is done by the system automatically when they grow too big.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 18th November 2011, 14:12
cypriot cypriot is offline
Junior Member
 
Join Date: Oct 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ispconfig3 Cron jobs not working

where do i do wrong please ?


PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not found
mkdir: cannot create directory `/var/www/clients/client0/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client0/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client0/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client0/web2/var/run/mysqld/mysqld.sock' => `/var/run/mysqld/mysqld.sock': Invalid cross-device link
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_user.sh: line 25: jk_jailuser: command not found
usermod: no changes
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not found
mkdir: cannot create directory `/var/www/clients/client0/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client0/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client0/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client0/web2/var/run/mysqld/mysqld.sock' => `/var/run/mysqld/mysqld.sock': Invalid cross-device link
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_user.sh: line 25: jk_jailuser: command not found
usermod: no changes
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh: line 24: jk_init: command not found
mkdir: cannot create directory `/var/www/clients/client0/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client0/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client0/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client0/web2/var/run/mysqld/mysqld.sock' => `/var/run/mysqld/mysqld.sock': Invalid cross-device link
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh: line 20: jk_cp: command not found
/usr/local/ispconfig/server/scripts/create_jailkit_user.sh: line 25: jk_jailuser: command not found
usermod: no changes
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
Reply With Quote
  #8  
Old 18th November 2011, 14:16
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

What exact problem do you have? The above output is ok, it means that the jail exists already, so thats no error.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 18th November 2011, 14:17
cypriot cypriot is offline
Junior Member
 
Join Date: Oct 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
What exact problem do you have? The above output is ok, it means that the jail exists already, so thats no error.

I am trying to add cron jobs but they not working .... i tried with starting http:// and /var/ as well but not working ...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig cron jobs mphayesuk General 3 30th August 2009 11:15
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
user deleted but user cron still running bas1968 General 1 13th February 2009 11:59
Cron jobs from within ISPConfig - Dont want emails robit Installation/Configuration 5 21st July 2008 17:53
How to disable the shell cron jobs? raymov General 3 1st November 2005 04:43


All times are GMT +2. The time now is 16:15.


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