Ubuntu 15.04: Elasticsearch service doesn't start

11,909

This is a known issue with Elasticsearch on Ubuntu 15.04. There is a GitHub issue. The temporary fix:

As a workaround you can uncomment the paths in the /etc/default/elasticsearch file and it should work.

Share:
11,909

Related videos on Youtube

MadeOfAir
Author by

MadeOfAir

--- * * | + + | (~)

Updated on September 18, 2022

Comments

  • MadeOfAir
    MadeOfAir almost 2 years

    I followed the first part from the tutorial here to install Elasticsearch. I didn't install java because I already have that installed with other java programs running.

    sudo service elasticsearch restart
    

    Doesn't output anything.

    sudo service elasticsearch status
    

    Outputs the following:

    ● elasticsearch.service - Starts and stops a single elasticsearch instance on this system Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2015-06-06 08:33:20 EET; 1s ago Docs: http://www.elasticsearch.org Process: 17111 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.default.config=$CONF_FILE -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR -Des.default.path.conf=$CONF_DIR (code=exited, status=3) Main PID: 17111 (code=exited, status=3)

    Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: ... 4 more Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: log4j:WARN No appender... Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: log4j:WARN Please init... Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: log4j:WARN See http://... Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: {1.5.2}: Initializatio... Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: - ElasticsearchIllegal... Jun 06 08:33:20 mohammed-xubuntu elasticsearch[17111]: AccessDeniedException[... Jun 06 08:33:20 mohammed-xubuntu systemd1: elasticsearch.service: main pro...D Jun 06 08:33:20 mohammed-xubuntu systemd1: Unit elasticsearch.service ente.... Jun 06 08:33:20 mohammed-xubuntu systemd1: elasticsearch.service failed. Hint: Some lines were ellipsized, use -l to show in full.

    It says I should pass -l option somewhere to get the full output though I don't know where exactly.