Hello DSpace Tech,
Solr directory on dev server, as follows:
drwxr-xr-x 8 solr solr 4096 Oct 2 14:55 /var/solr/data/configsets/
ls -l /var/solr/data/configsets/
total 24
drwxr-xr-x 4 solr solr 4096 Oct 2 15:02 authority
drwxr-xr-x 4 solr solr 4096 Oct 2 15:02 oai
drwxr-xr-x 3 solr solr 4096 Oct 2 14:55 qaevent
drwxr-xr-x 3 solr solr 4096 Oct 2 14:55 search
drwxr-xr-x 4 solr solr 4096 Oct 2 15:02 statistics
drwxr-xr-x 3 solr solr 4096 Oct 2 14:55 suggestion
Please see error below :
bin$ ./dspace index-discovery -b
The script has started
(Re)building index from scratch.
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at
http://localhost:8983/solr/search: Ex pected mime type application/octet-stream but got application/json. {
"error":{
"metadata":["error-class","org.apache.solr.core.SolrCoreInitializationException","root-error-class","java.lang.ClassNotFound Exception"],
"msg":"SolrCore 'search' is not available due to init failure: Could not load conf for core search: Can't load schema /var/s olr/data/configsets/search/conf/schema.xml: Plugin init failure for [schema.xml] fieldType \"text\": Plugin init failure for [sc hema.xml] analyzer/filter: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'",
"trace":"org.apache.solr.core.SolrCoreInitializationException: SolrCore 'search' is not available due to init failure: Could not load conf for core search: Can't load schema /var/solr/data/configsets/search/conf/schema.xml: Plugin init failure for [sch ema.xml] fieldType \"text\": Plugin init failure for [schema.xml] analyzer/filter: Error loading class 'org.apache.lucene.analy sis.icu.ICUFoldingFilterFactory'\n\tat org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:2333)\n\tat org.apache.solr .core.CoreContainer.getCore(CoreContainer.java:2302)\n\tat org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:240)\n\ta t org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:524)\n\tat org.apache.solr.servlet.SolrDispatchFilter.dispatch(Sol rDispatchFilter.java:241)\n\tat org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilterRetry$0(SolrDispatchFilter.java:198)\n \tat org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:227)\n\tat org.apache.solr.servlet.Servle tUtils.rateLimitRequest(ServletUtils.java:197)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilterRetry(SolrDispatchFilter .java:192)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:181)\n\tat javax.servlet.http.HttpF ilter.doFilter(HttpFilter.java:97)\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210)\n\tat org.eclips e.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:527)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)\n\tat org.eclipse.j etty.security.SecurityHandler.handle(SecurityHandler.java:598)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(Hand lerWrapper.java:122)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)\n\tat org.eclipse.j etty.server.session.SessionHandler.doHandle(SessionHandler.java:1580)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextH andle(ScopedHandler.java:221)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)\n\tat org .eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)\n\tat org.eclipse.jetty.servlet.ServletHandler.doS cope(ServletHandler.java:484)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553)\n\tat org. eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)\n\tat org.eclipse.jetty.server.handler.ContextHandl er.doScope(ContextHandler.java:1306)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)\n\tat o rg.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)\n\tat org.eclipse.jetty.serve r.handler.InetAccessHandler.handle(InetAccessHandler.java:228)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(H andlerCollection.java:141)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)\n\tat org.eclip se.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.ha ndle(HandlerWrapper.java:122)\n\tat org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822)\n\tat org.ecl ipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)\n\tat org.eclipse.jetty.server.Server.handle(Server.jav a:563)\n\tat org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)\n\tat
org.eclipse.jetty.se rver.HttpChannel.dispatch(HttpChannel.java:753)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)\n\tat or g.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCall back.succeeded(AbstractConnection.java:314)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)\n\tat
org.ec lipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)\n\tat org.eclipse.jetty.util.thread.QueuedThre adPool.runJob(QueuedThreadPool.java:969)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.j ava:1194)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)\n\tat java.base/java.lang. Thread.run(Thread.java:840)\nCaused by: org.apache.solr.common.SolrException: Could not load conf for core search: Can't load sc hema /var/solr/data/configsets/search/conf/schema.xml: Plugin init failure for [schema.xml] fieldType \"text\": Plugin init fail ure for [schema.xml] analyzer/filter: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'\n\tat org.ap ache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:291)\n\tat org.apache.solr.core.CoreContainer.createFromDesc riptor(CoreContainer.java:1753)\n\tat org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1096)\n\tat c om.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:212)\n\tat org.apache. solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:381)\n\tat java.base/java.util.concu rrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker. run(ThreadPoolExecutor.java:635)\n\t... 1 more\nCaused by: org.apache.solr.common.SolrException: Can't load schema /var/solr/dat a/configsets/search/conf/schema.xml: Plugin init failure for [schema.xml] fieldType \"text\": Plugin init failure for [schema.xm l] analyzer/filter: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'\n\tat org.apache.solr.schema.I ndexSchema.readSchema(IndexSchema.java:662)\n\tat org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192)\n\tat org.apac he.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:109)\n\tat org.apache.solr.core.ConfigSetService.createIndexSch ema(ConfigSetService.java:370)\n\tat org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:281)\n\t at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49)\n\tat org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetS ervice.java:277)\n\t... 7 more\nCaused by: org.apache.solr.common.SolrException: Plugin init failure for [schema.xml] fieldType \"text\": Plugin init failure for [schema.xml] analyzer/filter: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingF ilterFactory'\n\tat org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:178)\n\tat org.apache.solr.s chema.IndexSchema.readSchema(IndexSchema.java:537)\n\t... 13 more\nCaused by: org.apache.solr.common.SolrException: Plugin init failure for [schema.xml] analyzer/filter: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'\n\tat or g.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:178)\n\tat org.apache.solr.schema.FieldTypePluginL oader.readAnalyzer(FieldTypePluginLoader.java:431)\n\tat org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoad er.java:78)\n\tat org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)\n\tat org.apache.solr.util. plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:143)\n\t... 14 more\nCaused by: org.apache.solr.common.SolrException: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'\n\tat org.apache.solr.core.SolrResourceLoader.fin dClass(SolrResourceLoader.java:554)\n\tat org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:616)\n\tat org.apache.solr.schema.FieldTypePluginLoader$3.create(FieldTypePluginLoader.java:402)\n\tat org.apache.solr.schema.FieldTypePlu ginLoader$3.create(FieldTypePluginLoader.java:377)\n\tat org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoa der.java:143)\n\t... 18 more\nCaused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.icu.ICUFoldingFilterFactor y\n\tat java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)\n\tat java.base/java.lang.ClassLoader.loadClass(Cla ssLoader.java:592)\n\tat java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:872)\n\tat java.base/java.lang.C lassLoader.loadClass(ClassLoader.java:525)\n\tat java.base/java.lang.Class.forName0(Native Method)\n\tat java.base/java.lang.Cla ss.forName(Class.java:467)\n\tat org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:538)\n\t... 22 more\n ",
"code":500
}
}
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:635)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:225)
at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1035)
at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1051)
at org.dspace.discovery.SolrSearchCore.initSolr(SolrSearchCore.java:98)
at org.dspace.discovery.SolrSearchCore.getSolr(SolrSearchCore.java:59)
at org.dspace.discovery.indexobject.IndexFactoryImpl.deleteAll(IndexFactoryImpl.java:250)
at org.dspace.discovery.SolrServiceImpl.deleteIndex(SolrServiceImpl.java:376)
at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:105)
at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150)
at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:155)
at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:100)
Regards,
Lewatle