# Pmm client not connecting to pmm server

**URL:** <https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845>\
**Category:** Uncategorized\
**Tags:** percona\
**Created:** [May 26, 2022, 2:03pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845 "2022-05-26T14:03:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 2:03pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/1 "2022-05-26T14:03:33Z")

</div>

Hello everyone,  
I had actually uninstalled pmm-client package and re-installed it again using package manager(debian), I am using ubuntu 20.0.4 , I have successfully installed the pmm-client , but I am unable to register it with the server.  
The pmm-server is up and running and the dashboard is also accessible.  
this is the command i used to register the pmm-client to pmm-server  
_pmm-admin config --server-insecure-tls --server-url=[https://admin:admin@10.57.58.215:443](https://admin:admin@10.57.58.215:443) 10.57.58.72 generic stg-sanjana102_  
My ip-addresses are correct and they are pingable too.

the error I am facing is,  
Checking local pmm-agent status…

pmm-agent is running.

Registering pmm-agent on PMM Server…

Failed to register pmm-agent on PMM Server: Post “[https://10.57.58.215:443/v1/management/Node/Register](https://10.57.58.215:443/v1/management/Node/Register)”: Service Unavailable.

Please help me with this.  
Thanks

---

<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:** [May 26, 2022, 2:27pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/2 "2022-05-26T14:27:23Z")

</div>

Does this work?

```
curl -k https://10.57.58.215:443/swagger/

```

If this returns failure, then you have some sort of firewall issue or your pmm server container was not configured correctly to map ports.

---

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 2:32pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/3 "2022-05-26T14:32:39Z")

</div>

> [@matthewb](#):
>
> `curl -k https://10.57.58.215:443/swagger/`

This is the output of the command  
curl: (56) Received HTTP code 503 from proxy after CONNECT  
and the firewall is inactive.

I have 3 nodes in total and previously they were connected and running, but now they are’nt.  
I was previously using mariadb 10.3.34 , now I have uninstalled it and I am using mariadb 10.5.6 version.  
so i have was having issues in starting mariadb service, hence on one of my node i have uninstalled pmm client , then I have configured a 3 node galera cluster and now when i try to install pmm-client and register I am getting this error

---

<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:** [May 26, 2022, 2:55pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/4 "2022-05-26T14:55:14Z")

</div>

Does your PMM web UI work? I would try restarting the container too.

---

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 2:59pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/5 "2022-05-26T14:59:33Z")

</div>

I have stopped and restarted the pmm-server container and yes my pmm web UI is working.  
Still the same error , unable to register the pmm-client with pmm-server.

---

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 3:56pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/6 "2022-05-26T15:56:57Z")

</div>

Can someone please help me out with this? I am unable to proceed further.  
Thanks

---

<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:** [May 26, 2022, 4:00pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/7 "2022-05-26T16:00:27Z")

</div>

@Sanjana_Chandrasheka,  
If you need faster support please contact us directly. These are community-powered forums from volunteer efforts. [Percona MySQL support services for better application performance](https://www.percona.com/services/support/mysql-support)

---

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 4:11pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/8 "2022-05-26T16:11:40Z")

</div>

Thank you, i see the numbers provided is for business related help, I am a learner and trying to learn new softwares so i don’t think i can get any support from there right?

---

<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:** [May 26, 2022, 4:33pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/9 "2022-05-26T16:33:12Z")

</div>

Correct. If you’re trying to learn on your own then you can post here but you need to be patient and not demand that people help you. The people that answer posts here are volunteering their free time to help the community.

---

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 4:35pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/10 "2022-05-26T16:35:47Z")

</div>

Okay, thank you, will be patient and sorry if it sounded like I was demanding.

---

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [May 26, 2022, 6:36pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/11 "2022-05-26T18:36:37Z")

</div>

Issue is resolved, it was a very strange problem, actually when i was trying to register the node i was logged in as root user (sudo su) , I simply exited from sudo su and tried to register the pmm-agent using _sudo pmm-admin config --server-insecure-tls --server-url=[https://admin:admin@10.57.58.215:443](https://admin:admin@10.57.58.215:443) 10.57.58.72 generic stg-sanjana102_  
It worked this time.  
I still don’t know why this problem exists, i have also unregistered the agent and again logged into root and tried to register again which again failed, but when i exit sudo su it works.

---

<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 27, 2022, 6:13pm UTC](https://forums.percona.com/t/pmm-client-not-connecting-to-pmm-server/15845/12 "2022-05-27T18:13:10Z")

</div>


