Is the config in version 1.6 compatible with Solr 4.6?

I installed Solr 4.6 without issue on my server, and I was able to access the admin interface without incident or error. When I try to connect the Apache Solr Search, this is where I run into issue. I've copied over all xml files from the module in the 4.x directory, and when I do that, I get this error

{msg=SolrCore 'collection1' is not available due to init failure: Could not load config file /<location of solr install>/example/solr/collection1/solrconfig.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load config file /<location of solr install>/example/solr/collection1/solrconfig.xml

After I messed with this for a long time, I finally followed the instructions here : http://www.openlogic.com/wazi/bid/283711/

I still get the same error. So I wonder, if solrconfig.xml is compatible with the latest Solr version 4.6? I would prefer to use 4.6, but in the website I followed the instructions on, they were using 4.2.1. Should I move to that version? Solr 4.6 has only been available for a few weeks, but I was unsure what I should do from this point. Any advice would be greatly appreciated. Thank you.

Comments

Yelldon’s picture

I was able to successfully get solr connected fie with solr 4.5.1. 4.6, for some unknown reason still wouldn't work, and I'm unsure why exactly. It may or may not even be the config xml's, because I've seen where someone else has apparently got it running correctly with 4.6.

https://coderwall.com/p/0s3flw

Either way, at least I got it functioning on 4.5.1.

Nick_vh’s picture

Nick_vh’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Ajithlal’s picture

Can you provide steps for configuring solr4.6 with apache solr module. I followed above comment
http://www.openlogic.com/wazi/bid/283711/
But not working

Ajithlal’s picture

Status: Closed (fixed) » Active
beardedgeek’s picture

I'm also getting this issue, running the latest module dev build, and sold 4.6 - Core fails to start:

org.apache.solr.common.SolrException: Could not load config file /opt/solr/core/solr/dev/solrconfig.xml
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:525)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:592)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:271)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:263)
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:722)
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:504)
at java.lang.Integer.parseInt(Integer.java:527)
at org.apache.solr.core.Config.getInt(Config.java:398)
at org.apache.solr.core.SolrConfig.loadUpdatehandlerInfo(SolrConfig.java:266)
at org.apache.solr.core.SolrConfig.(SolrConfig.java:260)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:522)
... 11 more

null:org.apache.solr.common.SolrException: Unable to create core: atlasdev
at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:977)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:601)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:271)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:263)
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:722)
Caused by: org.apache.solr.common.SolrException: Could not load config file /opt/solr/core/solr/dev/solrconfig.xml
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:525)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:592)
... 10 more
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:504)
at java.lang.Integer.parseInt(Integer.java:527)
at org.apache.solr.core.Config.getInt(Config.java:398)
at org.apache.solr.core.SolrConfig.loadUpdatehandlerInfo(SolrConfig.java:266)
at org.apache.solr.core.SolrConfig.(SolrConfig.java:260)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:522)
... 11 more

Ajithlal’s picture

Saw a wierd thing , solr 4.6 is working with conf file for 3.x version not 4.x.

For 4.6 I copied schema.xml and solrconfig.xml from /sites/modules/contrib/apachesolr/solr-conf/solr-3.x to solr-4.6.0/example/ solr\collection1\conf. Then restarted solr.

And it is working :(

Yelldon’s picture

Ajithlal,

You'll want to copy the 4.x data over to if you are running Solr 4.x.

I was able to get Solr 4.5.1 working with no issues thus far with the 7.x-1.6 release of the module. You may try the dev release of the module, as Nick_vh mentioned it should be fixed in dev, though beardedgeek mentioned, there might still be issues.

I know for sure that 4.5.1 version of Solr does indeed work with the current release version of this module and the schema. May try that version and see if that will work for you, and upgrade when the issues are resolved.

Nick_vh’s picture

Indeed, latest dev has the last common configs, commited by pwolanin. These work on solr 4.6 and I've confirmed that.

Ajithlal’s picture

Hi Nick,

The latest development release of this module is working fine with 4.6 version. Thanks a lot.

Regards,
Ajithlal

Ajithlal’s picture

Status: Active » Fixed

Working fine with latest dev version

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

charlie charles’s picture

Same here

4.6 version didn't work with 7.x-1.6
But dev version does work! :)

rdworianyn’s picture

I can also confirm that the dev version config files are working with Solr 4.9 for anyone else that may be using this version.