Hi,
This is what I got after sending the command:
● elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-11-18 11:30:33 EST; 1min 11s ago
Docs: http://www.elastic.co
Main PID: 2912 (code=exited, status=1/FAILURE)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at com.fasterxml.jackson.core.json.JsonReadContext.setCurrentName(JsonReadContext.java:198)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:372)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at org.elasticsearch.common.xcontent.json.JsonXContentParser.nextToken(JsonXContentParser.java:52)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at org.elasticsearch.common.settings.Settings.fromXContent(Settings.java:675)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at org.elasticsearch.common.settings.Settings.fromXContent(Settings.java:650)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at org.elasticsearch.common.settings.Settings.access$500(Settings.java:82)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1135)
Nov 18 11:30:33 smc-B325 elasticsearch[2912]: … 8 more
Nov 18 11:30:33 smc-B325 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Nov 18 11:30:33 smc-B325 systemd[1]: elasticsearch.service: Failed with result ‘exit-code’.
~
I looked it up and found 1 possible cause that “he data directory of Elasticsearch needs to be writable for the elasticsearch user.” . I am going to find out how to change the permission on a folder on ubuntu and try that. Unless you think, there is some other problem.
This is what I got:
smc@smc-B325:~ sed -e 's/[#;].*//;/^\s*/d’ “$@” /etc/elasticsearch/*
sed: can’t read /etc/elasticsearch/*: Permission denied
Thank you.