GeoIP not working

Report bugs and workarounds
Post Reply
Odon Garma
Posts: 24
Joined: 08 May 2017 14:10

GeoIP not working

Post by Odon Garma » 08 Jan 2019 15:20

after update GeoIP Database from tools menu no detail view is possible

GeoIP.dat under /var/www/html/mailscanner/temp is

Code: Select all

<html>
<head><title>404 Not Found</title></head>
.....
</html>
/var/log/httpd/ssl_error_log says

Code: Select all

PHP Fatal error: GeoIP API: Error traversing database - perhaps it is corrupt? ....
to workaround, to be able to view detail, delete GeoIP.dat!

Any solution for this problem?

Odon Garma
Posts: 24
Joined: 08 May 2017 14:10

Re: GeoIP not working

Post by Odon Garma » 14 Jan 2019 14:40

Discontinuation of the GeoLite Legacy Databases

https://blog.maxmind.com/2018/01/02/dis ... databases/

Solutions?? Any??

Someone can send me the latest working GeoIP.dat to replace my non-working version??

User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: GeoIP not working

Post by shawniverson » 14 Jan 2019 17:44

eFa v4 is the solution. It uses GeoIP2. I am working hard to get it ready.
Version 3.0.2.6 released! Update now to keep your eFa secure!

henk
Posts: 220
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: GeoIP not working

Post by henk » 15 Jan 2019 08:13

I attached the GEOIP files. ( from Dec 17 2018). Since the files are to big to attach, I needed to compress the files a bit.

Code: Select all

export GZIP='--best'
tar -c -z -f geoip.tar.gz /root/backup/geoip
Result:

Code: Select all

[root@sansspam geoip]# ls -l
total 5492
-rw-r--r-- 1 apache apache 1242574 Dec 17 14:33 GeoIP.dat
-rw-r--r-- 1 root   root   1926651 Jan 15 09:06 geoip.tar.gz
-rw-r--r-- 1 apache apache 2447543 Dec 17 14:33 GeoIPv6.dat
P.S.
Any new install or EFA - configure will have the same issue. :(
January 2, 2019 – The remaining GeoLite Legacy builds will be removed from our website. GeoLite Legacy database users will need to have switched to the GeoLite2 or commercial GeoIP databases and update their integrations.
And the file should be a link.

Code: Select all

[root@sansspam ~]# ls -l /usr/share/GeoIP/GeoLiteCountry.dat
lrwxrwxrwx 1 root root 40 Apr 26  2018 /usr/share/GeoIP/GeoLiteCountry.dat -> /var/www/html/mailscanner/temp/GeoIP.dat
Attachments
geoip.tar.gz
(1.84 MiB) Downloaded 13 times

Odon Garma
Posts: 24
Joined: 08 May 2017 14:10

Re: GeoIP not working

Post by Odon Garma » 16 Jan 2019 07:23

You made my day! Thanks for the files.

i'm looking forward to start with efa v4

Greetz

Post Reply