Saturday, February 4, 2017

linux - Cron occasionally fails with "grandchild #X failed with exit status 3"

I have cron jobs and every now and then they fail. Just after log message that the command has started, there is grandchild #X failed with exit status 3 message.



On the next run scripts finishes correctly. It happens to different scripts with different run periods (from minutely to once-a-day scripts). There seems to be no pattern.



Any suggestions?



EDIT:



I ran scripts in crontab in strace. The problem is the script gets killed because of SIGBUS:




--- SIGBUS (Bus error) @ 0 (0) ---
exit_group(3) = ?


However, still don't know why this is happening.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...