Search code examples
elasticsearchservicestartupubuntu-16.04

Elasticsearch service does not run at statup on Ubuntu 16.04


I installed elasticsearch on Ubuntu 16.04.

When I enter sudo service elasticsearch start, everything works.

But the service is not running on startup. Before starting it manually, sudo service elasticsearch status gives me:

elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vend
   Active: inactive (dead)
     Docs: http://www.elastic.co

I tried to add it to startup with: sudo update-rc.d elasticsearch defaults and sudo update-rc.d elasticsearch enable, but this changes nothing.

What could be the problem, and how can I debug this?


Solution

  • Did not find the error. Just reinstalled it with dpkg. Works, and the data and config hasn`t been overwritten.