billups911
10-01-2007, 02:01 PM
ok so I went to cpanel to add a cron job. I tried both advanced and basic and both gimme the issue.
Basically my cron job is like this:
wget -O /dev/null http://www.site.com/script.php
But when i add the cron job and go back and view it there's nothing there. Basically it seems like it's not storing the cron job, I have no idea why.
Anyone have any iddeas?
iHubNet-Matt
10-01-2007, 02:05 PM
I would suggest that the best option will be to contact your host's support team.
billups911
10-01-2007, 02:11 PM
I have my own dedicated servers, so that isnt an option :D
TonyB
10-01-2007, 02:42 PM
Well, you could always ask your dedicated server provider or even ask cPanel (could be a bug who knows).
I honestly haven't heard of an issue like that before but my guess would be a permission issue with the cron file for the account in question. You could confirm this by attempting to add a cron to another account and see if it works.
Jedito
10-01-2007, 04:06 PM
check at /var/spool/cron/USERNAME if it's stored there, try changing the permissions of the file with the username where you're adding the cronjob.
WebScHoLaR
10-01-2007, 04:14 PM
ok so I went to cpanel to add a cron job. I tried both advanced and basic and both gimme the issue.
Basically my cron job is like this:
wget -O /dev/null http://www.site.com/script.php
But when i add the cron job and go back and view it there's nothing there. Basically it seems like it's not storing the cron job, I have no idea why.
Anyone have any iddeas?
Hi,
I have seen this issue on new cPanel servers. Clients are setting up crons from cPanel and the crons are not getting saved. The reason is that SUID bit is not setup for crontab binary. Check permissions for "/usr/bin/crontab" and if the permissions are not 4755 then change the permissions to get this issue fixed. You will also see errors like "cron/tmp.XXXXqZAmyP: Permission denied" in /usr/local/cpanel/logs/error_log for this case.
Incorrect Permissions (755):
-bash-3.1# ls -la /usr/bin/crontab
-rwxr-xr-x 1 root root 309644 Aug 31 04:43 /usr/bin/crontab
Correcting Permissions:
-bash-3.1# chmod 4755 /usr/bin/crontab
Correct Permissions (4755):
-bash-3.1# ls -la /usr/bin/crontab
-rwsr-xr-x 1 root root 309644 Sep 12 13:28 /usr/bin/crontab
iHubNet-Matt
10-01-2007, 04:22 PM
what you can see when you do a
crontab -lu user
Ignore the post.
WebScolar has posted the fix. :) I kept the thread open for a long time and made the post.
marisc
10-02-2007, 12:07 AM
You should contact a management company like platinumservermanagement
We use them and when we run into issues they always help us out and they are great.
freeflyer
10-02-2007, 12:40 AM
Instead of the control panel, I use this command (ssh shell) and have had no problems:
crontab -e