# Failed to register pmm-agent on PMM Server: response from nginx

**URL:** <https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535>\
**Category:** PMM 2.x\
**Tags:** pmm, percona\
**Created:** [May 20, 2021, 1:00pm UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535 "2021-05-20T13:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloworld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@helloworld](https://forums.percona.com/u/helloworld)\
**Post date:** [May 20, 2021, 1:00pm UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535/1 "2021-05-20T13:00:50Z")

</div>

While connecting to configure we are facing this error. But able to access the percona via broswer

Warning: PMM Server requires TLS communications with client.  
Checking local pmm-agent status…  
pmm-agent is running.  
Registering pmm-agent on PMM Server…  
Failed to register pmm-agent on PMM Server: response from nginx:

Command: sudo pmm-admin config --server-insecure-tls --server-url=[http://admin:\*\*\*\*\*\*\*\*@15X.X9.1XX.X06:8081](http://admin: ******** @15X.X9.1XX.X06:8081)

PMM-admin  
ProjectName: pmm-admin  
Version: 2.17.0  
PMMVersion: 2.17.0

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [May 20, 2021, 2:18pm UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535/2 "2021-05-20T14:18:22Z")

</div>

Hello @helloworld - welcome to the Percona Forums!  
It sounds like your PMM Server is running but you are unable to register clients. It would assist us greatly if you could download the diagnostic data from PMM Server and then attach to this issue so we can review and provide recommendations. Instructions on where to gather the logs are located at this link:

> **[Troubleshoot - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/how-to/troubleshoot.html)**
>
> Documentation

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [May 20, 2021, 3:34pm UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535/3 "2021-05-20T15:34:34Z")

</div>

The http port is _only_ for browser interaction (so just accessing the UI). All client to server communication _must_ be over an encrypted channel…doesn’t necessarily need to be port 443 but does need to be HTTPS. so try the command:

`sudo pmm-admin config --server-insecure-tls --server-url=https://admin: ******** @15X.X9.1XX.X06:8443`  
(note the https and change to the secure port…whatever you exposed when you did your `docker run` or setup from AMI/OVF.

---

<div class="post-metadata">

**Author:** ![helloworld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@helloworld](https://forums.percona.com/u/helloworld)\
**Post date:** [May 21, 2021, 11:00am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535/6 "2021-05-21T11:00:25Z")

</div>

Thanks it worked 😇 🙂 🙂

---

<div class="post-metadata">

**Author:** ![vikasshitole](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@vikasshitole](https://forums.percona.com/u/vikasshitole)\
**Post date:** [October 4, 2021, 2:28pm UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-response-from-nginx/10535/7 "2021-10-04T14:28:21Z")

</div>

HI Steve,

I get the below issue while registering the client. Could you pls assist. i already diverted the 443 port from docker container to host server, but still same issues,.  
I tried all the above solution suggested, even my port 443 is telnet connected from client to server but still issue persist,

[root@xxxx ~]# pmm-admin config --server-insecure-tls --server-url=[https://admin](https://admin):admin@ **xxxx** :443  
Checking local pmm-agent status…  
pmm-agent is running.  
Registering pmm-agent on PMM Server…  
Failed to register pmm-agent on PMM Server: .
