Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22467

Standalone Solr error due to missing ukrainian.dict

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 16.7.1, 16.8.0-rc-1
    • 16.6.0, 16.7.0
    • Search - Solr
    • Solr 9.4 standalone
      Identify on XWiki 16.7.0 but should also apply to XWiki 16.6.0.
    • Unit, Integration
    • Unknown
    • N/A
    • N/A

    Description

      The commit 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 should actually fix the issue.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            amottier Antoine Mottier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: