# Unable to rebuild app - failed with exit code 1

**URL:** <https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741>\
**Category:** Self-hosting\
**Created:** [July 27, 2024, 6:32am UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741 "2024-07-27T06:32:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Himanshu\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/himanshu_singh/32/216438_2.png) [@Himanshu\_Singh](https://meta.discourse.org/u/Himanshu_Singh)\
**Post date:** [July 27, 2024, 6:32am UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/1 "2024-07-27T06:32:27Z")

</div>

Hello Everyone,  
I haven’t updated the site in a while and then it just stopped loading – [community.showprowess.com](http://community.showprowess.com)

I tried to rebuild but failed with the following message at the very bottom -

```plaintext
FAILED
--------------------
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.

```

I am using SSH. Has someone faced this same issue before? Should I just rebuild in a new droplet as mentioned in some threads?

Would be great if someone can look at it.

Attaching the whole log in case it helps.

[Command\_prompt\_log.txt](https://meta.discourse.org/uploads/short-url/wPP7SU9Jdw5it2KFqNtVB1lXWaY.txt) (68.7 KB)

---

_[View the full topic](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741)._
