# Failed to register pmm-agent on PMM Server: Internal server error

**URL:** <https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/34446>\
**Category:** Contribute to PMM\
**Tags:** pmm, percona, pmm-doc\
**Created:** [October 18, 2024, 9:38am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/34446 "2024-10-18T09:38:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sara](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sara/32/18559_2.png) [@Sara](https://forums.percona.com/u/Sara)\
**Post date:** [October 18, 2024, 9:38am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/34446/1 "2024-10-18T09:38:13Z")

</div>

I want to install percona monitoring and management, I installed the pmm-agent and pmm-server in docker,  
When I do :# docker ps  
The status of pmm-server : always unhealthy

Return health: starting when I execute:

Docker restart id-server-container

And returned unhealthy fast

The web interface always:  
502 bad gateway  
–‐--------------------------  
nginx

And when I want to register the pmm-client to the pmm-server with this command:  
#pmm-admin config --server-url=[https://admin](https://admin):admin@ip\_@:443 --server-insecure-tls

This output display:

Checking local pmm-agent status…  
Pmm-agent is running.  
Registration pmm-agent on PMM Server…  
Failed to register pmm-agent on PMM Server: Internal server error.  
Please check username and password.

Any help please 🙏

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 18, 2024, 12:16pm UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/34446/2 "2024-10-18T12:16:37Z")

</div>

Please show us all commands used to start pmm-server. Also, please provide `docker logs pmm-server` otherwise it is very difficult to help.
