[Systems] geoip/database path (was: Re: Installation on Ubuntu ...)

Peter Pöml poeml at cmdline.net
Mon Sep 28 19:08:57 EDT 2009


Hi,

Am 28.09.2009 um 23:49 schrieb Peter Pöml:
>> Another thing I noticed this morning is that something is wrong with
>> the permission on the GeoIP.dat file.  When installed according to  
>> the
>> directions, I get a file not found error when adding a new mirror via
>> ./mirrordoctor new ....
>
>
> Okay, that we need to look into. I guess the path where the  
> mirrordoctor looks for the database file is not good for the place  
> where Ubuntu puts the file. I think I'll be able to reproduce this  
> shortly...


I tried to reproduce this and it didn't happen for me -- or at least  
not *exactly*. I got an error when creating a mirror because the  
geoiplookup_continent wasn't found in the path. That happens if the  
tool is copied to /usr/bin/ but not made executable (as it happens to  
be in the recipe). Making the program executable fixes this for me.  
(Docs updated.) The database seems to be found, as the lookup is then  
successful when creating a mirror.

The GeoIP database should really be found, as the Python module looks  
at the locations listed in
http://svn.mirrorbrain.org/svn/mirrorbrain/trunk/mirrordoctor/mb/geoip.py 
  (see near the top). /usr/share/GeoIP/GeoIP.dat is the correct  
location for Ubuntu, according to dpkg --listfiles output. (If an  
updated database is found in /var/lib/GeoIP, it is preferred.)


Peter


More information about the Systems mailing list