Hi,

I just downloaded the latest SOLR Release (9.7.0) and was not able to run it on a Windows machine.
I got the following output:

PS C:\SOLR\solr-9.7.0\bin> .\solr.cmd start
Java 21 detected. Enabled workaround for SOLR-16463
...
Failed to parse command-line arguments due to: Unrecognized option: --max-wait-secs

usage: bin/solr status [-maxWaitSecs <SECS>] [--solr-url <URL>]

List of options:
 -maxWaitSecs <SECS>   Wait up to the specified number of seconds to see Solr running.     --solr-url <URL>   Address of the Solr Web application, defaults to: http://localhost:8983.

...
ERROR: Solr did not start or was not reachable. Check the logs for errors.

As a fix I modified the start script (solr.cmd, line 1463)
and replace the parameter "--max-wait-secs" to "-maxWaitSecs".

The problem is probably related to modifications in
https://issues.apache.org/jira/browse/SOLR-16824
Adopt Linux Command line tool pattern of -- for multi character commands.

It would be helpful to fix this isssue in the next 9.7.x release.

Best regards

Robert


Reply via email to