MongoDB / pymongo: [Errno 13] Permission denied: '/usr/bin/sd-agent/.python-eggs'

If you see this error when starting the agent, there are several possible causes.

This article is for our v1 agent and will soon be deprecated.

  • You downloaded the pymongo Python library to the directory you started the agent from. For example you are in your home directory /home/david and downloaded the pymongo files there, then started the agent. If there is a directory called pymongo in your current directory, delete it then try restarting the agent.

  • The owner of the /usr/bin/sd-agent directory is not sd-agent. When installing the agent a user will be created for the agent to run as. If the /usr/bin/sd-agent directory is not owned by this user then it will not be able to execute its files correctly. Change the ownership of the directory by executing sudo chown -R sd-agent:sd-agent /usr/bin/sd-agent
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.