[ 
https://issues.apache.org/jira/browse/SOLR-10088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Høydahl resolved SOLR-10088.
--------------------------------
    Resolution: Fixed

> Installer script does not put zoo.cfg in SOLR_HOME
> --------------------------------------------------
>
>                 Key: SOLR-10088
>                 URL: https://issues.apache.org/jira/browse/SOLR-10088
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>              Labels: install, zookeeper
>             Fix For: 6.5, master (7.0)
>
>         Attachments: SOLR-10088.patch
>
>
> 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.
> h3. Reproduce
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to