[PMM] Failed to register pmm-agent on PMM Server

I have installed PMM server on my Linux machine using docker container and it is running. To get metrics i’m now trying to install PMM client to monitor localhost MySQL instance. While configuring PMM client with the server i am getting the following exception

command:
PMM_SERVER=X.X.X.X:443
docker run
–rm
–name pmm-client
-e PMM_AGENT_SERVER_ADDRESS=${PMM_SERVER}
-e PMM_AGENT_SERVER_USERNAME=admin
-e PMM_AGENT_SERVER_PASSWORD=admin
-e PMM_AGENT_SERVER_INSECURE_TLS=1
-e PMM_AGENT_SETUP=1
-e PMM_AGENT_CONFIG_FILE=pmm-agent.yml
–volumes-from pmm-client-data
percona/pmm-client:2



**Exception:**
Failed to register pmm-agent on PMM Server: Post "[https://x.x.x.x:443/v1/management/Node/Register](https://x.x.x.x/v1/management/Node/Register)": dial tcp x.x.x.x:443: connect: no route to host.

How can I solve this issue ?

Hello @aanees,
The error message indicates that from within the new container running the agent, it is unable to access your PMM server. Can you ping the server from this host? Next, try running a generic container and attempt to ping/telnet to the PMM server from within this container. Does that work? If not, you have networking issues that need to be resolved.

For a simpler setup, I recommend using the normal pmm client available via YUM/APT packages.

1 Like