Var/run/elastic-agent.sock: connect: no such file or directory

The installation of the elastic agent is not successful, and the following error is displayed when executing the elastic-agent status query. What is the solution?

% sudo /Library/Elastic/Agent/elastic-agent status
Error: failed to communicate with Elastic Agent daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix /var/run/elastic-agent.sock: connect: no such file or directory"
For help, please see our troubleshooting guide at

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