Failed to rebuild Discourse with the following information


./launcher rebuild app returns:

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'"]}
** 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!

Fail to rebuild and got 502 Bad Gateway
(Jeff Atwood) #2

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.


(xiasummer) #4


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

My error information