I have an Ubuntu 14.04 droplet which I set up with Ansible. When I run my playbook it currently fails when trying to upgrade APT packages:
'/usr/bin/aptitude safe-upgrade' failed: FATAL -> Failed to fork.
I’m not sure what this means or how to get round it.
The playbook’s worked fine plenty of times before on this droplet. My droplet was recently migrated as part of some DO improvement and this is the first time I’ve run the playbook since then.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
@philgyford
That message generally means there’s not enough RAM available for the process to continue to run. I’ve seen it before, though it’s been a while.
In such a case, the Droplet may simply need more RAM. One way to test this would be to reboot the Droplet (so all RAM is freed up), then run the playbook. If you still see the error, try upgrading just the CPU and RAM (since you can’t just upgrade RAM right now) to the next highest.
You’ll have to shut down the Droplet, then navigate to:
Choose CPU and RAM Only, select the next plan, and click Resize. It’ll take a few seconds to a minute to finish up. Once done, power on the Droplet and run the playbook again.
…
You can check the free RAM on your Droplet using
free -mh