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

solr.cmd wrongly assumes Jetty will always listen on 0.0.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.5
    • 5.5.1, 6.0.1, 6.1, 7.0
    • Server
    • None
    • Windows

    Description

      The Windows solr.cmd script makes the (incorrect) assumption that Solr will always be listening on 0.0.0.0 (all interfaces). When you change the interface
      address, say to 127.0.0.1, then the status and stop commands will fail.

      This patch adds a property in solr.in.cmd, which is passed to SOLR_OPTS as -Djetty.host, and replaces the instances of 0.0.0.0 in solr.cmd.

      The patch includes some changes in the netstat logic used in solr.cmd to find the correct Solr process(es).

      Tested on Solr 5.5 on Windows 7 and 10.

      Note: Untested on Solr 6. Currently using Solr 5.5

      Attachments

        1. SOLR-9045.patch
          7 kB
          Bram Van Dam
        2. SOLR-9046.patch
          10 kB
          Uwe Schindler
        3. SOLR-9046.patch
          9 kB
          Uwe Schindler
        4. SOLR-9046.patch
          9 kB
          Uwe Schindler
        5. SOLR-9046.patch
          7 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            bvd Bram Van Dam
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: