Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
04-25-2019 10:09 PM - last edited on 05-14-2020 01:24 PM by Ryan.Paredez
Hi,
The below error appears only whenever Sim monitoring and docker monitoring enabled is enabled.
(MACHINE_AGENT_PROPERTIES=-Dappdynamics.sim.enabled=true -Dappdynamics.docker.enabled=true)
I could not start up the machine agent due to: Failed to get a response from /info using a GET request. The error encountered is: javax.xml.ws.WebServiceException: Cannot connect to Docker. The unix socket file /var/run/docker.sock does not exist. Please provide a valid file to access.
Please see startup.log in the current working directory for details.
Tried resolutions but didnt work :-
Solved! Go to Solution.
01-28-2020 09:18 AM - last edited on 01-28-2020 10:35 AM by Ryan.Paredez
HI Everyone!
Giving this a bump. I have the same issue. Did anyone find a solution to this?
02-03-2020 01:28 PM
Sandor, Did you happen to check out the link Dan provided in his post? I'm wondering if that KB article needs to be updated to make things more clear or improved?
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
02-04-2020 12:53 AM
Hey Guys!
If you want to run it on K8S the official gitrepo currently has a bug.
The issue here is that there was a commit which removed some important line from the
appd-machine-agent-analytics/deploy/machine-agent.yaml file.
You need to mount the proper directory, so you need add the follow
- mountPath: /var/run/docker.sock
name: docker-sock
If you are trying to run it in plain docker with compose you can try this repository:
https://github.com/Appdynamics/docker-machine-agent/blob/master/docker-compose.yml
Here you can see that the /var/run/docker.sock is also mounted:
volumes:
- /:/hostroot:ro
- /var/run/docker.sock:/var/run/docker.sock
02-04-2020 01:00 AM
So answering your question this KB article is good. If the container runs under a user which does not have a privilige, you need to add it to the proper docker group.
However, it may happen if you don't start the container properly you may get this issue as well. So would be great to add to this KB that you need to check if the mount is properly configured.
02-04-2020 12:53 PM
Hi Sandor,
Thanks for sharing your research and that additional information. I've created an internal ticket to have that KB article be looked at. If you felt like your previous response answers the question, would you mind marking your reply as the accepted solution? This will help let the community know this question has an official response.
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
02-10-2020 04:44 PM
Hello, Sandor
I wanted to let you know that I've updated the How do I resolve Docker Machine Agent article in the Knowledge Base. Per your recommendation, I noted that users should check to be sure the mount is properly configured.
Thank you for helping us make the community better by flagging this..
Regards,
Claudia Landivar
Community Manager & Editor
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
2 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form