Can't install elastic as a windows service

Mahdieh_Hosseini
Mon, 18 May 2020 14:47:02 +0000
Elasticsearch

I'm trying to install ElasticSearch 7.7.0 on my windows server 2016 64bit.
First I downloaded the zip version, running elasticsearch.bat from CMD, everything is ok. Then I create a service using this instruction. It creates the service, but when I try to start the service, it stops immediately and I get this error:

Commons Daemon procrun stderr initialized
ERROR: the system property [es.path.conf] must be set

I set ES_PATH_CONF and ES_HOME environment variables, deleted the service, and created it again, still gives the same error.

Next, I tried the .msi version, installed it with the default configuration, it goes well and creates the service, but can't finish the job and shows failure. This happened two times. I looked into the log file, it's too long to put here, but the last lines are like this:

MSI (c) (C8:08) [18:51:37:870]: RunEngine wait timed out
Installer is no longer responding.

5 posts - 3 participants