I feel like I'm rapidly losing my mind while trying to upgrade a DSpace
1.7.3 installation to 5.3.

I copied the entire c:/dspace directory from the old to the new server (on
which I have previously successfully build and installed 5.3), dropped the
dspace database and restored a copy from the old server, and then ran ant
update. Everything seemed to go well until solr, which failed with the
error copied below.

I've followed the instructions at
https://wiki.duraspace.org/display/DSDOC5x/Upgrading+DSpace:
- I downloaded lucene-core-3.5.0.jar to the install directory and ran ant
update again, but got the same error.
- I tried manually updating the indices:
java -cp lucene-core-3.5.0.jar org.apache.lucene.index.IndexUpgrader
/dspace/solr/statistics/data/index/
java -cp lucene-core-3.5.0.jar org.apache.lucene.index.IndexUpgrader
/dspace/solr/oai/data/index/
no errors, or any feedback, and ant update still fails.

Is there anything else I can do?

This is the error:

check_solr_index:
     [echo] Checking if the Solr index at
/dspace/solr/statistics/data/index/ is >= Solr 3.5.0
     [java] Java Result: 1

BUILD FAILED
C:\Users\cartes\Desktop\dspace-5.3-src-release\dspace\target\dspace-installer\build.xml:974:
The following error occurred while executing this line:
C:\Users\cartes\Desktop\dspace-5.3-src-release\dspace\target\dspace-installer\build.xml:1061:
ERROR occurred while checking Solr index version:
Exception in thread "main" java.io.IOException: Could not read Lucene
segments files in C:\dspace\solr\statistics\data\index
        at
org.dspace.app.util.IndexVersion.getIndexVersion(IndexVersion.java:141)
        at org.dspace.app.util.IndexVersion.main(IndexVersion.java:59)
Caused by: java.io.EOFException: read past EOF:
MMapIndexInput(path="C:\dspace\solr\statistics\data\index\segments_1")
        at
org.apache.lucene.store.ByteBufferIndexInput.readByte(ByteBufferIndexInput.java:81)
        at
org.apache.lucene.store.BufferedChecksumIndexInput.readByte(BufferedChecksumIndexInput.java:41)
        at org.apache.lucene.store.DataInput.readInt(DataInput.java:98)
        at org.apache.lucene.store.DataInput.readLong(DataInput.java:154)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:425)
        at
org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:454)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:906)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:752)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:450)
        at
org.dspace.app.util.IndexVersion.getIndexVersion(IndexVersion.java:136)
        ... 1 more

Sean


--

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to