[ 
https://jira.duraspace.org/browse/DS-878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Donohue updated DS-878:
---------------------------

    Attachment: DS-878-fix.patch

I'm attaching a patch file which will resolve this issue, and improve error 
handling of SolrLogger, etc.  This patch will be applied for DSpace 1.8.0.

The patch does the following:

(1) Enhances the Ant 'update_geolite' target so that it displays a warning if a 
download error occurs. But the DSpace installation will still continue.

(2) Also enhance the 'update_geolite' target to accept a URL parameter (via a 
new 'geolite' property). This allows users to run 'ant -Dgeolite=[url] 
update_geolite' if the GeoLiteCity download location changes.

(3) Enhances the error handling of the SolrLogger & StatisticsImporter classes. 
If the GeoLiteCity file is missing, a descriptive error message is displayed in 
the DSpace log files.

I'll leave this up for review for a day or two in case anyone has any 
implementation comments. After that, I'll fix this issue in Trunk & make sure 
it is documented in the 1.8.0 documentation. 
                
> 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.0, 1.7.1, 1.7.2
>         Environment: Ubuntu 10.10
> Linux version 2.6.35-28-generic (buildd@roseapple) (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
>             Fix For: 1.8.0
>
>         Attachments: DS-878-fix.patch
>
>
> 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

        

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to