ES version: elasticsearch-5.5.0 Java version: 1.8.0_91 OS: Windows-7(64 bit) Description: Could not start elasticsearch-service-x64 service, showing Failed starting 'elasticsearch-service-x64' service message in console when I run elasticsearch-service.bat start
> Option Description > ------ ----------- > -E <KeyValuePair> Configure a setting > -V, --version Prints elasticsearch version information and exits > -d, --daemonize Starts Elasticsearch in the background > -h, --help show help > -p, --pidfile <Path> Creates a pid file in the specified path on start > -q, --quiet Turns off standard ouput/error streams logging in console > -s, --silent show minimal output > -v, --verbose show verbose output > ERROR: Positional arguments not allowed, found [start]
-E Configure a setting -V, --version Prints elasticsearch version information and exits -d, --daemonize Starts Elasticsearch in the background -h, --help show help -p, --pidfile Creates a pid file in the specified path on start -q, --quiet Turns off standard ouput/error streams logging in console -s, --silent show minimal output -v, --verbose show verbose output ERROR: Positional arguments not allowed, found [start] [/quote]
are exactly the error message that you would see if you executed `bin\elasticsearch.bat start`. The service does not pass `start` to the main method of Elasticsearch. Maybe you changed the `Startup` tab for the service? Can you execute `bin\elasticsearch-service.bat manager` and show the contents of the `Arguments` on the `Startup` tab? It should be empty, but maybe it contains `start` for you? I can reproduce your problem *exactly* if I put `start` there.
Is there anyway I can remove that start argument from the command line, it is coming by default. We do extracting and running the elastic from build.gradle so the service is not getting started until I invoke manager tool and remove that start argument
As per my observation 'Start' argument is coming only when I install Elasticsearch-5.5.1 in a machine for first time, when I remove 'start', delete the service and install in the same machine issue is not reproducible. Try unzipping and creating the elasticsearch service in a fresh VM you may find it.
Can you please be more explicit about the steps to reproduce? I tried with the Elasticsearch 5.5.1 zip download on a fresh Windows VM. Here are the steps I took:
1. Download Elasticsearch 5.5.1 from https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.1.zip 2. Unzip the zip archive `elasticsearch-5.5.1.zip` 3. Run `.\elasticsearch-5.5.1\bin\elasticsearch-service.bat install` 4. Run `.\elasticsearch-5.5.1\bin\elasticsearch-service.bat manager` 5. Inspect the `Startup` tab; it was correct 6. Run `.\elasticsearch-5.5.1\bin\elasticsearch-service.bat start`; Elasticsearch started fine
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation project and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext