Users are encountering an Errno::ENOMEM: Cannot allocate memory error during Discourse updates, specifically when gzip tries to compress assets. The issue appears to stem from insufficient memory or swap space, even on systems with 2GB RAM. Falco and sam recommend adding swap space as a general fix, linking to a guide on creating a swapfile. avorio confirmed the error and shared free -m output showing 0 swap, and later reported success after adding swap. SkritterJosh and dylanh724 also experienced the error but found the update appeared successful afterward — possibly a false positive. SkritterJosh shared manual update steps via terminal: apt-get update && apt-get upgrade lxc-docker for Docker and git pull && ./launcher rebuild app for Discourse. sam notes that lxc-docker should be replaced with docker-engine, and codinghorror adds that lxc-docker can only be upgraded to 1.9.1. To verify updates, users can check /admin or the page source for version hashes as suggested by Falco.
I just ran an update and got the following error. Then when I refreshed the page to run it again it showed that the update had already been applied. Any thoughts?
@avorio I’m not sure if it’s safe to assume that. I also experienced the same thing where the upgrade failed, but then later it said everything was up to date. I went ahead and manually updated both docker and discourse. It did appear they still had updates perform and the dashboard was producing a false positive on the update.