Elasticsearch: Elasticsearch 2.1.1 doesn't automatically start on Ubuntu 16.04

Created on 6 Jan 2016  路  5Comments  路  Source: elastic/elasticsearch

I have been testing 16.04 with Logstash, Kibana and ElasticSearch and so far, Logstash and Kibana (I'm using the init.d file from Kibana 4.1.1) start just fine with the init.d file at boot time.

But ElasticSearch doesn't start at boot time and it doesn't even run the file at boot. However, if I login on the system and manually start it using 'service elasticsearch start', it works just fine.

I tested the exact same scenario with 14.04 and it works just fine and starts at boot. So, there is something Ubuntu 16.04 doesn't like in the init.d file.

Download URL for Ubuntu 16.04:

Most helpful comment

This fixed it for me:

sudo systemctl enable elasticsearch.service

All 5 comments

Do the instructions in at the repository page for making it start automatically work for you? The Elasticearch deb doesn't register itself to start on boot intentionally even though that is the normal thing for debs to do because we think that behavior is creepy in a distributed system.

I was doing the update-rc.d elasticsearch defaults 95 10 that has been working forever until 16.04 that switched to systemd. The systemctl command worked perfectly.

Sorry about that.

Hi @nik9000
The link you sent is not working anymore, would you like to update it please?

This fixed it for me:

sudo systemctl enable elasticsearch.service

sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sudo /bin/systemctl start elasticsearch.service

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Praveen82 picture Praveen82  路  3Comments

clintongormley picture clintongormley  路  3Comments

matthughes picture matthughes  路  3Comments

dawi picture dawi  路  3Comments

martijnvg picture martijnvg  路  3Comments