Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10088

Installer script does not put zoo.cfg in SOLR_HOME

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: scripts and tools
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:

      Description

      Solr's install_solr_service.sh script forgets to copy zoo.cfg into /var/solr/data/, so when the user then tries to start in embedded ZK mode they get an exception when creating a collection.

      Reproduce

      root> ./install_solr_service.sh solr-6.4.0.tgz -n
      root> su - solr
      solr> export SOLR_INCLUDE="/etc/default/solr.in.sh"
      solr> /opt/solr/bin/solr start -c
      solr> /opt/solr/bin/solr create -c foo
      RROR: Expected JSON response from server but received: <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /solr/admin/info/system. Reason:
      <pre>    Not Found</pre></p>
      </body>
      </html>
      
      Typically, this indicates a problem with the Solr server; check the Solr server logs for more information.
      
      ----solr.log contains---
      2017-02-02 09:55:03.245 INFO  (main) [   ] o.a.s.c.SolrZkServerProps Reading configuration from: /var/solr/data/zoo.cfg
      2017-02-02 09:55:03.247 ERROR (main) [   ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs
      2017-02-02 09:55:03.267 ERROR (main) [   ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException: org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /var/solr/data/zoo.cfg
      

        Issue Links

          Activity

          Hide
          janhoy Jan Høydahl added a comment -

          Simple patch, tested in Docker (Ubuntu).

          Show
          janhoy Jan Høydahl added a comment - Simple patch, tested in Docker (Ubuntu).
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 34546ac358d04864fd239f19cadc92a414b3bd7d in lucene-solr's branch refs/heads/branch_6x from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=34546ac ]

          SOLR-10088: Installer script does not put zoo.cfg in SOLR_HOME

          (cherry picked from commit 59433bb)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 34546ac358d04864fd239f19cadc92a414b3bd7d in lucene-solr's branch refs/heads/branch_6x from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=34546ac ] SOLR-10088 : Installer script does not put zoo.cfg in SOLR_HOME (cherry picked from commit 59433bb)
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 59433bb460c2e55756cb3cea2aecd264e48e3b3a in lucene-solr's branch refs/heads/master from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=59433bb ]

          SOLR-10088: Installer script does not put zoo.cfg in SOLR_HOME

          Show
          jira-bot ASF subversion and git services added a comment - Commit 59433bb460c2e55756cb3cea2aecd264e48e3b3a in lucene-solr's branch refs/heads/master from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=59433bb ] SOLR-10088 : Installer script does not put zoo.cfg in SOLR_HOME

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              janhoy Jan Høydahl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development