This issue has been created
There are 11 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-aa70c5de-27c7-47a4-8067-2a52d6bf906a XWIKI-22467 Closed

Standalone Solr error due to missing ukrainian.dict

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f4dfa0d0-f89f-415e-93ab-f1b3adda14fe Antoine Mottier created this issue on 29/Aug/24 16:42
 
Summary: Standalone Solr error due to missing ukrainian.dict
Issue Type: cid:jira-generated-image-avatar-aa70c5de-27c7-47a4-8067-2a52d6bf906a Bug
Affects Versions: 16.6.0, 16.7.0
Assignee: Unassigned
Components: Search - Solr
Created: 29/Aug/24 16:42
Environment: Solr 9.4 standalone
Identify on XWiki 16.7.0 but should also apply to XWiki 16.6.0.
Priority: cid:jira-generated-image-static-major-1c86b43b-9418-4fa1-979d-f78b39d7e870 Major
Reporter: Antoine Mottier
Description:

The [commit](https://github.com/xwiki/xwiki-platform/commit/549d20b19a6a9de6b0d729a43b1e64b7499c5e62#diff-66aefff31b2ef233e114d6d3d434c23a0fb625c2ef496a5c45a78e8e8e5fc6f8) to fix XWIKI-18416 introduced a new dependency on morfologik-ukrainian-lt.

In a standalone installation of Solr, if this library is not added (and also if analysis-extras Solr module is not enabled) it will throw an error:

024-08-29 16:21:01.384 ERROR (coreContainerWorkExecutor-2-thread-1) [c: s: r: x: t:] o.a.s.c.CoreContainer Error waiting for SolrCore to be loaded on startup => java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [xwiki_search_9]
        at java.base/java.util.concurrent.FutureTask.report(Unknown Source)
java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [xwiki_search_9]
        at java.base/java.util.concurrent.FutureTask.report(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.get(Unknown Source) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$13(CoreContainer.java:1073) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:212) ~[metrics-core-4.2.21.jar:4.2.21]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
        at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:294) ~[?:?]
        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: Unable to create core [xwiki_search_9]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1739) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: Could not load conf for core xwiki_search_9: Error loading parsing schema
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:278) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: Error loading parsing schema
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:289) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: Can't load schema /var/solr/data/xwiki_search_9/conf/managed-schema.xml: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'org/languagetool/resource/uk/ukrainian.dict' in classpath or '/var/solr/data/xwiki_search_9'
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:662) ~[?:?]
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:112) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:287) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'org/languagetool/resource/uk/ukrainian.dict' in classpath or '/var/solr/data/xwiki_search_9'
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsInChain(IndexSchema.java:2097) ~[?:?]
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsForFieldType(IndexSchema.java:2007) ~[?:?]
        at java.base/java.util.HashMap$Values.forEach(Unknown Source) ~[?:?]
        at org.apache.solr.schema.IndexSchema.postReadInform(IndexSchema.java:684) ~[?:?]
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:658) ~[?:?]
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:112) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:287) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'org/languagetool/resource/uk/ukrainian.dict' in classpath or '/var/solr/data/xwiki_search_9'
        at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:382) ~[?:?]
        at org.apache.lucene.analysis.morfologik.MorfologikFilterFactory.inform(MorfologikFilterFactory.java:104) ~[?:?]
        at org.apache.solr.core.SolrResourceLoader.informAware(SolrResourceLoader.java:765) ~[?:?]
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsInChain(IndexSchema.java:2095) ~[?:?]
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsForFieldType(IndexSchema.java:2007) ~[?:?]
        at java.base/java.util.HashMap$Values.forEach(Unknown Source) ~[?:?]
        at org.apache.solr.schema.IndexSchema.postReadInform(IndexSchema.java:684) ~[?:?]
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:658) ~[?:?]
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:112) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:287) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more

Updating [documentation](https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr%20Search%20API#HManualinstall) should actually fix the issue.

 
 

11 updates

 
cid:jira-generated-image-avatar-3f09c3f8-eddd-48c8-b0f1-9ef2abff6314 Changes by Thomas Mortagne on 29/Aug/24 16:44
 
Fix Version: 16.8.0-rc-1
Fix Version: 16.7.1
Documentation in Release Notes: N/A
Documentation: N/A
Description: The [commit ]( | https://github.com/xwiki/xwiki-platform/commit/549d20b19a6a9de6b0d729a43b1e64b7499c5e62#diff-66aefff31b2ef233e114d6d3d434c23a0fb625c2ef496a5c45a78e8e8e5fc6f8 ) ] to fix XWIKI-18416 introduced a new dependency on {{morfologik-ukrainian-lt}}.

In a standalone installation of Solr, if this library is not added (and also if {{analysis-extras}} Solr module is not enabled) it will throw an error:

{code}
024-08-29 16:21:01.384 ERROR (coreContainerWorkExecutor-2-thread-1) [c: s: r: x: t:] o.a.s.c.CoreContainer Error waiting for SolrCore to be loaded on startup => java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [xwiki_search_9]
        at java.base/java.util.concurrent.FutureTask.report(Unknown Source)
java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [xwiki_search_9]
        at java.base/java.util.concurrent.FutureTask.report(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.get(Unknown Source) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$13(CoreContainer.java:1073) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:212) ~[metrics-core-4.2.21.jar:4.2.21]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
        at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:294) ~[?:?]
        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: Unable to create core [xwiki_search_9]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1739) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: Could not load conf for core xwiki_search_9: Error loading parsing schema
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:278) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: Error loading parsing schema
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:289) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: Can't load schema /var/solr/data/xwiki_search_9/conf/managed-schema.xml: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'org/languagetool/resource/uk/ukrainian.dict' in classpath or '/var/solr/data/xwiki_search_9'
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:662) ~[?:?]
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:112) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:287) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.common.SolrException: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'org/languagetool/resource/uk/ukrainian.dict' in classpath or '/var/solr/data/xwiki_search_9'
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsInChain(IndexSchema.java:2097) ~[?:?]
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsForFieldType(IndexSchema.java:2007) ~[?:?]
        at java.base/java.util.HashMap$Values.forEach(Unknown Source) ~[?:?]
        at org.apache.solr.schema.IndexSchema.postReadInform(IndexSchema.java:684) ~[?:?]
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:658) ~[?:?]
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:112) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:287) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'org/languagetool/resource/uk/ukrainian.dict' in classpath or '/var/solr/data/xwiki_search_9'
        at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:382) ~[?:?]
        at org.apache.lucene.analysis.morfologik.MorfologikFilterFactory.inform(MorfologikFilterFactory.java:104) ~[?:?]
        at org.apache.solr.core.SolrResourceLoader.informAware(SolrResourceLoader.java:765) ~[?:?]
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsInChain(IndexSchema.java:2095) ~[?:?]
        at org.apache.solr.schema.IndexSchema.informResourceLoaderAwareObjectsForFieldType(IndexSchema.java:2007) ~[?:?]
        at java.base/java.util.HashMap$Values.forEach(Unknown Source) ~[?:?]
        at org.apache.solr.schema.IndexSchema.postReadInform(IndexSchema.java:684) ~[?:?]
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:658) ~[?:?]
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:192) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:112) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:287) ~[?:?]
        at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:54) ~[?:?]
        at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:357) ~[?:?]
        at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:268) ~[?:?]
        at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
        at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:264) ~[?:?]
        at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1696) ~[?:?]
        at org.apache.solr.core.CoreContainer.lambda$loadInternal$12(CoreContainer.java:1044) ~[?:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:234) ~[metrics-core-4.2.21.jar:4.2.21]
        ... 5 more
{code}

Updating [documentation
]( | https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr%20Search%20API#HManualinstall ) ] should actually fix the issue.
Assignee: Thomas Mortagne
Priority: Major Blocker
Resolution: Fixed
Tests: Unit,Integration
Status: Open Closed
Labels: regression