Failed to rebuild Discourse with the following information


#1

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


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

Please read this line and follow it :wink:


#3

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!


(xiasummer) #4

Hi!!

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

My error information