# 无法重建应用程序 - 退出代码1失败

**URL:** https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741
**Category:** Self-hosting
**Created:** [2024年七月27日 06:32 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

<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: [2024年七月27日 06:32 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/1 "2024-07-27T06:32:27Z")

</div>

大家好，

我有一段时间没有更新网站了，然后它就无法加载了——[community.showprowess.com](http://community.showprowess.com)

我尝试重建，但失败了，底部有以下消息：

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

```

我正在使用SSH。有人遇到过同样的问题吗？我应该像一些帖子中提到的那样在新服务器上重建吗？

如果有人能帮忙看看，那就太好了。

附上整个日志，以防万一。

[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: [2024年七月27日 06:39 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/2 "2024-07-27T06:39:34Z")

</div>

删除访客网关插件。

---

<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: [2024年七月27日 06:42 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/3 "2024-07-27T06:42:20Z")

</div>

为了提供更多背景信息，该插件已被弃用，并被一个主题组件取代：

> [@jgujgu](#):
>
> 2022年4月，访客门插件由@Don转换为主题组件。此插件现已#弃用::tag

---

<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: [2024年七月27日 06:46 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/4 "2024-07-27T06:46:03Z")

</div>

当然可以 🤦‍♂️ 我正要问为什么我的升级没问题，而且我一直在使用 Guest gate。

---

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

</div>

谢谢大家。我试试看。我需要弄清楚如何删除一个插件 😁

---

<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: [2024年七月27日 17:33 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](#):
>
> 我需要弄清楚如何删除一个插件

[如何卸载插件](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: [2024年七月27日 20:52 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/7 "2024-07-27T20:52:55Z")

</div>

因为你使用的是访客网关主题而不是插件？

---

<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: [2024年七月27日 20:56 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/8 "2024-07-27T20:56:02Z")

</div>

确实如此。但我没记住我用的是 TC，而不是插件。

---

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

</div>

大家 – 感谢您的帮助。我通过移除访客网关插件解决了这个问题。

---

<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: [2024年八月26日 21:39 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-failed-with-exit-code-1/318741/10 "2024-08-26T21:39:31Z")

</div>

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