Failed to rebuild Discourse with the following information

./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!

3 Likes

Hi!!

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

My error information