#1  
Old 3rd November 2011, 22:41
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
Default Cron jobs not running

As the topic says, the cron jobs won't run for a specific user. I have a test environment that is a close mirror to my production environment. The test environment has 1 job setup to run on @reboot that works fine, but the production server is giving me problems. As near as I can tell it has something to do with jailkit, but I'm so lost in my troubleshooting right now my head is spinning.

Here's what I have so far.

command to run is:
Code:
/var/www/clients/client1/web5/teamspeak3-server_linux-x86/egts3start.sh
Chroot Shell for ssh user is set to none

When I add the cron job I get this in the /var/log/ispconfig/cron.log
Code:
ERROR: /var/www/clients/client1/web5/etc is not owned by root:root!
ERROR: /var/www/clients/client1/web5/etc is not owned by root:root!
usermod: no changes
PHP Warning:  mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
usermod: unlocking the user's password would result in a passwordless account.
You should set a password with usermod -p to unlock this user's password.
From there, I'm lost. What say you oh powerful ISPConfig developers.

---Additional---

I looked in /etc/cron.d and there is only one ispc job: ispc_chrooted_web5
the contents of that file are as such:
Code:
MAILTO=''

SHELL='/usr/sbin/jk_chrootsh'

@reboot web5    /teamspeak3-server_linux-x86/egts3start.sh      #forum.empyreanguard.com

Last edited by Rescue9; 3rd November 2011 at 23:13.
Reply With Quote
Sponsored Links
  #2  
Old 4th November 2011, 09:51
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,001 Times in 3,911 Posts
Default

The cronjob is chrooted, so it can not run any commands outside of the chroot jail.

Change the line:

SHELL='/usr/sbin/jk_chrootsh'

to:

SHELL='/bin/bash'

In the ispc_chrooted_web5 file and restart cron.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 4th November 2011, 12:15
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
Default

I changed the configuration file as noted and rebooted the machine. There are no errors in the cron.log file now, but the process still didn't start as expected.
Reply With Quote
  #4  
Old 4th November 2011, 12:23
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,001 Times in 3,911 Posts
 
Default

But you are able to execute ths cript when you run the two commands:

Code:
su web5
/teamspeak3-server_linux-x86/egts3start.sh
on the shell? If this is a server daemon, then I doubt that a normal shell user that is not the root user might start it at all.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Cron jobs not running IrDA Installation/Configuration 8 18th November 2011 14:17
ISPConfig cron jobs mphayesuk General 3 30th August 2009 11:15
cron jobs collimic General 1 26th July 2009 12:57
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
How to disable the shell cron jobs? raymov General 3 1st November 2005 04:43


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


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