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, and this will cause the above error the next time you try starting the agent. You can double-check on the ownership of this directory by running the following command:
ls -al /opt/datadog-agent/run
And if the owner of the file is other than 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, drop an email to firstname.lastname@example.org for some additional direction.