Thanks for the description. I updated https://issues.apache.org/jira/browse/SOLR-9475 <https://issues.apache.org/jira/browse/SOLR-9475> for this, and my patch there now detects the guest distro, not the host. The update-rc.d error is simply because of wrong detection of distro.
I also created https://issues.apache.org/jira/browse/SOLR-9508 <https://issues.apache.org/jira/browse/SOLR-9508> to give better error msgs for missing /usr/sbin/service command -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 12. sep. 2016 kl. 22.28 skrev Kevin Risden <compuwizard...@gmail.com>: > > Jan - the issue you are hitting is Docker and /proc/version is getting the > underlying OS kernel and not what you would expect from the Docker > container. The errors for update-rc.d and service are because the docker > image you are using is trimmed down. > > Kevin Risden > > On Mon, Sep 12, 2016 at 3:19 PM, Jan Høydahl <jan....@cominvent.com> wrote: > >> I tried it on a Docker RHEL system (gidikern/rhel-oracle-jre) and the >> install failed with errors >> >> ./install_solr_service.sh: line 322: update-rc.d: command not found >> ./install_solr_service.sh: line 326: service: command not found >> ./install_solr_service.sh: line 328: service: command not found >> >> Turns out that /proc/version returns “Ubuntu” this on the system: >> Linux version 4.4.19-moby (root@3934ed318998) (gcc version 5.4.0 20160609 >> (Ubuntu 5.4.0-6ubuntu1~16.04.2) ) #1 SMP Thu Sep 1 09:44:30 UTC 2016 >> There is also a /etc/redhat-release file: >> Red Hat Enterprise Linux Server release 7.1 (Maipo) >> >> So the install of rc.d failed completely because of this. Don’t know if >> this is common on RHEL systems, perhaps we need to improve distro detection >> in installer? >> >> -- >> Jan Høydahl, search solution architect >> Cominvent AS - www.cominvent.com >> >>> 12. sep. 2016 kl. 21.31 skrev Shalin Shekhar Mangar < >> shalinman...@gmail.com>: >>> >>> I just tried this out on ubuntu (sorry I don't have access to a red hat >>> system) and it works fine. >>> >>> One thing that you have to take care of is that if you install the >> service >>> on the default 8983 port then, trying to upgrade with the same tar to a >>> different port does not work. So please ensure that you hadn't already >>> installed the service before already. >>> >>> On Tue, Sep 13, 2016 at 12:53 AM, Shalin Shekhar Mangar < >>> shalinman...@gmail.com> wrote: >>> >>>> Which version of red hat? Is lsof installed on this system? >>>> >>>> On Mon, Sep 12, 2016 at 4:30 PM, Preeti Bhat <preeti.b...@shoregrp.com> >>>> wrote: >>>> >>>>> HI All, >>>>> >>>>> I am trying to setup the solr in Redhat Linux, using the >>>>> install_solr_service.sh script of solr.6.2.0 tgz. The script runs and >>>>> starts the solr on port 8983 even when the port is specifically >> specified >>>>> as 2016. >>>>> >>>>> /root/install_solr_service.sh solr-6.2.0.tgz -i /opt -d /var/solr -u >> root >>>>> -s solr -p 2016 >>>>> >>>>> Is this correct way to setup solr in linux? Also, I have observed that >> if >>>>> I go to the /bin/solr and start with the port number its working as >>>>> expected but not as service. >>>>> >>>>> I would like to setup the SOLR in SOLRCloud mode with external >> zookeepers. >>>>> >>>>> Could someone please advise on this? >>>>> >>>>> >>>>> >>>>> NOTICE TO RECIPIENTS: This communication may contain confidential >> and/or >>>>> privileged information. If you are not the intended recipient (or have >>>>> received this communication in error) please notify the sender and >>>>> it-supp...@shoregrp.com immediately, and destroy this communication. >> Any >>>>> unauthorized copying, disclosure or distribution of the material in >> this >>>>> communication is strictly forbidden. Any views or opinions presented in >>>>> this email are solely those of the author and do not necessarily >> represent >>>>> those of the company. Finally, the recipient should check this email >> and >>>>> any attachments for the presence of viruses. The company accepts no >>>>> liability for any damage caused by any virus transmitted by this email. >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Shalin Shekhar Mangar. >>>> >>> >>> >>> >>> -- >>> Regards, >>> Shalin Shekhar Mangar. >> >>