Using a fresh install of eFa-v4.0.2 (with restored backup from v3) on centos 7 which included geoipupdate v2.5, kept giving a 401 response (geoipupdate -v) complaining invalid account or license. its not invalid. IDK, this may be user error but here is what I find and did.
Reading this https://dev.maxmind.com/geoip/geoipupdate/ it seems an update to geoipupdate is in order, to v4.x.
Of course downloading precompiled rpm from github doesn't work. It complains about conflicts (below) and i was too chicken to try a yum remove because of dependencies, efa being one. I ate some space to compile from source which solved my dilemma.
rpm update conflict
Code: Select all
[root@mx2 ~]# rpm -i geoipupdate_4.3.0_linux_amd64.rpm
file /etc/GeoIP.conf from install of geoipupdate-0:4.3.0-1.x86_64 conflicts with file from package geoipupdate-2.5.0-1.el7.x86_64
file /usr/bin/geoipupdate from install of geoipupdate-0:4.3.0-1.x86_64 conflicts with file from package geoipupdate-2.5.0-1.el7.x86_64
Code: Select all
CONFFILE=/etc/GeoIP.conf
....
DATADIR=/usr/share/GeoIP
Code: Select all
cd
yum install go pandoc
wget https://github.com/maxmind/geoipupdate/archive/v4.3.0.tar.gz
tar xvf v4*
cd geoipupdate-*
make all
mv /bin/geoipupdate /bin/geoipupdate_old
cp build/geoipupdate /bin/geoipupdate
https://github.com/maxmind/geoipupdate/releases
Final product:
Code: Select all
[root@mx2 ~]# geoipupdate -v
Using config file /etc/GeoIP.conf
Using database directory /usr/share/GeoIP
Performing get filename request to https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-Country
Acquired lock file lock (/usr/share/GeoIP/.geoipupdate.lock)
Calculated MD5 sum for /usr/share/GeoIP/GeoLite2-Country.mmdb: xx
Performing update request to https://updates.maxmind.com/geoip/databases/GeoLite2-Country/update?db_md5=xx
No new updates available for GeoLite2-Country
Code: Select all
32 5 * * 5 /bin/geoipupdate
Code: Select all
yum remove go