@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
/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
Maintainer: Elasticsearch Team <email@example.com>
Installed-Size: 31.0 MB
Depends: libc6, adduser
Download-Size: 27.0 MB
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.
+ 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
+ Per operation consistency
- Single document level operations are atomic, consistent, isolated and
+ Open Source under the Apache License, version 2 ("ALv2").
and here is the systemd unit file for the service.
Description=Starts and stops a single elasticsearch instance on this system
# See MAX_OPEN_FILES in sysconfig
# See MAX_LOCKED_MEMORY in sysconfig, use "infinity" when MAX_LOCKED_MEMORY=unlimited and using bootstrap.mlockall: true
# Shutdown delay in seconds, before process is tried to be killed with KILL (if configured)
Can you check and verify whether
elasticsearch=1.5.2 is installed properly and also check the contents of the systemd unit file?