Update failed: Failed to Bootstrap


(Krischan) #1

I just tried to update my Discourse instance running on Digital Ocean with git pull and ./launcher rebuild app. Always worked, not today:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 869 exit 1>
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'"]}
ab158c7e72f3547805adf8fcc40254520f99ee5fc5886b6d1355279c0822657e
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
root@Diskurs:/var/discourse# 

Earlier error message:

Parse error at _application-0f0cd464bfe613663fc764d0331ceef8df9386e3cc677c2f0cbfcbee0c69e345.js:99567,22
Unexpected token name «of», expected punc «;»
Error
    at new JS_Parse_Error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1526:18)
    at js_error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1534:11)
    at croak (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2026:9)
    at token_error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2034:9)
    at expect_token (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2047:9)
    at expect (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2050:36)
    at regular_for (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2280:9)
    at for_ (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2276:16)
    at eval (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2158:24)
    at eval (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2073:24)
    at block_ (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2353:20)

Any help appreciated. Thanks!


(Jeff Atwood) #2

The error is earlier in the logs, as indicated in the text. You need to scroll up and look much earlier in the logs.


(Krischan) #3

Is it this?

Parse error at _application-0f0cd464bfe613663fc764d0331ceef8df9386e3cc677c2f0cbfcbee0c69e345.js:99567,22
Unexpected token name «of», expected punc «;»
Error
    at new JS_Parse_Error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1526:18)
    at js_error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1534:11)
    at croak (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2026:9)
    at token_error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2034:9)
    at expect_token (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2047:9)
    at expect (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2050:36)
    at regular_for (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2280:9)
    at for_ (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2276:16)
    at eval (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2158:24)
    at eval (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2073:24)
    at block_ (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2353:20)

(Camille Roux) #4

Same error here if it can help:


(Jeff Atwood) #5

Yes this is legit, combining these two (closing the other). I can repro we are looking at it.


(Camille Roux) #6

Here is a way to rebuild the app before a fix is available?


#7

You can try shutdown -r now

I’m not sure if it was after a failed rebuild (or an upgrade via web interface that broke something) but it put back online my forum once


(Camille Roux) #8

Thanks!
A simple reboot is working


(Krischan) #9

Yes, thx, but I get 404s for every thread I click. You too?


(Camille Roux) #10

No, it seems to work correctly (here is the URL if you want check: https://forum.pragmaticentrepreneurs.com/)


(Régis Hanol) #11

My bad. I used a syntax not yet available in ES6 :expressionless: @eviltrout just patched it. You will need to rebuild to get it to work.


Update failed - Failed to Bootstrap