Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th August 2011, 13:40
icinfo icinfo is offline
Junior Member
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Cronjob not working

We're having ISPConf 3.0.3.3. and trying to add cronjob command to the website. The cronjob does not do anything when placed to ISPCOnf but works when put directly as a command.

Definitions for times are:

Minutes: 10
all other time-definations: *

Cronjob site address in the Cronjob comman definitions:

http://sitename.com/administrator/co...lpers/cron.php username="xxx" passwd="xxx" template_id="16"

Is it possible this problem has something to do with the ISPConf settings/configuration? Any ideas?

Amy
__________________
www.internet-content.net
Reply With Quote
Sponsored Links
  #2  
Old 10th August 2011, 14:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,429
Thanks: 813
Thanked 5,208 Times in 4,084 Posts
Default

Please post the exact command that you entered into the command field in the cronjob settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th August 2011, 17:51
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 54 Times in 37 Posts
Send a message via Skype™ to SamTzu
Default

We have tried it both ways...

Straight from the command line this works...

Quote:
/usr/bin/php /var/www/clients/client3/web137/web/administrator/components/com_csvivirtuemart/helpers/cron.php username="cronjob.user137" passwd="password" template_id="16"
Also tried...

Quote:
http://www.domain.com/administrator/...lpers/cron.php username="cronjob.user137" passwd="password" template_id="16"
Neither worked unless run straight from command line.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #4  
Old 10th August 2011, 17:53
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 54 Times in 37 Posts
Send a message via Skype™ to SamTzu
Default

This is the command we would like to run but it's rather long.

Quote:
/usr/bin/php "/var/www/clients/client3/web137/web/administrator/components/com_csvivirtuemart/helpers/cron.php" username="cronjob.user137" passwd="password" jform:general:exportto="tofile" jform:general:localpath="/var/www/clients/client3/web137/web/media" jform:general:export_file="csv" jform:general:field_delimiter="," jform:general:category_separator="/" jform:general:include_column_headers="1" jform:general:groupby="1" jform:general:vm_itemid="11" jform:general:export_date_format="d/m/Y H:i:s" jform:general:export_price_format_decimal="2"
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #5  
Old 11th August 2011, 09:48
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,429
Thanks: 813
Thanked 5,208 Times in 4,084 Posts
Default

It might be that the command is too long. Check the command that is stored in the cront file in /etc/cron.d if it is complete.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 19th August 2011, 09:48
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 54 Times in 37 Posts
Send a message via Skype™ to SamTzu
Default

I think I found the problem. (OpenVZ client)

Jail kit gives this error when I try to upgrade it.
Quote:
Setting up jailkit (2.14-1) ...
insserv: warning: script 'K01jailkit' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
This probably messes up the users cron.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #7  
Old 19th August 2011, 09:58
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,429
Thanks: 813
Thanked 5,208 Times in 4,084 Posts
Default

Thats not a problem, as insserv calculates the dependencies automatically. Beside that, the jailkit daemon part is not used in your setup, so it does not matter if it is started or not.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 19th August 2011, 10:45
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 54 Times in 37 Posts
Send a message via Skype™ to SamTzu
Default

I can't figure out what the problem is.
This line keeps poping up in the syslog...

Quote:
Aug 19 08:24:01 shop1 /USR/SBIN/CRON[20282]: (web192) CMD (/var/www/clients/client53/web192/cron.sh)
Aug 19 08:24:01 shop1 /USR/SBIN/CRON[20284]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Aug 19 08:24:01 shop1 /USR/SBIN/CRON[20279]: (CRON) error (grandchild #20282 failed with exit status 53)
Clearly the user cron job does not run.

Must be a bug somewhere. I wonder if this is also true in Debian?
http://ubuntuforums.org/showthread.php?t=1760488

Quote:
cat /etc/cron.d/ispc_chrooted_web192
MAILTO=''

SHELL='/usr/sbin/jk_chrootsh'

24 * * * * web192 /var/www/clients/client53/web192/cron.sh
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent


Last edited by SamTzu; 19th August 2011 at 11:03.
Reply With Quote
  #9  
Old 19th August 2011, 11:10
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 54 Times in 37 Posts
Send a message via Skype™ to SamTzu
Default

And the log file reveals the reason...

Quote:
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
mkdir: cannot create directory `/var/www/clients/client53/web192/var': File exists
mkdir: cannot create directory `/var/www/clients/client53/web192/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client53/web192/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client53/web192/var/run/mysqld/mysqld.sock': File exists
invalid shell, /var/www/clients/client53/web192/bin/bash does not exist
For some reason there is no bash in the users bin folder.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #10  
Old 19th August 2011, 12:39
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,429
Thanks: 813
Thanked 5,208 Times in 4,084 Posts
 
Default

Seems as if the jail is broken or has not been fully initialized with all required files. The jail is only created once for every website when the first cronjob or shell user is created.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
cronjob

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 cronjob not working why? ph-tvs Installation/Configuration 3 22nd February 2011 17:29
Qemu-kVM setup vm using 2 NIC's are not working muzi Technical 1 14th February 2011 22:27
auto update svn working copy donix Installation/Configuration 0 9th June 2010 20:59
cronjob not working vogelor General 1 9th October 2009 12:05
DNS stop working MZH General 3 22nd February 2008 11:10


All times are GMT +2. The time now is 09:59.


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