Help need with GeoLite

904 views
Skip to first unread message

Ashim Kapoor

unread,
Mar 6, 2020, 5:38:30 AM3/6/20
to DSpace Technical Support
Dear All,

I changed my email configuration slightly and ran mvn and ant.

It asked me to do ant update_geolite.

Which in turn says:-
You may manually install this file by following these steps:
     [echo] (1) Download the latest database archive from http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
     [echo] (2) Unpack it.'
     [echo] (3) Copy the file 'GeoLite2-City.mmdb' to '${usage-statistics.dbfile}'.

Query 1 : The above link to GeoLite2-City.tar.gz is broken. What do I do about this?
Query 2:  In my local.cfg I can't file usage-statistics.dbfile. Where is this pointing to ?

Many thanks,
Ashim

-------------------------  snip -------------------------------------------------- full output --------------------------------------------------------------

dspace@DSpace:~/dspace-download/dspace-6.3-release/dspace/target/dspace-installer$ sudo ant update_geolite
[sudo] password for dspace:
Buildfile: /home/dspace/dspace-download/dspace-6.3-release/dspace/target/dspace-installer/build.xml

update_geolite:
     [echo] Downloading: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
      [get] Getting: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
      [get] To: /home/dspace/dspace-install/config/GeoLite2-City.tar.gz
      [get] Error getting http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz to /home/dspace/dspace-install/config/GeoLite2-City.tar.gz
     [echo]
     [echo] ====================================================================
     [echo] WARNING : FAILED TO DOWNLOAD GEOLITE DATABASE FILE
     [echo]           (Used for DSpace Solr Usage Statistics)
     [echo]
     [echo] Underlying Error: java.net.UnknownHostException: geolite.maxmind.com
     [echo]
     [echo] In order to use DSpace Solr Usage Statistics, you will need to
     [echo] manually re-run:
     [echo]
     [echo] ant update_geolite
     [echo]
     [echo] OR
     [echo]
     [echo] You may manually install this file by following these steps:
     [echo] (1) Download the latest database archive from http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
     [echo] (2) Unpack it.'
     [echo] (3) Copy the file 'GeoLite2-City.mmdb' to '${usage-statistics.dbfile}'.
     [echo]
     [echo] ====================================================================
     [echo]                

BUILD SUCCESSFUL
Total time: 6 seconds

Ashim Kapoor

unread,
Mar 6, 2020, 5:54:49 AM3/6/20
to DSpace Technical Support
Dear All,

I signed up to Maxmind and downloaded GeoLite2-City_xxxxxx.tar.gz which has the file GeoLite2-City.mmdb

Where do I place this file ?

Thank you,
Ashim

Ashim Kapoor

unread,
Mar 6, 2020, 6:08:50 AM3/6/20
to DSpace Technical Support
Dear All,

This page:

says:
The GeoLite Database file (at [dspace]/config/GeoLite2-City.mmdb) is used by the Statistics engine to generate location/country based reports. (Note: If you are not using DSpace Statistics, this file is not needed.)

Thank you,
Ashim

Bram Luyten

unread,
Mar 6, 2020, 7:56:22 AM3/6/20
to Ashim Kapoor, DSpace Technical Support
Hello,

background on this problem: It is no longer possible to download the GeoLite DB without authentication.

significant changes to GeoLite2 usage terms - https://jira.lyrasis.org/browse/DS-4409
Remove GeoIP download Ant target, reconfigure for external provision - https://github.com/DSpace/DSpace/pull/2632

with kindest regards,

Bram

logoBram Luyten
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Gaston Geenslaan 14, 3001 Leuven, Belgium
DSpace Express Hosting - Open Repository Hosting - Custom DSpace Services


--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CAGEJAoE0KyS3XajzKt-bBR%3Dm34K6XKma21_GCoarcPtASkWAEQ%40mail.gmail.com.

Ashim Kapoor

unread,
Mar 7, 2020, 2:55:54 AM3/7/20
to Bram Luyten, DSpace Technical Support
Dear Bram,

Many thanks for your reply.

I have some more queries.

I am not sure as to what is happening on this page:-


Looks like they have removed the ant update_geolite for Dspace 7.

I am on Dspace 6.3. Is it enough for me to download manually the Geolite2-city.mmdb file and place it in this path :-
[dspace]/config/GeoLite2-City.mmdb

I am sorry but I am a little confused.

Best Regards,
Ashim

Bram Luyten

unread,
Mar 8, 2020, 6:15:54 AM3/8/20
to Ashim Kapoor, DSpace Technical Support
Dear Ashim,

yes, for the time being, locally downloading the file to the location you mentioned will do the trick !!!

have a nice day,

Bram

logoBram Luyten
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Gaston Geenslaan 14, 3001 Leuven, Belgium
DSpace Express Hosting - Open Repository Hosting - Custom DSpace Services

Mark H. Wood

unread,
Mar 9, 2020, 10:59:50 AM3/9/20
to DSpace Technical Support
On Sat, Mar 07, 2020 at 01:25:40PM +0530, Ashim Kapoor wrote:
> I have some more queries.
>
> I am not sure as to what is happening on this page:-
>
> https://github.com/DSpace/DSpace/pull/2632
>
> Looks like they have removed the ant update_geolite for Dspace 7.

Correct. MaxMind provide their own tool (geoipupdate) which
implements their new requirement for authentication when downloading.
The tool may already be available in your OS' package manager. CentOS
has it (so presumably Red Hat does also.) Debian has it (and thus
Ubuntu does). Gentoo has it.

> I am on Dspace 6.3. Is it enough for me to download manually the
> Geolite2-city.mmdb file and place it in this path :-
> [dspace]/config/GeoLite2-City.mmdb

Yes. Do note that, when you signed up for a MaxMind account, you
agreed to keep your copy of the database updated.

An alternative would be to 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.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Subrat Nanda

unread,
Oct 13, 2023, 6:22:38 AM10/13/23
to DSpace Technical Support
Dear  Mark H. Wood ,

Can it be possible to view usage statistics of geographical maps of a country and city in the localhost server?
I am running the DSpace-CRIS v2023.01.00 on a localhost. I have downloaded and configured the path of dbfile in local.cfg. I have checked the health status in the user interface and the status is ok without any issue. But I can't see any visual map of the country and city under statistics.
Kindly suggest.

Thank you.

DSpace Technical Support

unread,
Oct 13, 2023, 7:34:39 AM10/13/23
to DSpace Technical Support
It is certainly possible, but there is no code in DSpace to do that.  Usage statistics in DSpace are rather plain and simple, and probably always will be.  It might be best to extract the raw cases, with their geolocation data, and process them with an external tool that is meant for complex statistical processing and fancy presentation.
Reply all
Reply to author
Forward
0 new messages