App rebuild hangs

I’m having an issue where I tried upgrading, ran into an issue, then tried rebuilding the app with
./launcher rebuild app

The rebuild is hanging at:

I, [2024-03-24T22:32:01.280882 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
Node.js heap_size_limit (1006.0) is less than 2048MB. Setting --max-old-space-size=2048.

Also tried discourse-doctor but did the same thing

Sounds like the server is out of memory.

Search here for heap_size_limit is less than 2048MB

2 Likes

I see that message ask the time. I think it is not the problem. It is likely that memory is an issue though. How much ram and swap do you have? I think you need at least 4gb combined. A build with 1gb of ram can take upwards of 20 minutes these days.