Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

User cronjobs not saving in /var/spool/cron

Discussion in 'General Discussion' started by AMD64, Jan 18, 2007.

  1. AMD64

    AMD64 Active Member

    Joined:
    Jun 19, 2005
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    151
    In cpanel, logged in as a user, when adding a cron job, it does not save. It just overwrites the /var/spool/cron/username file.

    crond is running and other user cronjobs are running

    Cron Log file "tail-f" output when trying to add a cronjob in cpanel:

    Jan 18 09:37:00 serv01 /usr/bin/crontab[28673]: (username) LIST (username)
    Jan 18 09:37:00 serv01 /usr/bin/crontab[28675]: (username) LIST (username)
    Jan 18 09:37:11 serv01 /usr/bin/crontab[28708]: (username) REPLACE (username)
    Jan 18 09:37:16 serv01 /usr/bin/crontab[28729]: (username) LIST (username)
    Jan 18 09:37:16 serv01 /usr/bin/crontab[28731]: (username) LIST (username)
    Jan 18 09:38:01 serv01 crond[28785]: (username) RELOAD (cron/username)


    If I edit /var/spool/cron/username and add in a cronjob it will show in cpanel but if I edit the cron in cpanel it will empty the file again or recreate it.

    I changed the owner of /var/spool/cron/username file to root:root. After I try to add a cron in cpanel it get changed to username:root which is different from other cron files which are either root:root or root:username

    The servers disk is partitioned with just /, /tmp, /boot - no seperate partitions for /etc, /usr, /var
    The drive has 49% usage

    Cronjobs seem to be saving in other cpanel account on the server I've checked. This problem may be with just one account.

    I done "chmod a+s /usr/bin/crontab"
    -rwsr-sr-x 1 root root 82772 Jul 12 2006 /usr/bin/crontab*

    I done "/scripts/upcp -force"

    WHM 10.8.0 cPanel 10.9.0-R118
    CentOS 4.4 i686 - WHM X v3.1.0
     
  2. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Poland
    I've the same problem too ;( user add the cron job, and the logs look's like that:
    Code:
    Jan 19 18:07:01 s89 crond[8082]: (username) RELOAD (cron/username)
    Jan 19 18:14:11 s89 /usr/bin/crontab[20939]: (username) LIST (username)
    Jan 19 18:14:11 s89 /usr/bin/crontab[20941]: (username) LIST (username)
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Poland
    The problem was in missing perl-libwww library. After install it, all cron jobs looks to work fine.

    Greetings
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice