Hi
I am in the process of upgrading dspace from version 4.2 to 5. My mvn clean –U package was successful. However, when I run ant update I am getting the following error.
update_solr_indexes:
[echo] Checking if any Solr indexes (/home/dspace/dspace/solr/*) need upgrading...
[echo] Current version of Solr/Lucene: 4.10.2
check_solr_index:
[echo] Checking if the Solr index at /home/dspace/dspace/solr/statistics/data/index/ is >= Solr 3.5.0
[java] Java Result: 1
BUILD FAILED
/home/dspace/dspace-5.0-src-release/dspace/target/dspace-installer/build.xml:974: The following error occurred while executing this line:
/home/dspace/dspace-5.0-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 /home/dspace/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: /home/dspace/dspace/solr/statistics/data/index/segments_gfg
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)
at sun.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.NIOFSDirectory.openInput(NIOFSDirectory.java:81)
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
Kind Regards,
Admire Mutsikiwa (Mr)
ICT Manager
Libraries
University of Zimbabwe
Mob:+263782476883
“It is easy to dodge our responsibilities, but we cannot dodge the consequences of dodging our responsibilities.” Josiah Charles Stamp
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette