Error while dialing dial unix /var/run/elastic-agent.sock

I got same errors like https://discuss.elastic.co/t/var-run-elastic-agent-sock-connect-no-such-file-or-directory/335817/2?u=netteans

mac@mybookpro Elastic % sudo /Library/Elastic/Agent/elastic-agent status
Password:
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.8/fleet-troubleshooting.html
mac@mybookpro Elastic %

Any idea can help?

Parts of logs here:

{"log.level":"error","@timestamp":"2023-09-04T18:24:57.349+0800","log.logger":"component.runtime.endpoint-default.service_runtime","log.origin":{"file.name":"runtime/service_command.go","file.line":69},"message":"2023-09-04 10:24:57: info: MainPosix.cpp:361 Verifying existing installation","context":"command output","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-09-04T18:24:57.349+0800","log.logger":"component.runtime.endpoint-default.service_runtime","log.origin":{"file.name":"runtime/service_command.go","file.line":69},"message":"2023-09-04 10:24:57: info: InstallLib.cpp:608 Running [/Library/Elastic/Endpoint/elastic-endpoint] [version --log stdout]","context":"command output","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-09-04T18:24:57.653+0800","log.logger":"component.runtime.endpoint-default.service_runtime","log.origin":{"file.name":"runtime/service_command.go","file.line":69},"message":"2023-09-04 10:24:57: info: InstallLib.cpp:646 Installed endpoint is expected version (version: 8.8.2, compiled: Tue Jun 20 15:00:00 2023, branch: 8.8, commit: c7377b81bb7fe4c4eedfc4fba3a6830ef61f55e2)","context":"command output","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-09-04T18:25:53.446+0800","log.logger":"component.runtime.endpoint-default.service_runtime","log.origin":{"file.name":"runtime/conn_info_server.go","file.line":45},"message":"failed accept conn info connection: accept tcp 127.0.0.1:6788: use of closed network connection","ecs.version":"1.6.0"}

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