# Adding node removes all other nodes

**URL:** <https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790>\
**Category:** PMM 2.x\
**Tags:** pmm\
**Created:** [January 26, 2023, 5:06pm UTC](https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790 "2023-01-26T17:06:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![csheridan](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@csheridan](https://forums.percona.com/u/csheridan)\
**Post date:** [January 26, 2023, 5:06pm UTC](https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790/1 "2023-01-26T17:06:41Z")

</div>

I am not sure if I’m doing this right.

I have several servers I need to add to my PMM Server.

I run:  
`pmm-admin config --server-insecure-tls --server-url=https://admin:admin@<mypmm-address>:443 192.168.65.90 generic myserver1`

When I do that, the other servers disappear.

I check with:  
`pmm-admin inventory list nodes`

And I get:  
`Failed to get PMM Server parameters from local pmm-agent: pmm-agent is not connected to PMM Server.`

Why does it remove all the other nodes when I connect a node? Do I need to add all the nodes from a single server?

---

<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:** [January 26, 2023, 5:18pm UTC](https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790/2 "2023-01-26T17:18:51Z")

</div>

Hi @csheridan thank you for posting to the Percona forums!

Adding a new node should not remove any other nodes. Your `pmm-admin config` command syntax looks accurate.

Your error message seems as if the `pmm-agent` process isn’t running. Can you check with:

```auto
systemctl status pmm-agent

```

If it is stopped, start it up and then check the inventory list again

```auto
systemctl start pmm-agent

```

---

<div class="post-metadata">

**Author:** ![csheridan](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@csheridan](https://forums.percona.com/u/csheridan)\
**Post date:** [January 26, 2023, 5:20pm UTC](https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790/3 "2023-01-26T17:20:43Z")

</div>

I can confirm it is running:

```auto
● pmm-agent.service - pmm-agent
     Loaded: loaded (/lib/systemd/system/pmm-agent.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-01-26 11:08:49 CST; 11min ago
   Main PID: 11667 (pmm-agent)
      Tasks: 21 (limit: 76623)
     Memory: 13.1M
     CGroup: /system.slice/pmm-agent.service
             └─11667 /usr/sbin/pmm-agent --config-file=/usr/local/percona/pmm2/config/pmm-agent.yaml

```

So, if I have 5 servers I need to send data to PMM, I need to run the command on each server, correct?

Because when I run this command:

`pmm-admin config --force --server-insecure-tls --server-url=https://admin:admin@<pmm-url>:443 192.168.65.90 generic <server name>`

I get:

```auto
Checking local pmm-agent status...
pmm-agent is running.
Registering pmm-agent on PMM Server...
Registered.
Configuration file /usr/local/percona/pmm2/config/pmm-agent.yaml updated.
Reloading pmm-agent configuration...
Configuration reloaded.
Checking local pmm-agent status...
pmm-agent is running.

```

However, when I run:

`pmm-admin inventory list nodes`

I get:

`Failed to get PMM Server parameters from local pmm-agent: pmm-agent is not connected to PMM Server.`

---

<div class="post-metadata">

**Author:** ![csheridan](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@csheridan](https://forums.percona.com/u/csheridan)\
**Post date:** [January 26, 2023, 9:42pm UTC](https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790/4 "2023-01-26T21:42:24Z")

</div>

Hey guess what? I was using the wrong port because the PMM Server is proxied. No wonder it wasn’t working.

---

<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:** [January 26, 2023, 9:43pm UTC](https://forums.percona.com/t/adding-node-removes-all-other-nodes/19790/5 "2023-01-26T21:43:11Z")

</div>

What version of PMM are you running as well as client?

when you run `pmm-admin status` is a similar error returned?

The only thing that is coming to mind is if you possibly changed ports/IP’s that pmm-agent is running on…I think there’s a bug where you can change the port, start the server but certain commands assume a default 127.0.0.1 IP and port 7777 so if it’s not there it’ll fail.

\*\*Edit\*\* just saw your answer…I’ll leave here for anyone else that may have an issue now there’s two things to check!
