tdelboni
tdelboni

Reputation: 93

Can't access bitstreams in assetstore after upgrading from DSpace 3.2 to 5.2

I've just upgraded from DSpace 3.2 to 5.2. Everything looks fine except that I can't open bitstreams. Whenever I click on an item's file, a new blank tab is opened and it eventually displays a 500 Internal Server Error.

Facts:

The above bitstream_id is correct, by the way.

Any help would be hugely appreciated! ;)

Here is my system information:

UPDATE: I also can't access a newly uploaded file, so it might no be an upgrade issue at all. In this case, DSpace correctly creates the new bitstream in filesystem and database, but I can't access it using the UI.

Upvotes: 0

Views: 718

Answers (1)

tdelboni
tdelboni

Reputation: 93

Commenting the following section of [dspace]/webapps/jspui/WEB-INF/spring/applicationContext.xml did the trick:

<!-- Google Analytics recording  -->
<bean class="org.dspace.google.GoogleRecorderEventListener">
    <property name="eventService" >
        <ref bean="dspace.eventService"/>
    </property>
</bean>

Now, why in hell a failure to access Google Analytics, that we didn't activate and shouldn't exist in the first place, should prevent the download of a file? Here's the dspace.log:

2015-07-24 11:46:33,744 INFO  org.dspace.app.webui.servlet.BitstreamServlet @ anonymous:session_id=8928432521F497D8ADFBA09FD3C65C90:ip_addr=SERVER_IP:view_bitstream:bitstream_id=2858
2015-07-24 11:50:30,940 INFO  org.apache.http.impl.execchain.RetryExec @ I/O exception (java.net.SocketException) caught when processing request to {s}->https://www.google-analytics.com:443: The network is out of reach
2015-07-24 11:50:30,941 INFO  org.apache.http.impl.execchain.RetryExec @ Retrying request to {s}->https://www.google-analytics.com:443

CAVEAT: we have a proxy in the network but just setting http.proxy won't work because DSpace will only pass HTTP requests through it.

Upvotes: 0

Related Questions