You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Jun He (JIRA)" <ji...@apache.org> on 2017/10/17 05:50:00 UTC

[jira] [Updated] (BIGTOP-2906) Failed to start solr-server service using bigtop-deploy

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

Jun He updated BIGTOP-2906:
---------------------------
    Description: 
In Solr smoke test the solr-server service is always failed to start with following logs:
================================================
Notice: /Stage[main]/Solr::Server/Package[solr-server]/ensure: ensure changed 'purged' to 'latest'
Notice: /Stage[main]/Solr::Server/File[/etc/default/solr]/content: content changed '{md5}5c4ff9c29a1c173ed1b82efac0cc63d8' to '{md5}852d2cc2b65451471017f4a448200db0'
Notice: /Stage[main]/Solr::Server/Exec[solr init]/returns: Error: failed to initialize Solr
Error: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]
Error: /Stage[main]/Solr::Server/Exec[solr init]/returns: change from notrun to 0 failed: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]
Notice: /Stage[main]/Solr::Server/Exec[solr init]/returns: Error: failed to initialize Solr
.......
Notice: /Stage[main]/Solr::Server/Service[solr-server]: Dependency Exec[solr init] has failures: true
Warning: /Stage[main]/Solr::Server/Service[solr-server]: Skipping because of failed dependencies
================================================

'/usr/bin/solrctl init' returned 1 because solr is configured to run in cloud mode which requires zookeeper service. But at that point zookeeper service is not up. So solr-server is failed to start which leads to later smoke test failure.

Solution:
Add zookeeper service to solr-server's dependency list

  was:
In Solr smoke test the solr-server service is always failed to start with following logs:
================================================
Notice: /Stage[main]/Solr::Server/Package[solr-server]/ensure: ensure changed 'purged' to 'latest'
Notice: /Stage[main]/Solr::Server/File[/etc/default/solr]/content: content changed '{md5}5c4ff9c29a1c173ed1b82efac0cc63d8' to '{md5}852d2cc2b65451471017f4a448200db0'
Notice: /Stage[main]/Solr::Server/Exec[solr init]/returns: Error: failed to initialize Solr
Error: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]
Error: /Stage[main]/Solr::Server/Exec[solr init]/returns: change from notrun to 0 failed: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]
Notice: /Stage[main]/Solr::Server/Exec[solr init]/returns: Error: failed to initialize Solr
================================================

'/usr/bin/solrctl init' returned 1 because solr is configured to run in cloud mode which requires zookeeper service. But at that point zookeeper service is not up. So solr-server is failed to start which leads to later smoke test failure.

Solution:
Add zookeeper service to solr-server's dependency list


> Failed to start solr-server service using bigtop-deploy
> -------------------------------------------------------
>
>                 Key: BIGTOP-2906
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-2906
>             Project: Bigtop
>          Issue Type: Bug
>          Components: solr, tests
>    Affects Versions: 1.2.0
>            Reporter: Jun He
>            Assignee: Jun He
>
> In Solr smoke test the solr-server service is always failed to start with following logs:
> ================================================
> Notice: /Stage[main]/Solr::Server/Package[solr-server]/ensure: ensure changed 'purged' to 'latest'
> Notice: /Stage[main]/Solr::Server/File[/etc/default/solr]/content: content changed '{md5}5c4ff9c29a1c173ed1b82efac0cc63d8' to '{md5}852d2cc2b65451471017f4a448200db0'
> Notice: /Stage[main]/Solr::Server/Exec[solr init]/returns: Error: failed to initialize Solr
> Error: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]
> Error: /Stage[main]/Solr::Server/Exec[solr init]/returns: change from notrun to 0 failed: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]
> Notice: /Stage[main]/Solr::Server/Exec[solr init]/returns: Error: failed to initialize Solr
> .......
> Notice: /Stage[main]/Solr::Server/Service[solr-server]: Dependency Exec[solr init] has failures: true
> Warning: /Stage[main]/Solr::Server/Service[solr-server]: Skipping because of failed dependencies
> ================================================
> '/usr/bin/solrctl init' returned 1 because solr is configured to run in cloud mode which requires zookeeper service. But at that point zookeeper service is not up. So solr-server is failed to start which leads to later smoke test failure.
> Solution:
> Add zookeeper service to solr-server's dependency list



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)