Sorry, there was an error updating Discourse. Please check the logs below: Docker Manager: FAILED TO UPGRADE

Just got this:

********************************************************
*** Please be patient, next steps might take a while ***
********************************************************
Cycling Unicorn, to free up memory
Restarting unicorn pid: 44
Waiting for Unicorn to reload.
Waiting for Unicorn to reload..
Waiting for Unicorn to reload...
Waiting for Unicorn to reload....
Waiting for Unicorn to reload.....
Waiting for Unicorn to reload......
Waiting for Unicorn to reload.......
Waiting for Unicorn to reload........
Stopping 7 Unicorn worker(s), to free up memory
Stopping job queue to reclaim memory, master pid is 68810
$ cd /var/www/discourse && git fetch --tags --prune-tags --prune --force
$ cd /var/www/discourse && git reset --hard HEAD@{upstream}
HEAD is now at 875a41316 A11Y: Add aria-label to menu tabs (#27071)
$ cd /var/www/discourse/plugins/discourse-calendar && git fetch --tags --prune-tags --prune --force
$ cd /var/www/discourse/plugins/discourse-calendar && git reset --hard HEAD@{upstream}
HEAD is now at e6003bc DEV: add calendar definitions for UAE (#568)
$ cd /var/www/discourse/plugins/discourse-data-explorer && git fetch --tags --prune-tags --prune --force
$ cd /var/www/discourse/plugins/discourse-data-explorer && git reset --hard HEAD@{upstream}
HEAD is now at 901caf4 Build(deps-dev): Bump rexml from 3.2.6 to 3.2.8 (#290)
$ bundle install --retry 3 --jobs 4
Fetching gem metadata from https://rubygems.org/.........
Fetching minitest 5.23.0
Fetching csv 3.3.0
Fetching drb 2.2.1
Fetching regexp_parser 2.9.2
Installing drb 2.2.1
Installing csv 3.3.0
Installing minitest 5.23.0
Fetching zeitwerk 2.6.14
Installing regexp_parser 2.9.2
Fetching mutex_m 0.2.0
Fetching strscan 3.1.0
Installing zeitwerk 2.6.14
Fetching nokogiri 1.16.5 (x86_64-linux)
Installing mutex_m 0.2.0
Fetching sass-embedded 1.77.1 (x86_64-linux-gnu)
Installing strscan 3.1.0 with native extensions
Installing nokogiri 1.16.5 (x86_64-linux)
Installing sass-embedded 1.77.1 (x86_64-linux-gnu)
Fetching rexml 3.2.8
Installing rexml 3.2.8
Bundle complete! 141 Gemfile dependencies, 174 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`
1 installed gem you directly depend on is looking for funding.
  Run `bundle fund` for details
$ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
[3/5] Fetching packages...
error ember-template-lint@6.0.0: The engine "node" is incompatible with this module. Expected version "^18.18.0 || ^20.9.0 || >=21.1.0". Got "18.17.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:210:in `run'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:101:in `upgrade'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in <main>'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.1/lib/rails/commands/runner/runner_command.rb:43:in `load'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.1/lib/rails/commands/runner/runner_command.rb:43:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.1/lib/rails/command/base.rb:87:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.1/lib/rails/command.rb:48:in `invoke'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.1/lib/rails/commands.rb:18:in `<main>'
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
bin/rails:18:in `<main>'
Spinning up 7 Unicorn worker(s) that were stopped initially

Can do a rebuild via CL if required, but logging here first in case any of the DC team need me to troubleshoot anything first.

Yeah this is a recent thing, you just need to CLI rebuild and it’ll be fixed. (Discourse did a node update, and web updates can’t handle that)

2 Likes