User cronjobs not saving in /var/spool/cron

AMD64

Active Member
Jun 19, 2005
27
0
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
 

Grzeslaw

Well-Known Member
Jul 11, 2006
76
1
158
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)
 

Grzeslaw

Well-Known Member
Jul 11, 2006
76
1
158
Poland
The problem was in missing perl-libwww library. After install it, all cron jobs looks to work fine.

Greetings