User OmJmr reported a failure when attempting to rebuild a Discourse application using ./launcher rebuild app, receiving a Pups::ExecError with exit code 137 during the bundle exec rake assets:precompile step. Despite providing initial system details, including Docker version 1.11.2 on Ubuntu 14.04 with only 994 MB of total memory, the root cause remained unclear until further log analysis was requested by zogstrip. After sharing the full logs via pastebin, user riking identified that exit code 137 typically indicates an Out-Of-Memory (OOM) kill event and asked if a 2GB swap file existed. OmJmr confirmed via the free command that swap was completely disabled (0 bytes) while RAM usage was high. fefrei confirmed the system was below the minimum RAM requirements and advised creating a 2GB swap file. Following this advice, OmJmr successfully created the swap file, verified the new configuration showing 2047 MB of available swap, and confirmed that the rebuild process completed successfully.
I got this error when I tried to rebuild app “./launcher rebuild app”
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 2243 exit 137>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
9a1115f500d5f32060a29064d9b24b0c858f8a511b6e8f5de6523ef0ce642551
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
I found no earlier messages when i scroll up.
I read other posts and I did not find an idea to my issue.
I, [2016-06-26T13:07:14.955605 #13] INFO -- : Purging temp files
I, [2016-06-26T13:07:14.971916 #13] INFO -- : Terminating async processes
I, [2016-06-26T13:07:14.973216 #13] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main pid: 1471
I, [2016-06-26T13:07:14.975827 #13] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 1584
2016-06-26 13:07:14 UTC [1471-2] LOG: received fast shutdown request
2016-06-26 13:07:14 UTC [1471-3] LOG: aborting any active transactions
2016-06-26 13:07:14 UTC [1478-2] LOG: autovacuum launcher shutting down
1584:signal-handler (1466946434) Received SIGTERM scheduling shutdown...
2016-06-26 13:07:14 UTC [1475-1] LOG: shutting down
2016-06-26 13:07:15 UTC [1475-2] LOG: database system is shut down
1584:M 26 Jun 13:07:15.070 # User requested shutdown...
1584:M 26 Jun 13:07:15.070 * Saving the final RDB snapshot before exiting.
1584:M 26 Jun 13:07:15.083 * DB saved on disk
1584:M 26 Jun 13:07:15.084 # Redis is now ready to exit, bye bye...