[GH-ISSUE #7] can't open geoip database #4

Closed
opened 2026-02-28 14:15:49 +03:00 by kerem · 2 comments
Owner

Originally created by @miekg on GitHub (Aug 30, 2012).
Original GitHub issue: https://github.com/abh/geodns/issues/7

Error Opening file /usr/share/local/GeoIP/GeoIP.dat
Error Opening file /opt/local/share/GeoIP/GeoIP.dat
2012/08/30 10:05:02 Error opening GeoIP database [/usr/share/GeoIP/GeoIP.dat /usr/share/local/GeoIP/GeoIP.dat /opt/local/share/GeoIP/GeoIP.dat] no such file or directory
2012/08/30 10:05:02 Could not open GeoIP database
geodns 10:05:02.010356 geodns.go:28: Starting geodns/2.0
geodns 10:05:02.010381 config.go:320: SOA: pgeodns. 3600 IN SOA ns support.bitnames.com. 0 5400 5400 2419200 0

While the file is there:
% ls -l /usr/share/GeoIP/GeoIP.dat
-rw-r--r-- 1 root root 1.6M Jan 3 2012 /usr/share/GeoIP/GeoIP.dat

Originally created by @miekg on GitHub (Aug 30, 2012). Original GitHub issue: https://github.com/abh/geodns/issues/7 Error Opening file /usr/share/local/GeoIP/GeoIP.dat Error Opening file /opt/local/share/GeoIP/GeoIP.dat 2012/08/30 10:05:02 Error opening GeoIP database [/usr/share/GeoIP/GeoIP.dat /usr/share/local/GeoIP/GeoIP.dat /opt/local/share/GeoIP/GeoIP.dat] no such file or directory 2012/08/30 10:05:02 Could not open GeoIP database geodns 10:05:02.010356 geodns.go:28: Starting geodns/2.0 geodns 10:05:02.010381 config.go:320: SOA: pgeodns. 3600 IN SOA ns support.bitnames.com. 0 5400 5400 2419200 0 While the file is there: % ls -l /usr/share/GeoIP/GeoIP.dat -rw-r--r-- 1 root root 1.6M Jan 3 2012 /usr/share/GeoIP/GeoIP.dat
kerem closed this issue 2026-02-28 14:15:49 +03:00
Author
Owner

@abh commented on GitHub (Aug 30, 2012):

It's libgeoip that prints to stderr actually; there's no way to turn it off. I'll make the Go code check if the file is there before telling libgeoip to.

<!-- gh-comment-id:8170886 --> @abh commented on GitHub (Aug 30, 2012): It's libgeoip that prints to stderr actually; there's no way to turn it off. I'll make the Go code check if the file is there before telling libgeoip to.
Author
Owner

@abh commented on GitHub (Sep 3, 2012):

Fixed in github.com/abh/geoip@fcc7856b6d

<!-- gh-comment-id:8230031 --> @abh commented on GitHub (Sep 3, 2012): Fixed in https://github.com/abh/geoip/commit/fcc7856b6d8ddfb98db43f382dbb77e74900aa72
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/geodns#4
No description provided.