Failed to register pmm-agent on PMM Server:

I have installed PMM server and it is running, but I’m unable to establish a connection between the server and the client as I’m getting the following error

Failed to register pmm-agent on PMM Server: Endpoint not found: /v1/management/Node/Register, http method: POST.

Hello @nkefor

To resolve this, Please check pmm-server HOST and Port connectivity from client host.
You will find more details here: Resolve issues - Percona Monitoring and Management

Ref: Register your client node with PMM Server:

Hello,

Please be more specific. How do I check pmm-server HOST and Port connectivity from client host? The pmm-server is working and I’m able to access it. There is no other service running on the server where I installed pmm-server that could be using port 443.

Hello @nkefor

How do I check pmm-server HOST and Port connectivity from client host?

So you are getting this error while registering your client node with PMM Server. You can check connectivity between pmm-client and pmm-server using telnet.

If connectivity is there, check below details for further troubleshooting,

Check the pmm-server services status.

$ sudo docker exec -it pmm-server supervisorctl status

pmm-admin config –debug output to check more details on why it Failed to register pmm-agent on PMM Server.
pmm-admin config --server-insecure-tls --server-url=https://<username>:<password>@<PMM_SERVER-IP/Host>:443 --debug

Please also share pmm-server and pmm-admin --version details.

@nkefor please first check whether both server and client are on the same version i.e PMMv3

For the client you can use

pmm-admin --version

If client is PMMv2 but server is PMMv3 please remove pmm2-client, follow this and try to register again

2 Likes

Hello, this was the issue. I was running PMM server version 3, meanwhile the pmm client version was version 2. I upgraded the PMM client to version 3 and was able to register it on the PMM Server

2 Likes