Hello,

 

I created an index on my local machine (Windows 10) and it works fine there.

After uploading the index to the production server (Linux), the server shows
an error:

 

java.util.concurrent.ExecutionException:
org.apache.solr.common.SolrException: Unable to create core
[contentselect_v3]

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)

        at java.util.concurrent.FutureTask.get(FutureTask.java:192)

        at
org.apache.solr.core.CoreContainer.lambda$load$6(CoreContainer.java:581)

        at org.apache.solr.core.CoreContainer$$Lambda$107/382729.run(Unknown
Source)

        at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(In
strumentedExecutorService.java:176)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$e
xecute$0(ExecutorUtil.java:229)

        at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$
106/7410549.run(Unknown Source)

        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
42)

        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
17)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.solr.common.SolrException: Unable to create core
[contentselect_v3]

        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:933)

        at
org.apache.solr.core.CoreContainer.lambda$load$5(CoreContainer.java:553)

        at
org.apache.solr.core.CoreContainer$$Lambda$105/10330637.call(Unknown Source)

        at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(I
nstrumentedExecutorService.java:197)

        ... 6 more

Caused by: org.apache.solr.common.SolrException: Error opening new searcher

        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:965)

        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:831)

        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:918)

        ... 9 more

Caused by: org.apache.solr.common.SolrException: Error opening new searcher

        at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2032)

        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2152)

        at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1054)

        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:938)

        ... 11 more

Caused by: org.apache.lucene.index.CorruptIndexException: Unexpected file
read error while reading index.
(resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/data/index/segme
nts_2e5r")))

        at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:290)

        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:928)

        at
org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:118)

        at
org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:93)

        at
org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSol
rCoreState.java:248)

        at
org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreSt
ate.java:122)

        at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1993)

        ... 14 more

Caused by: java.io.EOFException: read past EOF:
NIOFSIndexInput(path="/data/index/segments_2e5r")

        at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:33
6)

        at
org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java
:140)

        at
org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java
:116)

        at
org.apache.lucene.store.BufferedChecksumIndexInput.readBytes(BufferedChecksu
mIndexInput.java:49)

        at org.apache.lucene.store.DataInput.readString(DataInput.java:237)

        at
org.apache.lucene.store.DataInput.readMapOfStrings(DataInput.java:287)

        at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:402)

        at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:288)

        ... 20 more

 

 

 

 

After doing checkIndex on the index, I get this error:

 

ERROR: could not read any segments file in directory

org.apache.lucene.index.CorruptIndexException: Unexpected file read error
while reading index.
(resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/data/index/segme
nts_2e5r")))

        at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:290)

        at
org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:527)

        at org.apache.lucene.index.CheckIndex.doCheck(CheckIndex.java:2769)

        at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2671)

        at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2597)

Caused by: java.io.EOFException: read past EOF:
NIOFSIndexInput(path="/data/index/segments_2e5r")

        at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:33
6)

        at
org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java
:140)

        at
org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java
:116)

        at
org.apache.lucene.store.BufferedChecksumIndexInput.readBytes(BufferedChecksu
mIndexInput.java:49)

        at org.apache.lucene.store.DataInput.readString(DataInput.java:237)

        at
org.apache.lucene.store.DataInput.readMapOfStrings(DataInput.java:287)

        at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:402)

        at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:288)

        ... 4 more

 

 

I'm wondering what went wrong. I checked the files that I uploaded,
everything seems to be complete, also I uploaded the segments_2e5r again,
still same error.

 

Any Idea?

 

Best

Moritz

Reply via email to