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 https://www.elastic.co/guide/en/fleet/8.7/fleet-troubleshooting.html

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