installs a version of ruby too old for discourse

Bug #1812767 reported by Paul Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Discourse Charm
New
Undecided
Unassigned

Bug Description

2019-01-22 02:46:44 INFO juju-log db:3: Invoking reactive handler: reactive/discourse.py:135:prepare_codebase
2019-01-22 02:46:45 INFO juju-log db:3: Ruby error: ['Discourse requires Ruby 2.5.2 or up']
2019-01-22 02:46:45 ERROR juju.worker.uniter.operation runhook.go:132 hook "db-relation-changed" failed: exit status 1

Related branches

Revision history for this message
Paul Collins (pjdc) wrote :

It seems we're deploying from the master branch, which probably isn't what we want. Said branch also seems to be broken at present (or we have a dependency mismatch somewhere).

[2019-01-22T03:43:33.510227 #15489] INFO -- : Writing /srv/discourse/2019012203295822/public/assets/docs/yuidoc-15ccfbcbae101060b3998aa1cb2a9d148b96f81255484f265a5a883d05002f00.json',
'1004.807567869 Compressing: vendor-3eae3eec8fba033cb1b5af6c103a5b8781caa69cf97fe7773ba89ba68980b263.js',
'rake aborted!',
'Uglifier::Error: Unexpected token: keyword (const). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).',
"/var/lib/gems/2.5.0/gems/uglifier-4.1.11/lib/uglifier.rb:234:in `parse_result'",
"/var/lib/gems/2.5.0/gems/uglifier-4.1.11/lib/uglifier.rb:216:in `run_uglifyjs'",
"/var/lib/gems/2.5.0/gems/uglifier-4.1.11/lib/uglifier.rb:178:in `compile_with_map'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:102:in `compress_ruby'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:149:in `compress'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:191:in `block (4 levels) in <top (required)>'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:161:in `block in concurrent?'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:184:in `block (3 levels) in <top (required)>'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:175:in `each'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:175:in `block (2 levels) in <top (required)>'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:161:in `concurrent?'",
"/srv/discourse/2019012203295822/lib/tasks/assets.rake:171:in `block in <top (required)>'",
"/var/lib/gems/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'",
"/usr/bin/bundle:30:in `block in <main>'",
"/usr/bin/bundle:22:in `<main>'", 'Tasks: TOP => assets:precompile', '(See full trace by running task with --trace)']

Revision history for this message
Paul Collins (pjdc) wrote :

The stable branch requires 2.4.4, so the ruby layer's default is still too old.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.