"Permission Denied" starting Elasticsearch

I am trying to start Elasticsearch and I'm getting an error: /usr/share/elasticsearch/bin/elasticsearch-env: line 70: /etc/default/elasticsearch: Permission denied

How did you install Elasticsearch? What version, what OS?

Installed via apt-get on Ubuntu 16.04

Installed the latest version of 6.x

How are you starting Elasticsearch? Via the service (systemctl start elasticsearch) or by running the startup script directly? If the former this is unexpected. If the latter, this is expected, the packages are meant to be run via the service only.

I was running the init.d script to start the application.

With permissions (e.g., sudo service elasticsearch start)?

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