You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "javi (JIRA)" <ji...@apache.org> on 2015/03/22 00:21:09 UTC
[jira] [Created] (SOLR-7283) solr.cmd might fail if PATH contains
cygwin/git
javi created SOLR-7283:
--------------------------
Summary: 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:
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org