ElasticSearch error: The Elasticsearch 6.6.0 (elasticsearch-service-x64) service terminated unexpectedly

  • KM03475346
  • 09-Jul-2019
  • 09-Oct-2019

Summary

ElasticSearch is installed on windows and does not start, the error: The Elasticsearch 6.6.0 (elasticsearch-service-x64) service terminated unexpectedly

Error

The Elasticsearch 6.6.0 (elasticsearch-service-x64) service terminated unexpectedly

Cause

Examine the Windows Event Viewer logs (System).

The error "The Elasticsearch 6.6.0 (elasticsearch-service-x64) service terminated unexpectedly" exists

Fix

The likely cause is a missing "elasticsearch" folder in the %temp% folder

To correct...

  1. Open a cmd prompt as admin
  2. Navigate to the <elastic_install_location>\bin
  3. Type: elasticsearch-service-x64.exe
  4. Hit enter. ElasticSearch will try to start
  5. Note the error that is likely to occur: ERROR: Temporary file directory [<drive>\<path>\elasticsearch] does not exist or is not accessible
  6. In the path in the error create the folder "elasticsearch"

Then start the ElasticSearch service