# Discourse 构建错误：“安装 rbtrace (0.5.1) 时出错，Bundler 无法继续”

**URL:** https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530
**Category:** Self-hosting
**Created:** [2023年十二月22日 09:51 UTC](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530 "2023-12-22T09:51:22Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [2023年十二月31日 18:35 UTC](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530/5 "2023-12-31T18:35:38Z")

</div>

在过去几周里，我看到不少这样的失败案例，这里还有两个供参考：

> [@Another discourse offline "bootstrap failed with exit code 5"](https://meta.discourse.org/t/another-discourse-offline-bootstrap-failed-with-exit-code-5/290104):
>
> Hello Community! I’m sorry we have to meet under these circumstances. Discourse is offline after a failed upgrade. Same story as. [Discourse offline after failed upgrade "bootstrap failed with exit code 5"](https://meta.discourse.org/t/discourse-offline-after-failed-upgrade-bootstrap-failed-with-exit-code-5/288193) Attempted to upgrade to v3.2.0.beta3 I’m still on Ubuntu 16.04. I DO have the previous docker images fortunately (I hope), but I’m not sure what to do to restore services. Also using DigitalOcean. Error FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse …

> [@Discourse offline after failed upgrade "bootstrap failed with exit code 5"](https://meta.discourse.org/t/discourse-offline-after-failed-upgrade-bootstrap-failed-with-exit-code-5/288193):
>
> Hi everyone, My Discourse is currently offline cry pensive It failed after trying to upgrade this morning from/to v3.2.0.beta3 +468: On the command line, the error message is: And the full console log: root@greyarro:~# cd /var/discourse/ root@greyarro:/var/discourse# git pull Already up to date. root@greyarro:/var/discourse# ./launcher rebuild app x86\_64 arch detected. WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.…

还有另外三个：

> [@Rebuild failed - FAILED TO BOOTSTRAP](https://meta.discourse.org/t/rebuild-failed-failed-to-bootstrap/289514):
>
> Been a while since this forum was updated, getting this message after a git pull and rebuild: FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #\<Process::Status: pid 502 exit 5\> Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec\_command.rb:132:in `spawn' exec failed with the params {"cd"=\>"$home", "hook"=\>"bundle\_exec", "cmd"=\>["su discourse -c 'bundle config --local deploy…

> [@Update Fails with Unexpected Error During Rebuild](https://meta.discourse.org/t/update-fails-with-unexpected-error-during-rebuild/288718):
>
> Hi Everyone, I’m stuck with a Discourse update issue. The rebuild command fails, and I can’t complete the update. It’s related to the bundle install step… FAILED Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #\<Process::Status: pid 6677 exit 5\> Location of failure: /pups/lib/pups/exec\_command.rb:112:in `spawn' exec failed with the params {"cd"=\>"$home", "hook"=\>"bundle\_exec", "cmd"=\>["su discourse -c 'bundle config --local deplo…

> [@Rebuild failure: "extconf failed, exit code 1" -- due to old Docker?](https://meta.discourse.org/t/rebuild-failure-extconf-failed-exit-code-1-due-to-old-docker/287756):
>
> I’ve got a rebuild that’s failing, I think due to this. It’s running Ubuntu 16.04 with Docker version 17.05.0-ce, build 89658be, which I know is suspect, but I wanted to give this person one more rebuild if at all possible. I, [2023-12-06T16:10:12.656984 #1] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/…

再加上这个实际的话题，我快速搜索就找到了六个最近失败的案例。

有人能看出所有这些最近失败的实例有什么共同点吗？🤔

---

_[View the full topic](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530)._
