1.6.0.beta5 out of memory during upgrade


(Nathan Osman) #1

I installed Discourse about a week ago using the instructions here. Today, my Discourse instance sent me an email with the following information:

Your version: 1.6.0.beta4
New version: 1.6.0.beta5

I logged in and started the upgrade. It ran for a few moments and then stopped with the following errors:

https://quickmediasolutions.com/pastebin/30/discourse-upgrade-failure/

More information about the host:

  • 2x CPUs @ 2.3 GHz
  • 2 GB of RAM
  • 42 GB free disk space
  • Ubuntu 16.04 LTS
  • Docker 1.10.3

Discourse is the only container running on this server.


(Sam Saffron) #2

Cannot allocate memory

Try:

cd /var/discourse
./launcher rebuild app

(Jeff Atwood) #3

Yeah sadly swap file is now required even with 2gb RAM. It is only used during upgrades though

I suggest following our #howto and adding swap file.


(Nathan Osman) #4

I don’t know how I missed that.

That’s easy enough to fix. Thanks!