[ https://jira.duraspace.org/browse/DS-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21693#comment-21693 ]
Tim Donohue commented on DS-878:
--------------------------------
This is a definite bug. The DSpace installation process should skip over downloading the GeoLiteCity.dat.gz file, if it is unavailable or times out. However, DSpace should throw a warning of some sort, as this GeoLiteCity.dat file is needed by the DSpace Statistics engine (it is used to determine where hits/downloads are coming from, e.g. which country). I'll work on fixing this for 1.8.0.
In the meantime, you can get around this by manually installing the file into DSpace:
(1) Download file from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
(2) Unzip the file, which will create a file named "GeoLiteCity.dat"
(3) Manually copy this file to the folder [dspace]/config/ (where [dspace] is the location where you are installing DSpace, i.e. the 'dspace.dir' value in your dspace.cfg)
(4) Rerun 'ant fresh_install'. This time, it should skip over the 'update_geolite' step, as it will see that the [dspace]/config/GeoLiteCity.dat file already exists.
> update_geolite timesout when downloading GeoLiteCity.dat.gz
> -----------------------------------------------------------
>
> Key: DS-878
> URL: https://jira.duraspace.org/browse/DS-878
> Project: DSpace
> Issue Type: Bug
> Affects Versions: 1.7.1
> Environment: Ubuntu 10.10
> Linux version 2.6.35-28-generic (buildd@...) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011
> Reporter: Lighton Phiri
> Assignee: Tim Donohue
>
> Build process fails during update_geolite phase of ant fresh_install. It basically returns the error below.
> copy_webapps:
> [copy] Copying 968 files to /usr/local/dspace/webapps
> [copy] Copied 130 empty directories to 6 empty directories under /usr/local/dspace/webapps
> [copy] Copying 6 files to /usr/local/dspace/webapps
> build_webapps_wars:
> check_geolite:
> init_geolite:
> update_geolite:
> [echo] Downloading: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
> [get] Getting: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
> [get] To: /usr/local/dspace/config/GeoLiteCity.dat.gz
> [get] Error getting http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz to /usr/local/dspace/config/GeoLiteCity.dat.gz
> BUILD FAILED
> /tmp/dspace-1.7.1-release/dspace/target/dspace-1.7.1-build.dir/build.xml:882: The following error occurred while executing this line:
> /tmp/dspace-1.7.1-release/dspace/target/dspace-1.7.1-build.dir/build.xml:945: The following error occurred while executing this line:
> /tmp/dspace-1.7.1-release/dspace/target/dspace-1.7.1-build.dir/build.xml:931: java.net.ConnectException: Connection timed out
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:529)
> at java.net.Socket.connect(Socket.java:478)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
> at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:661)
> at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:581)
> at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:571)
> Total time: 3 minutes 49 seconds
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
|