Pups ExecError while rebuilding

2022-06-09 15:54:49.619 UTC [42] LOG:  background worker "logical replication launcher" (PID 51) exited with exit code 1
2022-06-09 15:54:49.620 UTC [46] LOG:  shutting down
2022-06-09 15:54:49.671 UTC [42] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' failed with return #<Process:
:Status: pid 268 exit 137>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test developm
ent'"]}
bootstrap failed with exit code 137

I’ve been getting this error when rebuilding, I have no idea what to do.

I think error code 137 is not enough memory.

Do you have a swap file set up? You can check by running free on the command line.

Alternatively, you could upgrade and add more RAM?

One I haven’t tried yet but have read a few times on here is adding vm.overcommit_memory = 1 to /etc/sysctl.conf

Edit: This is from a different-but-similar topic, and has the text from the log in:

1 Like

I do not have a swap file setup, I’ll check on how to do it and get back to you.

1 Like

I think we may have a How-To for that:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.