I recently updated to Ubuntu 20.04 on a 1GB droplet running Ghost. Now, whenever I run ghost update or similar, I get a memory error:
You are recommended to have at least 150 MB of memory available for smooth operation. It looks like you have ~45.265625 MB available.
The memory available varies between 30 MB and almost 150 MB, but it always throws this error.
As suggested in the Ghost forum, I ran free -h (which repeated the warning, and then ghost restart (which did not).
Any ideas? Thanks.
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!
Adding a 2GB swap file with a swappiness of 10 solved my memory errors. More info here.
However, is this a bad practice? How will it affect my server usage?
Hey there! Old post but thought I’d post to help others :)
I had this issue too running the most basic droplet type. I followed this Digital Ocean guide to add a “swap file” on my instance. This basically allocates some SSD space to use as “pretend memory”, and then I was able to upgrade ghost as normal.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
Alternatively you could simply resize your droplet to one with more RAM/memory.
Hope that helps someone!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.