I’m hitting a big increase in memory needed to rebuild. I have 8GB memory and even adding an 8GB swapfile it runs out of space on this step: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
It’s a multisite install with four forums. I haven’t had to add a swapfile before.
edit Now tried with 16G swap and it’s still running out of memory.
This is under Linux, with minimal plugins enabled. The kernel is killing the process.
Hmm… I wonder, should the docs be updated to reflect higher memory requirements? Did Introducing pre-compiled JS assets for self-hosters help to decrease load? I wold have thought with that change, less RAM is needed .
It might have been a few months since I did a rebuild but it was fine before with 8GB ram and no swap. I still haven’t solved this and so all four sites are down.
I don’t know if this is related but it wouldn’t build until I set the environment variable HOME: /var/www/discourse - it would try to write to /root otherwise and get permission denied.
I’m seeing hundreds of these node processes, that seems to be the problem?
I’m starting to think the root cause is the same as my earlier issue where I had to HOME: /var/www/discourse otherwise it would try to write files under /root. I’m not sure what to do about it though.
Thanks, I think I’ll revert the whole server to a last-known-good state first and back up from a working system.
Does anyone have ideas about what could have gone wrong?