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

solr.cmd might fail if PATH contains cygwin/git

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.0
    • None
    • scripts and tools
    • None
    • windows

    Description

      If you have git or cygwin before %windir%\system32 in PATH, the ```find``` invoked in the cmd happens to be cygwin's, and it does not work like window's so solr.cmd fail.

      For me, start works (solr starts, but throwing up errors) but stop always fails:

      C:\Users\user\solr-5.0.0\bin>java -version
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b132)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

      C:\Users\user\solr-5.0.0\bin>solr.cmd start -p 8983
      Missing operand.
      find: :8983 : No such file or directory
      find: TCP : No such file or directory
      Backing up C:\Users\user\solr-5.0.0\server\logs\solr.log
      1 file(s) moved.

      Starting Solr on port 8983 from C:\Users\user\solr-5.0.0\server

      Direct your Web browser to http://localhost:8983/solr to visit the Solr Admin UI

      C:\Users\user\solr-5.0.0\bin>solr.cmd stop -p 8983
      Missing operand.
      find: TCP : No such file or directory
      find: :8983 : No such file or directory
      No Solr found running on port 8983

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmwap jmwap
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: