VTUL / vtechworks

DSpace at Virginia Tech
http://vtechworks.lib.vt.edu
Other
6 stars 8 forks source link

Investigate DS-4409 significant changes to GeoLite2 usage terms #700

Open alawvt opened 4 years ago

alawvt commented 4 years ago

DS-4400 significant changes to GeoLite2 usage terms notes that the terms for and access to the Geolite database has changed. This database is used for IP locations for SOLR statistics.

We currently used the default download location for DSpace 6.3, listed in dspace/src/main/config/build.xml,

<!-- Default location of GeoLite2 City database to download. This may be overridden, if URL path changes. -->
    <property name="geolite" value="http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz" />

2020-05-18, I added a comment in that issue seeking more information.

alawvt commented 4 years ago

http://dspace.2283337.n4.nabble.com/Help-need-with-GeoLite-td4692642.html#a4692682 advises,

MaxMind provides their own tool (geoipupdate) which implements their new requirement for authentication when downloading. The tool may already be available in your OS' package manager. Debian has it (and thus Ubuntu does).

When you sign up for a MaxMind account, you agree to keep your copy of the database updated.

Let 'geoipupdate' download a copy of the database where it will, and configure DSpace to use that copy by setting the value of 'usage-statistics.dbfile' in config/local.cfg to point to that copy. 'geoipupdate' stores the local database copy at the path indicated by 'DatabaseDirectory' in '/etc/GeoIP.conf'.

I have a 'cron' job set up to run 'geoipupdate' twice a month, to keep the database updated.

Currently dspace/config/modules/usage-statistics.cfg lists

# The location for the Geo Database retrieved on update/installation
usage-statistics.dbfile = ${dspace.dir}/config/GeoLite2-City.mmdb

This can be overwritten in local.cfg as instructed above.