Page 1 of 1

elasticsearch restart hung?

Posted: Mon Feb 03, 2020 1:09 pm
by kmartin
I'm following single instance deployment -
https://assets.nagios.com/downloads/nag ... oyment.pdf

Edited elasticsearch.yml
index.number_of_replicas:0

Restart elasticsearch
systemctl restart elasticsearch.service

GUI displays
Waiting for Database Startup

Has been like this for over 20 minutes now. I also tried to restart the entire VM from command line with same results. The box appears to be stuck at waiting for database to startup. Is it normal to take this long? Any advice?

Thanks,
Ken

Re: elasticsearch restart hung?

Posted: Mon Feb 03, 2020 2:41 pm
by kmartin
OK, so I figured out my own problem.

I did not have a space between the colon and the zero in the config file. It should look like this -
index.number_of_replicas: 0

Once I put the space back in there and restarted, it came up fine.

Problem solved.

Re: elasticsearch restart hung?

Posted: Tue Feb 04, 2020 5:13 pm
by Box293
Great, thank you for getting back to us with your solution.