What does cron error "exit status 4" mean in syslog? (Ubuntu) I've never seen this before, my Status Report page says the last cron run was 35 minutes ago at 10:35 today. So I went to watchdog logs and could see that Cron run completed at 10:30.

I've set the cron to run on 0 and 30th minutes of every hour, so twice per hour using sudo crontab -e so it's using the root user's crontab with the following command (cron key intentionally removed):

0,30    * *   *   *     wget -O - -q -t 1 http://localhost/cron.php?cron_key=


I'm not using the cron.module aka poormanscron in D6

I've manually run the cron and it updated the Status Report page after that.

What could cause this weird behavior? I'll admit that I haven't tried flushing the caches, but could caching be the cause of this? Or is there something more sinister?



I've dug around in syslog and found an error relating to the cron, but I have no idea what this means (cron key intentionally removed):

Aug 16 10:30:01 drupal-1 CRON[31372]: (root) CMD (wget -O - -q -t 1 http://localhost/cron.php?cron_key=)
Aug 16 10:30:01 drupal-1 CRON[31370]: (CRON) error (grandchild #31372 failed with exit status 4)


I can see the grandchild #31372 is referring to the first line CRON[31372] but what does exit status 4 mean? 

I just wanted to also let people know that the cron has run without any problems so far afaik. But it could be that this is the first time I've noticed this as well.
Ok, I'm such an idiot sometimes.

I've edited the .htaccess file this morning to redirect without www. to www.domain.com and that has caused my cron going to localhost to be redirected to www.localhost which caused the cron to fail. /facepalm

But to answer exit status 4's meaning for wget according to this page it means Network failure (Kudos to @Clive)