There are a number of issues that can cause the following error when you try starting your Datadog Agent:
Starting Datadog Agent (using supervisord):Error: Cannot open an HTTP server: socket.error reported errno.EACCES (13)
At first glance, that might appear to indicate that the Agent is unable to connect to the appropriate sockets because they’re already occupied. But if you’ve already double-checked that there are no lingering Agent processes remaining, and if you can ensure that the appropriate ports are available to the Agent, sometimes this above error persists.
For Linux hosts, the following directory must be owned by the
dd-agent user in order for it to start correctly:
On rare occasions, the ownership of this directory can get changed to something other than
dd-agent. This causes the above error the next time you try starting the Agent. You can double-check the ownership of this directory by running the following command:
ls -al /opt/datadog-agent/run
If the owner of the file is not
dd-agent, you can run the following command to fix this:
chown dd-agent -R /opt/datadog-agent/run
After making this change, the
/etc/init.d/datadog-agent start command should successfully be able to start the Agent.
If you continue to see this issue despite having taken these steps, contact Datadog support for additional direction.
Additional helpful documentation, links, and articles: