A Prestashop e-commerce website is using MaxMind's GeoLite2-City database for country blocking. Instead of
geoipupdate it uses this
cron command to keep that database up to date:
/usr/bin/curl -L --silent 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz' | /bin/zcat > '/home/u3p3/domains/xyz.tld/public_html/app/Resources/geoip/GeoLite2-City.mmdb'
As of January 2020 the geolite databases are no longer publicly available, and requires an account and license key. Within less then 21 days of not updating the geolite mmdb file, Prestashop is stopped with a 500 error:
InvalidDatabaseException: Error opening database file.
How to make the cron job run again with the new license file from the new download location?