You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Furkan KAMACI <fu...@gmail.com> on 2013/11/28 16:03:11 UTC

Solr 4.5.1 Startup Problem

I use Solr 4.5.1 I have a configuration from Solr 4.3. When I start my Solr
I get that exception:

org.apache.solr.common.SolrException: Could not load config for
solrconfig.xml
at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:919)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.solr.common.SolrException: Invalid luceneMatchVersion
'4.5', valid values are: [LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33,
LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_40, LUCENE_41, LUCENE_42,
LUCENE_43, LUCENE_CURRENT] or a string in format 'V.V'
at org.apache.solr.core.Config.parseLuceneVersionString(Config.java:424)
at org.apache.solr.core.Config.getLuceneVersion(Config.java:409)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:121)
at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:916)
... 11 more

What should I change? I have 4.5 as lucenematchversion.

Re: Solr 4.5.1 Startup Problem

Posted by Furkan KAMACI <fu...@gmail.com>.
A long version of error log:

3756 [coreLoadExecutor-3-thread-1] ERROR org.apache.solr.core.CoreContainer
 - Unable to create core: collection1
org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:821)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1438)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1550)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:796)
... 13 more
Caused by: org.apache.solr.common.SolrException: Error opening Reader
at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:172)
at
org.apache.solr.search.SolrIndexSearcher.<init>(SolrIndexSearcher.java:183)
at
org.apache.solr.search.SolrIndexSearcher.<init>(SolrIndexSearcher.java:179)
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1414)
... 15 more
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene45' does not exist. You
need to add the corresponding JAR file supporting this SPI to your
classpath.The current classpath supports the following names: [Lucene40,
Lucene3x, Lucene41, Lucene42, SimpleText, Appending]
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)
at org.apache.lucene.codecs.Codec.forName(Codec.java:95)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:299)
at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:56)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:783)
at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:88)
at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:34)
at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:169)
... 18 more
3758 [coreLoadExecutor-3-thread-1] ERROR org.apache.solr.core.CoreContainer
 - null:org.apache.solr.common.SolrException: Unable to create core:
collection1
at
org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:1450)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:993)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:821)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
... 10 more


2013/11/28 Furkan KAMACI <fu...@gmail.com>

> I use Solr 4.5.1 I have a configuration from Solr 4.3. When I start my
> Solr I get that exception:
>
> org.apache.solr.common.SolrException: Could not load config for
> solrconfig.xml
>  at
> org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:919)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
>  at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
> at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
>  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.solr.common.SolrException: Invalid
> luceneMatchVersion '4.5', valid values are: [LUCENE_30, LUCENE_31,
> LUCENE_32, LUCENE_33, LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_40,
> LUCENE_41, LUCENE_42, LUCENE_43, LUCENE_CURRENT] or a string in format 'V.V'
>  at org.apache.solr.core.Config.parseLuceneVersionString(Config.java:424)
> at org.apache.solr.core.Config.getLuceneVersion(Config.java:409)
>  at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:121)
> at
> org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:916)
>  ... 11 more
>
> What should I change? I have 4.5 as lucenematchversion.
>

Re: Solr 4.5.1 Startup Problem

Posted by Shawn Heisey <so...@elyograg.org>.
On 11/28/2013 8:03 AM, Furkan KAMACI wrote:
> Caused by: org.apache.solr.common.SolrException: Invalid luceneMatchVersion
> '4.5', valid values are: [LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33,
> LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_40, LUCENE_41, LUCENE_42,
> LUCENE_43, LUCENE_CURRENT] or a string in format 'V.V'

This indicates that what is actually running is not using Lucene 4.5.1,
it's using Lucene 4.3.  If it were 4.5.1, it would list LUCENE_44 and
LUCENE_45 as well, and your configured version of 4.5 would work with no
problem.

When you upgraded Solr, are you sure you replaced the war with the
correct version?  It is also strongly recommended that you delete the
extracted webapp before restarting, so there is no possibility of old
jars hanging around.  If you are using the included jetty with the
included context config, you would need to delete the solr-webapp
directory.  With another servlet container, I have no idea where it
would be.

Thanks,
Shawn


Re: Solr 4.5.1 Startup Problem

Posted by Guido Medina <gu...@temetra.com>.
AFAIK you should have "4.5" just like in my config used to be (4.6 in my 
case), check for the obvious, no spaces (or hidden spaces), etc.

<luceneMatchVersion>4.6</luceneMatchVersion>


Also, it looks like your Solr hasn't been upgraded properly, if you 
verify the list of supported versions it should be something like:

Caused by: org.apache.solr.common.SolrException: Invalid luceneMatchVersion
'4.5', valid values are: [LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33,
LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_40, LUCENE_41, LUCENE_42, LUCENE_43,
LUCENE_44, LUCENE_45, LUCENE_CURRENT]


As you can see it is not listing versions 4.4 or 4.5 so I guess somehow 
your war/libraries are still 4.3

HTH,

Guido.

On 28/11/13 15:03, Furkan KAMACI wrote:
> I use Solr 4.5.1 I have a configuration from Solr 4.3. When I start my Solr
> I get that exception:
>
> org.apache.solr.common.SolrException: Could not load config for
> solrconfig.xml
> at
> org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:919)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
> at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
> at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.solr.common.SolrException: Invalid luceneMatchVersion
> '4.5', valid values are: [LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33,
> LUCENE_34, LUCENE_35, LUCENE_36, LUCENE_40, LUCENE_41, LUCENE_42,
> LUCENE_43, LUCENE_CURRENT] or a string in format 'V.V'
> at org.apache.solr.core.Config.parseLuceneVersionString(Config.java:424)
> at org.apache.solr.core.Config.getLuceneVersion(Config.java:409)
> at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:121)
> at
> org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:916)
> ... 11 more
>
> What should I change? I have 4.5 as lucenematchversion.
>