error while ant_update - dspace5.2

37 views
Skip to first unread message

Ribin Jones

unread,
Mar 21, 2016, 11:44:50 PM3/21/16
to DSpace Technical Support
Hi,

I am running Dspace 4.1 in Ubuntu. I was trying to upgrade to dspace 5.2. While ant_update, I get the below error:

update_solr_indexes:
     [echo] Checking if any Solr indexes (/dspace/solr/*) need upgrading...
     [echo] Current version of Solr/Lucene: 4.10.2

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
/build/dspace-5.2-src-release/dspace/target/dspace-installer/build.xml:974: The following error occurred while executing this line:
/build/dspace-5.2-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 /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.nio.file.NoSuchFileException: /dspace/solr/statistics/data/index/segments_zs2
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        atsun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:334)
        at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:196)
        at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:113)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:341)
        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

Any help is greatly appreciated.

Ribin Jones S.B 
Reply all
Reply to author
Forward
0 new messages