Error updating to latest version with plugins enabled


(Pakorn) #1

I got this message at the end of running “sudo ./launcher rebuild app”

FAILED

RuntimeError: cd /var/www/discourse && su discourse -c ‘bundle exec rake assets:precompile’ failed with return #<Process::Status: pid 339 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105: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’”]}
6b7ff46e3bcab653eab8144a1bf31925997b7a0af3cde84e1c54f8de826390fa
FAILED TO BOOTSTRAP


Now my site show 502 Bad Gateway message
my site is on digitalocean. I have been able to update successfully on the last 3-4 version, using these commands
cd /var/discourse
Sudo git pull
Sudo ./launcher rebuild app

How do I fix this?


(Pakorn) #2

Previously I have 3 plugins

      - git clone https://github.com/discourse/discourse-tagging.git
      - git clone https://github.com/discoursehosting/discourse-adsense.git
      - git clone https://github.com/tcreativo/plugin_discourse_dynamic_sidebar.git

but after checked this topic Discourse Meta
I removed adsense plugin and tried to rebuild again. But i still get error

FAILED

RuntimeError: cd /var/www/discourse && su discourse -c ‘bundle exec rake assets:precompile’ failed with return #<Process::Status: pid 329 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105: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’”]}
175951ab0ec2c8caa286a35b7e83186c61ac80668ac6d0f8649c115e0e4a14fd
FAILED TO BOOTSTRAP


(Pakorn) #3

Everything is OK now after I removed adsense and dynamic sidebar plugin.