# 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/28250>\
**Category:** PMM 2.x\
**Created:** [February 5, 2024, 8:29am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250 "2024-02-05T08:29:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_lee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anonymous_lee/32/12659_2.png) [@anonymous\_lee](https://forums.percona.com/u/anonymous_lee)\
**Post date:** [February 5, 2024, 8:29am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250/1 "2024-02-05T08:29:16Z")

</div>

## Description:

[Detailed description of the issue or question]

os:redhat 7.9  
install file : pmm2-client-2.32.0.tar.gz

[postgres@cjDfarmdb pmm2-client-2.32.0]$ echo $PATH  
/usr/local/[bin:/usr/bin:/usr/local/sbin:/usr/sbin:/pg\_data/.local/bin:/pg\_data/bin:/usr/pgsql-14/bin:/pg\_dump/pmm/pmm2-client-2.32.0/bin](http://bin/usr/bin:/usr/local/sbin:/usr/sbin:/pg_data/.local/bin:/pg_data/bin:/usr/pgsql-14/bin:/pg_dump/pmm/pmm2-client-2.32.0/bin)  
[postgres@cjDfarmdb pmm2-client-2.32.0]$  
[postgres@cjDfarmdb pmm2-client-2.32.0]$  
[postgres@cjDfarmdb pmm2-client-2.32.0]$  
[postgres@cjDfarmdb pmm2-client-2.32.0]$  
[postgres@cjDfarmdb pmm2-client-2.32.0]$ pmm-agent setup --config-file=${PMM\_DIR}/config/pmm-agent.yaml --server-address=10.65.10.40 --server-insecure-tls --server-username=admin --server-password=\*\*\*\*\*\* --paths-tempdir=${PMM\_DIR}/tmp --paths-base=${PMM\_DIR}  
INFO[2024-02-05T10:52:18.765+09:00] Loading configuration file /pg\_dump/pmm/pmm2-client-2.32.0/config/pmm-agent.yaml. component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/node\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/mysqld\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/mongodb\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/postgres\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/proxysql\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/rds\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/azure\_exporter component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Using /pg\_dump/pmm/pmm2-client-2.32.0/exporters/vmagent component=setup  
INFO[2024-02-05T10:52:18.765+09:00] Updating PMM Server address from “10.65.10.40” to “10.65.10.40:443”. component=setup  
Checking local pmm-agent status…  
pmm-agent is not running.  
Registering pmm-agent on PMM Server…  
Failed to register pmm-agent on PMM Server: Internal server error..

## Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]

## Version:

[Insert the version number of the software]

## Logs:

[If applicable, include any relevant log files or error messages]

## Expected Result:

[What the user expected to see or happen before the issue occurred]

## Actual Result:

[What actually happened when the user encountered the issue]

## Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [February 5, 2024, 8:52am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250/2 "2024-02-05T08:52:29Z")

</div>

Hi @anonymous_lee,

could you share PMM Server version? Also could you check logs on PMM server side, more specifically pmm-managed logs. You can collect them by calling PMM\_SERVER\_URL/logs.zip endpoint

---

<div class="post-metadata">

**Author:** ![anonymous\_lee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anonymous_lee/32/12659_2.png) [@anonymous\_lee](https://forums.percona.com/u/anonymous_lee)\
**Post date:** [February 5, 2024, 8:59am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250/3 "2024-02-05T08:59:43Z")

</div>

[pmm-managed.log](https://forums.percona.com/uploads/short-url/kEDDczK2opHOi9aEF58o1rA7G8L.log) (184.7 KB)

I tested it with pmm 2.16.0, and I also tested it as a root user.  
But the result was the same

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [February 5, 2024, 9:21am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250/4 "2024-02-05T09:21:43Z")

</div>

There are nothing in logs related to this.  
Could you collect logs right after the operation?  
PMM designed the way that PMM Server(2.16.0) might not support newer version of PMM Client(2.32.0).  
PMM 2.16.0 is quite outdated, we recommend to update PMM Server version.

---

<div class="post-metadata">

**Author:** ![anonymous\_lee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anonymous_lee/32/12659_2.png) [@anonymous\_lee](https://forums.percona.com/u/anonymous_lee)\
**Post date:** [February 6, 2024, 7:09am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250/5 "2024-02-06T07:09:16Z")

</div>

[pmm-managed.log](https://forums.percona.com/uploads/short-url/2B6ncFdBWbBjLa54TjKFXeb35Z9.log) (185.0 KB)  
Currently, the pmm server is 2.32.0 and the client is also testing 2.32.0.  
However, there is no 2.32.0 client installation manual, so when I install 2.32.0 according to the 2.41.0 client installation manual, the error below appears.

I tested again and uploaded pmm-managed.log

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [February 6, 2024, 7:21am UTC](https://forums.percona.com/t/failed-to-register-pmm-agent-on-pmm-server-internal-server-error/28250/6 "2024-02-06T07:21:19Z")

</div>

looks like your DB scheme was upgraded to version newer then 2.32.0, have you upgraded and then downgraded your PMM Server? Because of new constraints in PMM Server DB introduced in newer version of PMM it can’t write new record to DB.

There are 2 solutions:

1. Upgrade your PMM Server, so it can handle new constraints correctly
2. Downgrade DB scheme using reverse engineering
