Discourse 2.8.0.beta11 Build Failure - MiniRacer::RuntimeError: Error: Parse error on line 1:

Cannot build a new Discourse container and upgrade to 2.8.0.beta11 from 2.8.0.beta10:

because of this failure when:

./launcher bootstrap socket2

Here is where it fails repeatedly:

var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/task.rb:66:in `block (2 levels) in define'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'

Caused by:
MiniRacer::RuntimeError: Error: Parse error on line 1:
JavaScript {{#if !component.siteSetti
JavaScript ------^
JavaScript Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', 'SEP', got 'INVALID'
JavaScript at Parser.parseError (<anonymous>:16813:15)
JavaScript at Parser.parse (<anonymous>:16888:20)
JavaScript at parse (<anonymous>:18063:36)
JavaScript at preprocess (<anonymous>:11025:71)
JavaScript at precompile (<anonymous>:9171:38)
JavaScript at Object.precompile (<anonymous>:13234:37)
JavaScript at precompile (<anonymous>:5258:21)
JavaScript at <anonymous>:1:20
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.1/lib/mini_racer.rb:223:in `eval_unsafe'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.1/lib/mini_racer.rb:223:in `block (2 levels) in eval'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.1/lib/mini_racer.rb:343:in `timeout'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.1/lib/mini_racer.rb:222:in `block in eval'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.1/lib/mini_racer.rb:220:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.1/lib/mini_racer.rb:220:in `eval'

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 4039 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
85942eef3489f23a1db6be8b301cf37690f84a9acd54b04ac1a2f01262f80b1d
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

It's been like this since yesterday when Discourse made a commit to 2.8.0.beta11 and is forcing Discourse users to upgrade.

UPDATE: I think I may know the problem (with a plugin).... standby.

Fixed. Reverted to earlier plugin version.

Now, we can update Discourse to the latest version (done):

3 Likes