Error creating UDS listener: listen unix /opt/datadog/apm/inject/run/apm.socket
Context
- JElastic Cloud 8.4.1 (Infomaniak)
- Datadog agent Docker image version: 7.40.0
This occurred while configuring an agent to collect log information from other nodes in the environment.
Analysis
The Trace agent attempts to create a socket at /opt/datadog/apm/inject/run/apm.socket, but the path does not exist.
Running:
1
ls -ld /opt/datadog/apm/inject/run/
shows that the directory is missing.
Solution
I still don’t know why this directory was absent in this environment.
To fix the issue:
1
mkdir -p /opt/datadog/apm/inject/run/
Then restart the agent so it recreates the socket without error:
1
sudo systemctl restart datadog-agent
This post is licensed under CC BY 4.0 by the author.