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

Solr start script failed when last 2 digits of solr port is less than 24 and run by non-root user

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.10.2
    • Fix Version/s: 4.10.3, 5.0
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      Due to following two lines of code, it would try to use port number less than 1024 which are privileged ports

      -Dcom.sun.management.jmxremote.port=10${SOLR_PORT: -2} \
      -Dcom.sun.management.jmxremote.rmi.port=10${SOLR_PORT: -2}"
      

      Maybe the prefix should be changed to 20. (Too high a number may risk colliding with default port for embedded ZooKeeper.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thelabdude Timothy Potter
                Reporter:
                Sit Manovit Chaiyasit (Sit) Manovit
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: