GeoIP / Maxmind breaks password change

What’s up?

Logging in as a normal user and attempting a password reset, results in a blank page. Visiting the changeinfo page again, the following error is flashed:

  • fatal(): Cannot use Maxmind - both GeoLite2 city database and API key missing

Trying to set the API key via cpcmd keeps failing with the same error.

[root@web5 ~]# cpcmd scope:set auth.geoip-key ‘[id:69420,key:lmao_blahblah_hehe]’
FATAL : fatal(): Cannot use Maxmind - both GeoLite2 city database and API key missing
0. Error_Reporter::trigger_fatal(“Cannot use Maxmind - both GeoLite2 city database and API key missing”, )
[/usr/local/apnscp/lib/log_wrapper.php:50]
1. fatal(“Cannot use Maxmind - both GeoLite2 city database and API key missing”)
[/usr/local/apnscp/lib/Util/Geoip.php:142]
2. Util_Geoip->autoload()
[/usr/local/apnscp/lib/Util/Geoip.php:89]
3. Util_Geoip->raw(“127.0.0.1”)
[/usr/local/apnscp/lib/Opcenter/Admin/Settings/Auth/GeoipKey.php:36]
4. Opcenter\Admin\Settings\Auth\GeoipKey->set([id:69420, key:“lmao_blahblah_hehe”])
[/usr/local/apnscp/lib/modules/scope.php:68]
5. Scope_Module->set(“auth.geoip-key”, [id:69420, key:“lmao_blahblah_hehe”])
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
6. Module\Skeleton\Standard->_invoke(“set”, [“auth.geoip-key”, [[id:69420, key:“lmao_blahblah_hehe”]]])
[/usr/local/apnscp/lib/apnscpfunction.php:992]
7. apnscpFunctionInterceptor->call(“scope_set”, [“auth.geoip-key”, [[id:69420, key:“lmao_blahblah_hehe”]]])
[/usr/local/apnscp/lib/CLI/cmd.php:55]
8. CLI__call(“scope_set”, [“auth.geoip-key”, [[id:69420, key:“lmao_blahblah_hehe”]]])
[/usr/local/apnscp/lib/CLI/cmd.php:574]
9. CLI\main()
[/usr/local/apnscp/bin/cmd:7]
ERROR: fatal(): Cannot use Maxmind - both GeoLite2 city database and API key missing

FAQ:

  • What version of apnscp are you running?

    [root@web5 ~]# cpcmd misc_cp_version
    revision: dd6024bcb1aa8eafed84173f3f25c00cce226c86
    timestamp: 1722360217
    ver_maj: 3
    ver_min: 2
    ver_patch: 44
    ver_pre: ‘’
    dirty: false
    debug: false

  • Which version of RHEL or CentOS are you using?

    [root@web5 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux release 8.10 (Ootpa)

Thanks for the bug report. Fixed in edge :+1:

1 Like