Help With Error on Starting Elasticsearch

(Malware Utkonos) #1

I am able to start elasticsearch just fine using the elasticsearch command from a shell. However, when attempting to start es using brew services start elasticsearch it returns the following error:

Could not find domain for 
Error: Failure while executing: /bin/launchctl enable gui/502/homebrew.mxcl.elasticsearch

After running this command, if I try to list the running services, es is listed as started. However, the service is not actually started. There are no log entries from it starting nor is there a listener on the es port.

elasticsearch started wadmin /Users/redacted/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist

If I then try to stop the service using brew services stop elasticsearch, I get another error:

Error: Service `elasticsearch` is not started.

Any help with this error would be greatly appreciated. This is using the most recent package for es, 6.1.1 installed using brew install elasticsearch. I have not added anything else.