Cron Failed to Fork and DB Update Failed

I got this in a cron email from a Bitnami Linux machine hosted on Azure:

FATAL -> Failed to fork.

following by this one for a few days once a day:

DB Update failed, database locked

Then it cleared up for a few days on its own, then it came back.

There are several suggestions in this ServerFault thread:

This server didn’t have a Swap file (don’t know why), so I set one up as suggested here:

I followed these instructions, but making it a hidden file and 2GB in size since I have 2GB of memory:

sudo dd if=/dev/zero of=/mnt/.swap.0 bs=1024 count=2097152
sudo mkswap /mnt/.swap.0
sudo su
echo "/mnt/.swap.0 swap swap defaults 0 0" >>/etc/fstab
swapon /mnt/.swap.0
sudo swapon -s

After that, the error emails stopped.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed.