# 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:** 10\
**Page:** 1

## AI-generated summary

[Himanshu_Singh](/t/-/318741/1) reported that their Discourse site (community.showprowess.com) stopped loading and failed to rebuild, citing an error during `assets:precompile:build` with exit code 1. The issue was traced to the deprecated Guest Gate plugin, which [pfaffman](/t/-/318741/2) advised removing. [JammyDodger](/t/-/318741/3) clarified that Guest Gate was replaced by a theme component in April 2022. [Jagster](/t/-/318741/4) confirmed the fix works when using the theme component instead of the plugin. [Himanshu_Singh](/t/-/318741/5) asked how to remove a plugin, and [Moin](/t/-/318741/6) provided a link to the official guide. After removing the plugin, [Himanshu_Singh](/t/-/318741/9) confirmed the rebuild succeeded. The root cause was the outdated plugin interfering with asset compilation during rebuild.

<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)

---

<div class="post-metadata">

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

</div>

Remove the guest gate plugin.

---

<div class="post-metadata">

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

</div>

For extra context, that plugin has been deprecated and replaced by a theme component:

> [@Guest Gate (Sign Up Popup Plugin)](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/1):
>
> In April 2022, the Guest Gate plugin was converted into a theme component by @Don. This plugin is now #deprecated

---

<div class="post-metadata">

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

</div>

Yeah, of course 🤦‍♂️ I was just coming to ask why mine upgraiding works just fine and I’m using Guest gate all the time.

---

<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, 5:29pm UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/5 "2024-07-27T17:29:45Z")

</div>

Thanks folks. Let me try that. I need to figure out how to remove a plugin 😁

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [July 27, 2024, 5:33pm UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/6 "2024-07-27T17:33:52Z")

</div>

> [@Himanshu\_Singh](#):
>
> I need to figure out how to remove a plugin

[How to uninstall a plugin](https://meta.discourse.org/t/install-plugins-on-a-self-hosted-site/19157#how-to-uninstall-a-plugin-1)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [July 27, 2024, 8:52pm UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/7 "2024-07-27T20:52:55Z")

</div>

Because you’re using the guest gate theme and not the plugin?

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [July 27, 2024, 8:56pm UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/8 "2024-07-27T20:56:02Z")

</div>

Precisly. But I didn’t remember I was using TC, not plugin.

---

<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, 9:38pm UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/9 "2024-07-27T21:38:40Z")

</div>

Everyone – Thank you for helping out. I was able to solve the issue by removing the guest gate plugin.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [August 26, 2024, 9:39pm UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/10 "2024-08-26T21:39:31Z")

</div>

Closed on August 26, 2024, 9:39pm UTC

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