MaxMind 401 error -- have license key, can't download

It seems to be working on a site that I just rebuilt.

My only guess is that you somehow have those settings in the wrong place (and from what you’ve included, that seems improbable).

Does this show you your Maxmind creds like this?

root@figgy:/var/discourse# ./launcher enter app
root@figgy-spm:/# set|grep MAXM
DISCOURSE_MAXMIND_ACCOUNT_ID=12345
DISCOURSE_MAXMIND_LICENSE_KEY=mycoolkey
root@figgy-spm:/# grep maxm /var/www/discourse/config/discourse.conf
maxmind_license_key = 'mcoolkey'
maxmind_account_id = '12345'

So you’d

./launcher enter app
set|grep MAXM
grep maxm /var/www/discourse/config/discourse.conf

also you can check that Rails has them (still inside the container):

rails c

and then

GlobalSetting.maxmind_account_id
GlobalSetting.maxmind_license_key

Hopefully, somehow you don’t have your stuff in the env: section of the app.yml (though your pasted comments suggest that they are in the right place), which would be easy to fix.

3 likes