[ 
https://issues.apache.org/jira/browse/SOLR-7283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

javi updated SOLR-7283:
-----------------------
    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:

{quote}
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
{quote}

  was:
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


> solr.cmd might fail if PATH contains cygwin/git 
> ------------------------------------------------
>
>                 Key: SOLR-7283
>                 URL: https://issues.apache.org/jira/browse/SOLR-7283
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.0
>         Environment: windows
>            Reporter: javi
>            Priority: Minor
>
> 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:
> {quote}
> 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
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to