You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the default open type for geoip city is geoip.GEOIP_CITY_EDITION_REV1,
with old GeoIPCity.dat, it will say Could not open city GeoIP database: Didn't open GeoIP database (2),
digging through it is just assume using GEOIP_CITY_EDITION_REV1
MaxMind still supports old one, which we regularly update.
easy fix is just alter code at geoip.go and change it to be geoip.GEOIP_CITY_EDITION_REV0 or 6
maybe we should give options on configration file for this?
The text was updated successfully, but these errors were encountered:
Just ran into this myself. Here's what I found on how to fix it, these commands will download the databases from http://dev.maxmind.com/geoip/legacy/geolite/ and rename them appropriately:
the default open type for geoip city is geoip.GEOIP_CITY_EDITION_REV1,
with old GeoIPCity.dat, it will say
Could not open city GeoIP database: Didn't open GeoIP database (2),
digging through it is just assume using GEOIP_CITY_EDITION_REV1
MaxMind still supports old one, which we regularly update.
easy fix is just alter code at geoip.go and change it to be geoip.GEOIP_CITY_EDITION_REV0 or 6
maybe we should give options on configration file for this?
The text was updated successfully, but these errors were encountered: