15.10.10 version startup service error

15.10.10 version startup service error,
When starting, error “Failed to initialize the Solr core” is reported。
After startup, the same error will also be reported during loading。
Could you please take a look

2024-05-31 16:58:56,621 [main] WARN o.a.s.c.CoreContainer - Not all security plugins configured! authentication=disabled authorization=disabled. Solr is only as secure as you make it. Consider configuring authentication/authorization before exposing Solr to users internal or external. See Securing Solr :: Apache Solr Reference Guide for more info
2024-05-31 16:58:56,971 [main] ERROR o.x.s.s.i.EmbeddedSolr - Failed to initialize Solr core with id [search]
org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.(SolrCore.java:1086)
at org.apache.solr.core.SolrCore.(SolrCore.java:921)
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1461)
at org.apache.solr.core.CoreContainer.lambda$load$11(CoreContainer.java:882)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:202)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:218)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2216)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2339)
at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1145)
at org.apache.solr.core.SolrCore.(SolrCore.java:1027)
… 9 common frames omitted
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path=“D:\service\xwiki\data2\store\solr\search…cachesolrsearch\index_0_Lucene84_0.doc”))
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.(Lucene84PostingsReader.java:84)
at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:315)
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
at org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:114)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:83)
at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
at org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:213)
at org.apache.lucene.index.IndexWriter.lambda$getReader$0(IndexWriter.java:571)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:108)
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:629)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:121)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:97)
at org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:39)
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2180)
… 12 common frames omitted
2024-05-31 16:58:56,972 [main] ERROR .o.i.DefaultObservationManager - Failed to lookup listener with role hint [RecordableEventListener]
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.eventstream.store.internal.RecordableEventListener] identified by type [interface org.xwiki.observation.EventListener] and hint [RecordableEventListener]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:178)
at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:143)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:301)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:354)
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:136)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1175)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1888)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1086)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1584)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:925)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.startup.Catalina.start(Catalina.java:735)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.eventstream.internal.DefaultEventStore] identified by type [interface org.xwiki.eventstream.EventStore] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:591)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:540)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 47 common frames omitted
Caused by: org.xwiki.component.phase.InitializationException: Failed to get the configured event store [solr]
at org.xwiki.eventstream.internal.DefaultEventStore.initialize(DefaultEventStore.java:107)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 52 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.eventstream.store.solr.internal.SolrEventStore] identified by type [interface org.xwiki.eventstream.EventStore] and hint [solr]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.eventstream.internal.DefaultEventStore.initialize(DefaultEventStore.java:104)
… 56 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.DefaultSolr] identified by type [interface org.xwiki.search.solr.Solr] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:591)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:540)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 58 common frames omitted
Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup configured Solr type [embedded]
at org.xwiki.search.solr.internal.DefaultSolr.initialize(DefaultSolr.java:60)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 63 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.EmbeddedSolr] identified by type [interface org.xwiki.search.solr.Solr] and hint [embedded]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.search.solr.internal.DefaultSolr.initialize(DefaultSolr.java:58)
… 67 common frames omitted
Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize the Solr embedded server with home directory set to [D:\service\xwiki\data2\store\solr]
at org.xwiki.search.solr.internal.EmbeddedSolr.initialize(EmbeddedSolr.java:137)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 69 common frames omitted
Caused by: org.apache.solr.client.solrj.SolrServerException: Failed to initialize the Solr core. Please check previous log messages.
at org.xwiki.search.solr.internal.EmbeddedSolr.createCoreContainer(EmbeddedSolr.java:153)
at org.xwiki.search.solr.internal.EmbeddedSolr.initialize(EmbeddedSolr.java:133)
… 73 common frames omitted
2024-05-31 16:58:56,980 [main] INFO o.x.s.s.i.EmbeddedSolr - Updating Solr home directory at [D:\service\xwiki\data2\store\solr]
2024-05-31 16:58:56,987 [main] INFO o.x.s.s.i.EmbeddedSolr - Starting embedded Solr server…
2024-05-31 16:58:56,987 [main] INFO o.x.s.s.i.EmbeddedSolr - Using Solr home directory: [D:\service\xwiki\data2\store\solr]
2024-05-31 16:58:57,207 [main] WARN o.e.j.u.s.S.config - Trusting all certificates configured for Client@7923ca96[provider=null,keyStore=null,trustStore=null]
2024-05-31 16:58:57,208 [main] WARN o.e.j.u.s.S.config - No Client EndPointIdentificationAlgorithm configured for Client@7923ca96[provider=null,keyStore=null,trustStore=null]
2024-05-31 16:58:57,216 [main] WARN o.e.j.u.s.S.config - Trusting all certificates configured for Client@46202302[provider=null,keyStore=null,trustStore=null]
2024-05-31 16:58:57,216 [main] WARN o.e.j.u.s.S.config - No Client EndPointIdentificationAlgorithm configured for Client@46202302[provider=null,keyStore=null,trustStore=null]
2024-05-31 16:58:57,218 [main] WARN o.a.s.c.CoreContainer - Not all security plugins configured! authentication=disabled authorization=disabled. Solr is only as secure as you make it. Consider configuring authentication/authorization before exposing Solr to users internal or external. See Securing Solr :: Apache Solr Reference Guide for more info
2024-05-31 16:58:57,522 [main] ERROR o.x.s.s.i.EmbeddedSolr - Failed to initialize Solr core with id [search]
org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.(SolrCore.java:1086)
at org.apache.solr.core.SolrCore.(SolrCore.java:921)
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1461)
at org.apache.solr.core.CoreContainer.lambda$load$11(CoreContainer.java:882)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:202)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:218)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2216)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2339)
at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1145)
at org.apache.solr.core.SolrCore.(SolrCore.java:1027)
… 9 common frames omitted
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path=“D:\service\xwiki\data2\store\solr\search…cachesolrsearch\index_0_Lucene84_0.doc”))
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.(Lucene84PostingsReader.java:84)
at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:315)
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
at org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:114)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:83)
at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
at org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:213)
at org.apache.lucene.index.IndexWriter.lambda$getReader$0(IndexWriter.java:571)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:108)
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:629)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:121)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:97)
at org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:39)
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2180)
… 12 common frames omitted
2024-05-31 16:58:57,523 [main] ERROR .o.i.DefaultObservationManager - Failed to lookup listener with role hint [solr.availablelocales]
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.SolrIndexAvailableLocalesListener] identified by type [interface org.xwiki.observation.EventListener] and hint [solr.availablelocales]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:178)
at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:143)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:301)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:354)
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:136)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1175)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1888)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1086)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1584)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:925)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.startup.Catalina.start(Catalina.java:735)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.SolrClientInstance] identified by type [interface org.xwiki.search.solr.internal.api.SolrInstance] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:591)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:540)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 47 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.DefaultSolr] identified by type [interface org.xwiki.search.solr.Solr] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:591)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:540)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 52 common frames omitted
Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup configured Solr type [embedded]
at org.xwiki.search.solr.internal.DefaultSolr.initialize(DefaultSolr.java:60)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 57 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.EmbeddedSolr] identified by type [interface org.xwiki.search.solr.Solr] and hint [embedded]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:332)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
at org.xwiki.search.solr.internal.DefaultSolr.initialize(DefaultSolr.java:58)
… 61 common frames omitted
Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize the Solr embedded server with home directory set to [D:\service\xwiki\data2\store\solr]
at org.xwiki.search.solr.internal.EmbeddedSolr.initialize(EmbeddedSolr.java:137)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
… 63 common frames omitted
Caused by: org.apache.solr.client.solrj.SolrServerException: Failed to initialize the Solr core. Please check previous log messages.
at org.xwiki.search.solr.internal.EmbeddedSolr.createCoreContainer(EmbeddedSolr.java:153)
at org.xwiki.search.solr.internal.EmbeddedSolr.initialize(EmbeddedSolr.java:133)
… 67 common frames omitted
2024-05-31 16:58:57,555 [main] INFO o.x.s.s.i.EmbeddedSolr - Updating Solr home directory at [D:\service\xwiki\data2\store\solr]
2024-05-31 16:58:57,574 [main] INFO o.x.s.s.i.EmbeddedSolr - Starting embedded Solr server…
2024-05-31 16:58:57,574 [main] INFO o.x.s.s.i.EmbeddedSolr - Using Solr home directory: [D:\service\xwiki\data2\store\solr]

It seems a file of the Lucene/Solr index has been corrupted for some reason. The simplest would probably be to stop XWiki, delete the folder D:\service\xwiki\data2\cache\solr\search and start XWiki again (which is also going to trigger a reindex of the wiki pages).

Still reporting errors, and it looks like a loop error, with many errors reported multiple times



2024-05-31 18:12:32,920 [XWiki Solr index thread] ERROR o.a.s.h.RequestHandlerBase     - org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:236)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637)
        at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:227)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
        at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:108)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:471)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:452)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:393)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.<init>(Lucene84PostingsReader.java:84)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:315)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:114)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:83)
        at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(BufferedUpdatesStream.java:271)
        at org.apache.lucene.index.IndexWriter.openSegmentStates(IndexWriter.java:5814)
        at org.apache.lucene.index.IndexWriter.forceApply(IndexWriter.java:5630)
        at org.apache.lucene.index.IndexWriter.tryApply(IndexWriter.java:5567)
        at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$10(IndexWriter.java:2742)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEventsInternal(IndexWriter.java:354)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEvents(IndexWriter.java:344)
        at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5426)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:675)
        at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:97)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1102)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1089)
        at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:86)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
        ... 10 common frames omitted
2024-05-31 18:12:32,920 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to commit index changes to the Solr server. Rolling back.
org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:236)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637)
        at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:227)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
        at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:108)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:471)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:452)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:393)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.<init>(Lucene84PostingsReader.java:84)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:315)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:114)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:83)
        at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(BufferedUpdatesStream.java:271)
        at org.apache.lucene.index.IndexWriter.openSegmentStates(IndexWriter.java:5814)
        at org.apache.lucene.index.IndexWriter.forceApply(IndexWriter.java:5630)
        at org.apache.lucene.index.IndexWriter.tryApply(IndexWriter.java:5567)
        at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$10(IndexWriter.java:2742)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEventsInternal(IndexWriter.java:354)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEvents(IndexWriter.java:344)
        at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5426)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:675)
        at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:97)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1102)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1089)
        at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:86)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
        ... 10 common frames omitted
2024-05-31 18:12:33,004 [XWiki Solr index thread] ERROR o.a.s.h.RequestHandlerBase     - org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:236)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637)
        at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:227)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
        at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:108)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:471)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:452)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:393)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.<init>(Lucene84PostingsReader.java:84)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:315)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:114)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:83)
        at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(BufferedUpdatesStream.java:271)
        at org.apache.lucene.index.IndexWriter.openSegmentStates(IndexWriter.java:5814)
        at org.apache.lucene.index.IndexWriter.forceApply(IndexWriter.java:5630)
        at org.apache.lucene.index.IndexWriter.tryApply(IndexWriter.java:5567)
        at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$10(IndexWriter.java:2742)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEventsInternal(IndexWriter.java:354)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEvents(IndexWriter.java:344)
        at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5426)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:675)
        at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:97)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1102)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1089)
        at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:86)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
        ... 10 common frames omitted
2024-05-31 18:12:33,004 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to commit index changes to the Solr server. Rolling back.
org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:236)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637)
        at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:227)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
        at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:108)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:471)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:452)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:393)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.<init>(Lucene84PostingsReader.java:84)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:315)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:114)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:83)
        at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(BufferedUpdatesStream.java:271)
        at org.apache.lucene.index.IndexWriter.openSegmentStates(IndexWriter.java:5814)
        at org.apache.lucene.index.IndexWriter.forceApply(IndexWriter.java:5630)
        at org.apache.lucene.index.IndexWriter.tryApply(IndexWriter.java:5567)
        at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$10(IndexWriter.java:2742)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEventsInternal(IndexWriter.java:354)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEvents(IndexWriter.java:344)
        at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5426)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:675)
        at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:97)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1102)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1089)
        at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:86)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
        ... 10 common frames omitted
2024-05-31 18:12:33,063 [XWiki Solr index thread] ERROR o.a.s.h.RequestHandlerBase     - org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:236)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637)
        at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:227)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
        at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:108)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:471)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:459)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:393)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.<init>(Lucene84PostingsReader.java:84)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:315)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:114)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:83)
        at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(BufferedUpdatesStream.java:271)
        at org.apache.lucene.index.IndexWriter.openSegmentStates(IndexWriter.java:5814)
        at org.apache.lucene.index.IndexWriter.forceApply(IndexWriter.java:5630)
        at org.apache.lucene.index.IndexWriter.tryApply(IndexWriter.java:5567)
        at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$10(IndexWriter.java:2742)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEventsInternal(IndexWriter.java:354)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEvents(IndexWriter.java:344)
        at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5426)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:675)
        at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:97)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1102)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1089)
        at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:86)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
        ... 10 common frames omitted
2024-05-31 18:12:33,064 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to commit index changes to the Solr server. Rolling back.
org.apache.solr.common.SolrException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:236)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637)
        at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:227)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
        at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
        at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:108)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:471)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:459)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:393)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=625999872 vs expected header=1071082519 (resource=MMapIndexInput(path="D:\service\xwiki\data2\store\solr\search\......cachesolrsearch\index\_1_Lucene84_0.doc"))
        at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:255)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsReader.<init>(Lucene84PostingsReader.java:84)
        at org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.fieldsProducer(Lucene84PostingsFormat.java:438)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:315)
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:395)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:114)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:83)
        at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:171)
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(BufferedUpdatesStream.java:271)
        at org.apache.lucene.index.IndexWriter.openSegmentStates(IndexWriter.java:5814)
        at org.apache.lucene.index.IndexWriter.forceApply(IndexWriter.java:5630)
        at org.apache.lucene.index.IndexWriter.tryApply(IndexWriter.java:5567)
        at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$10(IndexWriter.java:2742)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEventsInternal(IndexWriter.java:354)
        at org.apache.lucene.index.IndexWriter$EventQueue.processEvents(IndexWriter.java:344)
        at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5426)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3770)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3728)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:675)
        at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:97)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:68)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1102)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1089)
        at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:86)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
        ... 10 common frames omitted

The path indicated in the error is quite strange, it does not look like where it’s supposed to go. Are you sure D:\service\xwiki\data2\cache\solr\search existed ?

What exactly do you have in D:\service\xwiki\data2\ ?

What do you have as content of the file D:\service\xwiki\data2\data\store\solr\search\core.properties.

So @ilie.andriuta just indicated me that indeed the Solr core folders are wrong on Windows (it seems Solr is not interpreting correctly the relative path we indicate in core.properties), we never noticed it because it does not prevent it to work (but it’s really not great that it’s not located in the expected location…).

So what you need to delete apparently is the folder named ......cachesolrsearch, the one I indicated is where I was expecting the data to be but is not on Windows.