Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22778

(eZ Find): Unable to run solr with multicore using solr. 4.7.x

    Details

      Description

      If I try to run

      java -Dsolr.solr.home=solr.multicore -jar start.jar
      

      I get the following error

      3505 [coreLoadExecutor-4-thread-1][2014-04-30 02:59:04.695] ERROR org.apache.solr.core.CoreContainer  – Failed to load file /var/www/html/ezpublish5/ezpublish_testsystem/.run/extension/ezfind/java/solr.multicore/collection1/solrconfig.xml
      3508 [coreLoadExecutor-4-thread-1][2014-04-30 02:59:04.698] ERROR org.apache.solr.core.CoreContainer  – Unable to create core: collection1
      org.apache.solr.common.SolrException: Could not load config file /var/www/html/ezpublish5/ezpublish_testsystem/.run/extension/ezfind/java/solr.multicore/collection1/solrconfig.xml
      	at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:530)
      	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:597)
      	at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:258)
      	at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:250)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	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:744)
      Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/var/www/html/ezpublish5/ezpublish_testsystem/.run/extension/ezfind/java/solr.multicore/collection1/conf'
      	at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:342)
      	at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:288)
      	at org.apache.solr.core.Config.<init>(Config.java:116)
      	at org.apache.solr.core.Config.<init>(Config.java:86)
      	at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:140)
      	at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:527)
      	... 9 more
      3519 [coreLoadExecutor-4-thread-1][2014-04-30 02:59:04.709] 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:989)
      	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:606)
      	at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:258)
      	at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:250)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	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:744)
      Caused by: org.apache.solr.common.SolrException: Could not load config file /var/www/html/ezpublish5/ezpublish_testsystem/.run/extension/ezfind/java/solr.multicore/collection1/solrconfig.xml
      	at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:530)
      	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:597)
      	... 8 more
      Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/var/www/html/ezpublish5/ezpublish_testsystem/.run/extension/ezfind/java/solr.multicore/collection1/conf'
      	at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:342)
      	at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:288)
      	at org.apache.solr.core.Config.<init>(Config.java:116)
      	at org.apache.solr.core.Config.<init>(Config.java:86)
      	at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:140)
      	at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:527)
      	... 9 more
      

      On the other hand if I try to run solr.sh normally when I add a new object I get the following error in the reddirect

      Invalid response from Solr: <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /solr/eng-GB/update. Reason:
      <pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
      <br/>                                                
       
      </body>
      </html>
      

        Issue Links

          Activity

          Hide
          André Rømcke added a comment - - edited

          @QA: Updated technical doc on this in the extension can be found here:
          https://github.com/ezsystems/ezfind/commit/03b17e058537a00d5396579cc52498d19182ccae

          I send the related issue to Doc, please provide feedback to Doc there on what is needed to be updated in online doc there.

          Show
          André Rømcke added a comment - - edited @QA: Updated technical doc on this in the extension can be found here: https://github.com/ezsystems/ezfind/commit/03b17e058537a00d5396579cc52498d19182ccae I send the related issue to Doc, please provide feedback to Doc there on what is needed to be updated in online doc there.
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h