Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

permission denied for elasticsearch #424

Closed
karthik-KSK opened this issue Feb 13, 2018 · 3 comments
Closed

permission denied for elasticsearch #424

karthik-KSK opened this issue Feb 13, 2018 · 3 comments

Comments

@karthik-KSK
Copy link

karthikksk@E460:/usr$ cd ..
karthikksk@E460:/$ cd usr/share/elasticsearch
karthikksk@E460:/usr/share/elasticsearch$ bin/elasticsearch
bin/elasticsearch-env: line 70: /etc/default/elasticsearch: Permission denied
karthikksk@E460:/usr/share/elasticsearch$ bin/elasticsearch-plugin install x-pack
bin/elasticsearch-env: line 70: /etc/default/elasticsearch: Permission denied

@andyshinn
Copy link

It looks like this may be an issue with Elasticsearch 6.2. In 6.1 the elasticsearch-env file has:

if [ -f /etc/default/elasticsearch ]; then source /etc/default/elasticsearch; fi

But in 6.2 it is just:

source /etc/default/elasticsearch

The /etc/default/elasticsearch file doesn't exist because we remove it at use a custom named one instead.

@andyshinn
Copy link

I think this is now fixed in 6.2.2 by #431.

@Crazybus
Copy link
Contributor

It is indeed. Thanks @andyshinn!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants