mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 03:45:53 +03:00
[GH-ISSUE #7] can't open geoip database #4
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.
@abh commented on GitHub (Sep 3, 2012):
Fixed in
github.com/abh/geoip@fcc7856b6d