Ultimate ERRNOMEM while upgrading


I am to a point that I can’t upgrade Discourse anymore. With the previous updates it gave me ENOMEM sometimes, but retrying (couple of times) the upgrade went ok, with increasing effort. Today I’m trying to upgrade but the ENOMEM is fired each time.

I have the 2GB swap thing, but a poorish 1GB of RAM.

Errno::ENOMEM: Cannot allocate memory - gzip ...

Funny thing is that the version displayed looks similar to the latest:


Are you upgrading from the command line? Maybe try that if you haven’t.

If you are already upgrading from command line:

./launcher stop app

reboot, then try the upgrade procedure with the app stopped:

cd /var/discourse
git pull
./launcher rebuild app

It gave me some errors but then upgraded fine.

1 Like