You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "jmwap (JIRA)" <ji...@apache.org> on 2015/03/22 00:32:09 UTC

[jira] [Commented] (SOLR-7283) solr.cmd might fail if PATH contains cygwin/git

    [ https://issues.apache.org/jira/browse/SOLR-7283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14373095#comment-14373095 ] 

jmwap commented on SOLR-7283:
-----------------------------

I fixed in my solr.cmd with this:

    %s/\<find\>/%WINDIR%\\system32\\find/gc

Now all works, no erros on start, I get an error on stop, but not sure what is due to:

{quote}
C:\Users\user\solr-5.0.0\bin>solr.cmd stop -p 8983
Missing operand.
Stopping Solr process 6920 running on port 8983
timeout: invalid time interval '/T'
Try 'timeout --help' for more information.
{quote}


> 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: jmwap
>            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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org