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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.10.2
    • 4.10.3, 5.0
    • scripts and tools
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: