# Failed to rebuild Discourse with the following information

**URL:** https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386
**Category:** Support
**Created:** [9 augustus 2016 om 06:52 UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386 "2016-08-09T06:52:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![snakeninny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/snakeninny/32/115522_2.png) [@snakeninny](https://meta.discourse.org/u/snakeninny)
#### Post date: [9 augustus 2016 om 06:52 UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386/1 "2016-08-09T06:52:09Z")

</div>

`./launcher rebuild app` returns:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development' failed with return #<Process::Status: pid 312 exit 7>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
c942f5ad4f821729df4b23454a6df318e2c52a85dc203699068c13f832a236d5
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

What does that mean and how do I fix it? Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9 augustus 2016 om 07:30 UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386/2 "2016-08-09T07:30:06Z")

</div>

> [@snakeninny](#):
>
> \*\* FAILED TO BOOTSTRAP \*\* please scroll up and look for earlier error messages, there may be more than one

Please read this line and follow it 😉

---

<div class="post-metadata">

### Author: ![snakeninny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/snakeninny/32/115522_2.png) [@snakeninny](https://meta.discourse.org/u/snakeninny)
#### Post date: [9 augustus 2016 om 08:43 UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386/3 "2016-08-09T08:43:52Z")

</div>

The error turned out to be caused by ruby mirrors in China. The mirror I used doesn’t have discourse\_fastimage. I’ve changed the mirror and rebuild worked as expected.

Thanks!

---

<div class="post-metadata">

### Author: ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)
#### Post date: [20 augustus 2017 om 13:14 UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386/4 "2017-08-20T13:14:18Z")

</div>

Hi!!

I encountered the same problem. Could you please tell me how to change mirror?

My error information

> [@Fail to rebuild and got 502 Bad Gateway](https://meta.discourse.org/t/fail-to-rebuild-and-got-502-bad-gateway/68390/4):
>
> Hi, you asked for the whole message [total\_message.txt.gz](https://global.discourse-cdn.com/meta/original/3X/5/6/56c76096d1a4609f8b9fe6b8dd8112e55522715e.gz) (46.9 KB) @codinghorror and I found a very similar problem which was caused by the source of ruby china.

---

<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: [8 juni 2024 om 12:44 UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-with-the-following-information/48386/5 "2024-06-08T12:44:20Z")

</div>

This topic was automatically closed after 2860 days. New replies are no longer allowed.
