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

Add install script support for CentOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.2
    • 6.3, 7.0
    • None
    • None
    • Centos 7

    Description

      [root@ns521582 tmp]# sudo ./install_solr_service.sh solr-6.2.0.tgz

      id: solr: no such user
      Creating new user: solr
      adduser: group '--disabled-password' does not exist

      Extracting solr-6.2.0.tgz to /opt

      Installing symlink /opt/solr -> /opt/solr-6.2.0 ...

      Installing /etc/init.d/solr script ...

      /etc/default/solr.in.sh already exist. Skipping install ...

      /var/solr/data/solr.xml already exists. Skipping install ...

      /var/solr/log4j.properties already exists. Skipping install ...

      chown: invalid spec: ‘solr:’
      ./install_solr_service.sh: line 322: update-rc.d: command not found
      id: solr: no such user
      User solr not found! Please create the solr user before running this script.
      id: solr: no such user
      User solr not found! Please create the solr user before running this script.
      Service solr installed.

      Reference - http://stackoverflow.com/questions/39320647/unable-to-create-user-when-installing-solr-6-2-0-on-centos-7

      Attachments

        1. SOLR-9475.patch
          3 kB
          Jan Høydahl
        2. install_solr_service.sh
          11 kB
          Jan Høydahl
        3. SOLR-9475_osrelease_fix.patch
          0.7 kB
          Jan Høydahl
        4. SOLR-9475_osrelease_fix.patch
          3 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              xcoder Nitin Surana
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: