Error with maxmind download during update

Guys, I need urgent help, I’m about to give up on my speech, I’ve been trying to update my speech for a few days and this error always appears, what could it be?

Done compiling CSS: 2024-04-24 22:53:38 UTC
/var/www/discourse/lib/discourse_ip_info.rb:50:in `mmdb_download': undefined method `path' for nil:NilClass (NoMethodError)

     filename = File.basename(gz_file.path)
from /var/www/discourse/lib/tasks/maxminddb.rake:73:in `block (3 levels) in <main>'
from /var/www/discourse/lib/tasks/maxminddb.rake:71:in `each'
from /var/www/discourse/lib/tasks/maxminddb.rake:71:in `block (2 levels) in <main>'
#<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- `load'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties- `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- `perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties- `invoke'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties- `<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

Every time this error occurs during updates, this message appears on the control panel. Sidekiq is not running. Many tasks, such as sending emails, are performed asynchronously by Sidekiq. Make sure that at least one sidekiq process is running.

You posted here already:

Did the fix (Allow redirect when downloading maxmind database by pfaffman · Pull Request #26333 · discourse/discourse · GitHub) not work for you?

It worked for Jay, but I believe it failed for @Firepup650 too. That’s odd for sure :thinking: .

1 Like

Yes friend, I posted again, because my installation a few days ago started to appear several problems, simply after all these errors, I click F5 and it appears that the installation is updated with nothing pending, even after the previous attempt presented an error, my speech is very strange lately, it is very slow, there is nothing different, I am only using it on my server, and I only use 1 plugin which is not official, all the others are official.

I didn’t try anything, simply after being alerted about the error I clicked F5 and after returning the warning about pending updates disappeared, as if the last update had been successful, even though I knew it had not been completed successfully.

Please try doing a manual CLI rebuild, the panel might have an issue with the maxmind changes.

1 Like

Good idea friend, this possibility didn’t cross my mind, tomorrow I’ll try to do this, after every update attempt sidekiq always stops working and warns me on my control panel, the only thing that makes it come back is using the command " sudo reboot" on the server, but tomorrow I will try to rebuild manually.

1 Like

Generally, if you encounter an issue with the upgrade from the UI, use the console; that’s the way to go!
Discourse is updated daily, and some changes can happen that require a full container rebuild.

As a side note, there is a Rake task maxminddb:refresh to test/download the MaxMind DB files directly (or maxminddb:get to ignore last downloaded date check and backup) :

./launcher enter app
rake maxminddb:refresh
1 Like