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/davidand downloaded the pymongo files there, then started the agent. If there is a directory called
pymongoin your current directory, delete it then try restarting the agent.
- The owner of the
/usr/bin/sd-agentdirectory is not
sd-agent. When installing the agent a user will be created for the agent to run as. If the
/usr/bin/sd-agentdirectory 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