# Rebuild Failed: bootstrap failed with exit code 137

**URL:** <https://meta.discourse.org/t/rebuild-failed-bootstrap-failed-with-exit-code-137/319356>\
**Category:** Self-hosting\
**Created:** [July 30, 2024, 11:38pm UTC](https://meta.discourse.org/t/rebuild-failed-bootstrap-failed-with-exit-code-137/319356 "2024-07-30T23:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![isubbu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isubbu/32/162497_2.png) [@isubbu](https://meta.discourse.org/u/isubbu)\
**Post date:** [July 30, 2024, 11:38pm UTC](https://meta.discourse.org/t/rebuild-failed-bootstrap-failed-with-exit-code-137/319356/1 "2024-07-30T23:38:11Z")

</div>

I get the following error when trying to rebuild. Saw similar thread in here and removed some plugins but that didnt resolve the issue

```plaintext
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build' failed with return #<Process::Status: pid 666 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"build", "hook"=>"assets_precompile_build", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile:build'"]}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
4490985a65ce2bcadfb9a4dbf82c674b9fd999dc32d42cc9e7c3c265f73c9c6c

```

Full log attached  
[rebuild\_log.txt](https://meta.discourse.org/uploads/short-url/vff0W643IZ9OCJsyw4VNuFlMtcN.txt) (39.6 KB)

---

_[View the full topic](https://meta.discourse.org/t/rebuild-failed-bootstrap-failed-with-exit-code-137/319356)._
