adding remote to PDM after deleting the same remote via CLI in /etc/proxmox-datacenter-manager/remotes.cfg :-(Resolved)

lanepark5033

Member
Feb 20, 2025
45
4
8
Did a stupid thing and looking for hel in resolving my issue.
I deleted a running remote (pve) in this file, /etc/proxmox-datacenter-manager/remotes.cfg and after a while wanted to re-add the same remote.
In the PDM gui i tried to create the same remote in the PDM, but failed with "the certficate already exsists".
How can I re add this remote pve back into my PDM ?
 
Hi, since you are trying to add the remote again from the UI, please share the exact error message you are getting in the dialog. Asking because I have also tried the same thing, and the error that I got was:

Code:
api error (status = 400: error creating token: api error (status = 400: Parameter verification failed. tokenid: Token already exists.))

which in this case is expected, since you have directly deleted the entry from remotes.cfg the token is still present inside the remote. If this is the error you are getting, you can either use the existing token option in the wizard or delete the token from the remote and try adding again.
 
Using the gui connection of the problem pve I want to Datacenter/permissions/api tokens of the problem pve and deleted the old token causing the error and all is well.
Thanks for the input.
 
Glad it worked. Could you please mark this thread as resolved?