Can't upgrade: "Docker Manager: FAILED TO UPGRADE"

I’m trying to upgrade Discourse because I’m getting hit by flood of spam. When I click to upgrade docker manager first I get this error:

Failed upgrade:

precompile target: footnote_rtl
precompile target: poll_rtl
precompile target: spoiler-alert_rtl
precompile target: chat_mobile_rtl
precompile target: discourse-gamification_mobile_rtl
precompile target: discourse-solved_mobile_rtl
precompile target: discourse-topic-voting_mobile_rtl
precompile target: chat_desktop_rtl
precompile target: discourse-gamification_desktop_rtl
precompile target: discourse-topic-voting_desktop_rtl
precompile target: poll_desktop_rtl
precompile target: desktop_theme Dark Mode
precompile target: desktop_theme Sidebar Theme Toggle
precompile target: desktop_theme discourse-right-sidebar-blocks
precompile target: mobile_theme Dark Mode
precompile target: mobile_theme Sidebar Theme Toggle
precompile target: color_definitions Dark Mode (LC-Dark)
precompile target: color_definitions Dark Mode (Base)
precompile target: desktop_theme Default
precompile target: mobile_theme Default
precompile target: color_definitions Default (LC-Light)
precompile target: color_definitions Default (Base)
Done compiling CSS: 2024-07-26 02:45:47 UTC
/var/www/discourse/lib/discourse_ip_info.rb:48:in `mmdb_download': undefined method `path' for nil:NilClass (NoMethodError)

    filename = File.basename(gz_file.path)
                                    ^^^^^
	from /var/www/discourse/lib/tasks/maxminddb.rake:67:in `block (3 levels) in <main>'
	from /var/www/discourse/lib/tasks/maxminddb.rake:65:in `each'
	from /var/www/discourse/lib/tasks/maxminddb.rake:65:in `block (2 levels) in <main>'
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:111: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>:38:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38: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

I have not logged in for a month into admin or server, so nothing changed. I’m not sure what the error log indicates.

It looks like an issue with your maxmind. Does rebuilding form the command line help?

2 Likes