Failed to rebuild Discourse with the following information

AI-generated summary

The user snakeninny encountered a failure when trying to rebuild Discourse using ./launcher rebuild app, with an error indicating a problem during the bundle install step. codinghorror advised checking earlier error messages, as suggested by the bootstrap failure. snakeninny later resolved the issue by changing the Ruby mirror in China, which was missing the discourse_fastimage gem. Another user, xiasummer, asked for guidance on how to change the mirror, referencing a related issue on the Discourse meta forum.

./launcher rebuild app returns:

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!

Please read this line and follow it :wink:

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!

Hi!!

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

My error information