Service is getting stopped automatically

Hi Team

Need help on the below topic.

I have elasticsearch in my environment. It was running fine but suddenly elasticsearch service "Elasticsearch 2.3.2 (elasticsearch-service-x64)" got stopped. Now i am trying to restart its starting but it is getting stopped automatically without any error. Below are the steps which i have already tried:

  1. Set the JAVA_HOME path in system variable with latest java installed.
  2. Tried to start the process manually but no luck.
  3. In elasticsearch-service-x64-stderr.2017-11-08.log file i saw the error "Exception in thread "main" tion: path.home is not configured" --> not sure what this means.
  4. I have tried to start the process with service.bat start command -> this also executed successfully.
  5. Sometimes in elasticsearch-service-x64-stderr.2017-11-08.log we have also seen "Exception in thread "main" uchFileException: D:\elasticsearch-2.3.2\elasticsearch-2.3.2\plugins\elasticsearch-deletebyquery-master\plugin-descriptor.properties"

Please let me know if you have any suggestion on this

hi @Sandeep.K in system environment variable where u changed this JAVA_HOME and path of that java where that install that is C:\program file\java\jdk..... like this
if you change in system environment variable it should generate error so kindly check the system environment variable in this you have to give the path and set the variable in admin side its first box of environment variable screen is following here you have to change only in red box.
then restart the whole cluster or ELK stack and start the elasticsearch as a service.
Untitled
try it if any query is their ask.

Hi Krunal

Thanks for responding.

i have done the changes. But still the issue is not fixed. Below are snapshot FYR. Let me know if i have to do something else.

image

Thanks

@Sandeep.K
when first time you change in environment variable what path u gave C:\Program Files\Java\jre1.8.0_151 or C:\Program Files\Java\jdk1.8.0_151

we dont use jre in path we have to use jdk thats what i was asked which path you using jdk or jre....
as you mention in your screen shot you give the path of jre you change the path in last you have to give jdk1.8.0_151

Following is you have to change in your environment variable:
Variable = JAVA_HOME
Path = C:\Program Files\Java\jdk1.8.0_151

Hi Krunal

I have done as you said. In the snap you will see that i have JAVA_HOME as system variable as well because without this Kibana was not working. Please suggest.

image

Thanks

hi @Sandeep.K
You have to change in system variable also, you have to remove the JAVA_HOME and its path from the system variable as following screen shot:
image
I dont know that you change in system variable also because i phase the same type problem and i resolve like this so,
Do one thing You remove this java from system variable and restart ELK hope its work.

Hi Krunal

Thanks for the response.

if i remove JAVA_HOME from System Variable then Kibana is not working and also it needs jre not jdk.

Please suggest.

Thanks
Sandeep

can you try this? can you change the same in both jdk path in admin and system variable like following:
image
In this picture see it's old version is mention you mention your latest version 1.8.0.....like so change in both then restasrt service and see its working or not coz mine is working perfectly when i was doing like this.

Hi Krunal

As suggested i have done the changes. it is not working for me. Please find the image below FYR.

image

After doing this it throwing me this error

image

Please suggest.

With this not neither my elasticsearch is running nor kibana.

Thanks

Hi Krunal

I have found out the issue.

It was created by one plugin called "elasticsearch-deletebyquery-master" which i removed. Now my all the services are up.

Thanks for the help and guidance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.