# New install, cannot register client

**URL:** <https://forums.percona.com/t/new-install-cannot-register-client/19307>\
**Category:** PMM 2.x\
**Tags:** percona\
**Created:** [December 25, 2022, 4:30pm UTC](https://forums.percona.com/t/new-install-cannot-register-client/19307 "2022-12-25T16:30:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zon\_Master](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zon_master/32/8814_2.png) [@Zon\_Master](https://forums.percona.com/u/Zon_Master)\
**Post date:** [December 25, 2022, 4:30pm UTC](https://forums.percona.com/t/new-install-cannot-register-client/19307/1 "2022-12-25T16:30:15Z")

</div>

Just installed onto a new server (following instructions at: [Install Percona Monitoring and Management](https://www.percona.com/software/pmm/quickstart)).  
Logged into the UI, updated the password. The UI is working fine, but…

Getting this on all clients:

```auto
$ sudo pmm-admin config --server-insecure-tls --server-url=https://admin:<newpassword>@10.xxx.xxx.xxx:443
Checking local pmm-agent status...
pmm-agent is running.
Registering pmm-agent on PMM Server...
Failed to register pmm-agent on PMM Server: invalid username or password
Please check username and password.

```

I can telnet to the endpoint. I have opened the firewall on the client for port `42000` (we did this for running the old PMM on a different set of servers).  
What else can I try?

---

<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:** [December 25, 2022, 4:35pm UTC](https://forums.percona.com/t/new-install-cannot-register-client/19307/2 "2022-12-25T16:35:42Z")

</div>

Can you log into the UI with those credentials? You can check syslog on the client side for more hints as to why it thinks the password is wrong.

There could also be hints in the PMM server (docker exec pmm-server tail /dev/logs/pmm-managed.log or grafana.log) as to what’s happening.

---

<div class="post-metadata">

**Author:** ![Zon\_Master](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zon_master/32/8814_2.png) [@Zon\_Master](https://forums.percona.com/u/Zon_Master)\
**Post date:** [December 26, 2022, 12:44am UTC](https://forums.percona.com/t/new-install-cannot-register-client/19307/3 "2022-12-26T00:44:53Z")

</div>

The issue actually seems to be the firewall.  
If I disable `ufw` on the `pmm-server` machine things work.  
I have looked here [Network - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/setting-up/server/network.html) and my `ufw config` should work:

```auto
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere                  
7771 on eth1 ALLOW Anywhere                  
443 ALLOW Anywhere                  
80/tcp ALLOW Anywhere                  
OpenSSH (v6) ALLOW Anywhere (v6)             
7771 (v6) on eth1 ALLOW Anywhere (v6)             
443 (v6) ALLOW Anywhere (v6)             
80/tcp (v6) ALLOW Anywhere (v6)             

```

But there are obviously other ports I need to open.

---

<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:** [December 26, 2022, 1:57am UTC](https://forums.percona.com/t/new-install-cannot-register-client/19307/4 "2022-12-26T01:57:33Z")

</div>

Is this an ami or ovf? I have never seen this with docker…

---

<div class="post-metadata">

**Author:** ![Zon\_Master](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zon_master/32/8814_2.png) [@Zon\_Master](https://forums.percona.com/u/Zon_Master)\
**Post date:** [December 26, 2022, 4:39am UTC](https://forums.percona.com/t/new-install-cannot-register-client/19307/5 "2022-12-26T04:39:01Z")

</div>

I am not sure what was wrong or what I did to fix it. But I uninstalled the `pmm2-client` from the machine, reinstalled, opened the firewall and now it connects.  
Not a very useful thread for anyone else I am afraid!
