Elasticsearch 1.5 not starting while installing koa3 on UBUNTU 20.4

Elasticsearch 1.5 not starting while installing koa3 on UBUNTU 20.4

Error log:

TASK [elasticsearch : Ensure elasticsearch is enabled and started] *************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to start service elasticsearch: Job for elasticsearch.service failed because the control process exited                      with error code.\nSee \"systemctl status elasticsearch.service\" and \"journalctl -xe\" for details.\n"}

May 25 08:38:35 cloud27420 systemd[1]: Starting Elasticsearch...
May 25 08:38:35 cloud27420 systemd[128286]: elasticsearch.service: Failed to execute command: No such file or directory
May 25 08:38:35 cloud27420 systemd[128286]: elasticsearch.service: Failed at step EXEC spawning /usr/share/elasticsearch/bin/systemd-entrypoint: No such file or directory
May 25 08:38:35 cloud27420 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=203/EXEC
May 25 08:38:35 cloud27420 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
May 25 08:38:35 cloud27420 systemd[1]: Failed to start Elasticsearch.

Is Elasticsearch 1.5.2 is not supported on UBUNTU 20.4? How to resolve this? Please help.

Kiran

1 Like

@kiranoza, it looks like the elasticsearch 1.5.2 package wasn’t installed properly in one of the previous tasks. I checked an Open edX instance VM running Koa.3 on Ubuntu 20.04 and can see that elasticsearch 1.5.2 is installed properly, and the service is running without any issues. There is no file named systemd-entrypoint under /usr/share/elasticsearch/bin and the systemd startup command doesn’t invoke that script at all.

Here is the confirmation that version 1.5.2 is indeed installed.

$ apt show elasticsearch
Package: elasticsearch
Version: 1.5.2
Priority: optional
Section: web
Maintainer: Elasticsearch Team <info@elasticsearch.com>
Installed-Size: 31.0 MB
Depends: libc6, adduser
Homepage: http://www.elasticsearch.org/
Download-Size: 27.0 MB
APT-Manual-Installed: yes
APT-Sources: http://packages.elastic.co/elasticsearch/1.5/debian stable/main amd64 Packages
Description: Open Source, Distributed, RESTful Search Engine
 Elasticsearch is a distributed RESTful search engine built for the cloud.
 .
 Features include:
 .
 + Distributed and Highly Available Search Engine.
  - Each index is fully sharded with a configurable number of shards.
  - Each shard can have one or more replicas.
  - Read / Search operations performed on either one of the replica shard.
 + Multi Tenant with Multi Types.
  - Support for more than one index.
  - Support for more than one type per index.
  - Index level configuration (number of shards, index storage, ...).
 + Various set of APIs
  - HTTP RESTful API
  - Native Java API.
  - All APIs perform automatic node operation rerouting.
 + Document oriented
  - No need for upfront schema definition.
  - Schema can be defined per type for customization of the indexing process.
 + Reliable, Asynchronous Write Behind for long term persistency.
 + (Near) Real Time Search.
 + Built on top of Lucene
  - Each shard is a fully functional Lucene index
  - All the power of Lucene easily exposed through simple
    configuration/plugins.
 + Per operation consistency
  - Single document level operations are atomic, consistent, isolated and
    durable.
 + Open Source under the Apache License, version 2 ("ALv2").

and here is the systemd unit file for the service.

[Unit]
Description=Starts and stops a single elasticsearch instance on this system
Documentation=http://www.elasticsearch.org
Wants=network-online.target
After=network-online.target

[Service]
EnvironmentFile=/etc/default/elasticsearch
User=elasticsearch
Group=elasticsearch
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
# See MAX_OPEN_FILES in sysconfig
LimitNOFILE=65535
# See MAX_LOCKED_MEMORY in sysconfig, use "infinity" when MAX_LOCKED_MEMORY=unlimited and using bootstrap.mlockall: true
#LimitMEMLOCK=infinity
# Shutdown delay in seconds, before process is tried to be killed with KILL (if configured)
TimeoutStopSec=20

[Install]
WantedBy=multi-user.target

Can you check and verify whether elasticsearch=1.5.2 is installed properly and also check the contents of the systemd unit file?

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