token already exists

pavlos

Active Member
Dec 17, 2017
16
1
43
66
I have 3 hosts, pve4, pve5, and pve6. I was able to add pve4 (Remote ID 100), pve6 (Remote ID 600) but cannot add pve5, I get an error token already exists).
Is there a way to clear the token so I can add this host?
Is the Remote ID just some descriptive text? (eg. pve5 in front office or pve6 in back room).
Thank you.

Screenshot 2025-11-24 at 10-21-05 pve6 - Proxmox Datacenter Manager.png
 
Is there a way to clear the token so I can add this host?
the question is why is there a token with that name already? is there something/someone that is using that token?

if you really want to clear it, there are 3 possibilities:

* you go to the pve ui and delete the token -> every user of that token will not be able to connect anymore
* use a different token name for pdm
* go to the pve ui and refresh the secret for that token and enter the token details directly instead of letting it auto-create

Is the Remote ID just some descriptive text? (eg. pve5 in front office or pve6 in back room).
yes the remote id is just the id which is used in pdm to reference it
 
I tried to add pve5 earlier but could not add it. Gave it Remote ID 500, then 555, then 888. None of these IDs exist. Still, I cannot add pve5.
I tried using the secret for that token, I get api error 400. I assume somewhere in the pdm, the token is kept.

1764074150029.png
 
I looked in /var/log/proxmox-datacenter-manager/api/auth.log

2025-11-25T04:22:37-07:00: successful auth for user 'root@pam'
2025-11-25T05:33:53-07:00: authentication failure; rhost=[::ffff:10.0.0.41]:44372 msg=invalid csrf token - format error - wrong number of parts.
2025-11-25T05:34:14-07:00: successful auth for user 'root@pam'
2025-11-25T05:51:57-07:00: authentication failure; rhost=[::ffff:10.0.0.41]:54040 msg=invalid csrf token - format error - wrong number of parts.
2025-11-25T05:52:09-07:00: successful auth for user 'root@pam'
2025-11-25T06:09:29-07:00: authentication failure; rhost=[::ffff:10.0.0.41]:41546 msg=invalid csrf token - format error - wrong number of parts.
2025-11-25T06:09:41-07:00: successful auth for user 'root@pam'
 
I will wait for a future release.
Even with a brand new install of pdm (I followed the First Steps PDM mini howto), I still get errors when I try to add hosts.
I must be doing something wrong.