Hello everyone,
after upgrading my 3-node PVE cluster from 8.4 to 9.1 I can no longer connect the cluster to Proxmox Datacenter Manager (PDM). The remote is added successfully, fingerprint validation works, and the login/token creation works as well — but when PDM tries to load the cluster afterwards, I get this error:
Code:
api error (status = 400: api returned unexpected data - failed to parse api response)
What I have already verified
All nodes reachable from PDM
From the PDM host:
Code:
curl -k https://192.168.1.101:8006/api2/json/nodes → 401 (expected without auth)
curl -k https://192.168.1.102:8006/api2/json/nodes → 401
curl -k https://192.168.1.104:8006/api2/json/nodes → 401
Token authentication created correctly
In PVE GUI:
Datacenter → Permissions → API Tokens → Add
User: root@pam
Token ID: pdm-admin
Privilege Separation: OFF
Expire: never
Token name becomes:
root@pam!pdm-admin
The secret is correctly saved.
Token works via cURL (JSON response OK)
On the PDM host:
Code:
curl -k \
-H "Authorization: PVEAPIToken=root@pam!pdm-admin=SECRET" \
https://192.168.1.101:8006/api2/json/nodes
This returns valid JSON.
So authentication and API access from the PDM host to the PVE nodes is working.
What happens in PDM
During the “Add Remote” wizard:
Probe Remote → OK
Token creation → OK
Fingerprints detected → OK
Summary → OK
But immediately after clicking Finish, PDM shows:
Code:
api error (status = 400: api returned unexpected data - failed to parse api response)
api error (status = 400: api returned unexpected data - failed to parse api response)
Environment
Cluster:
PVE01: 9.1.1 / kernel 6.17.2-1-pve
PVE02: 9.1.1
PVE04: 9.1.1
PDM:
Version: 0.1.12 (ALPHA)
OS: Linux PDM 6.8.12-15-pve
All nodes have valid SSL certificates and fingerprints match correctly.
What I suspect
It looks like PDM expects JSON but receives something else (likely an auth or redirect page).
This may be related to recent changes in PVE 9.1 API output or authentication.
There are similar reports here:
Hi,
On PDM 0.9.2 I keep getting this error when visiting the dashboard:
I can't see any real errors in the network tab nor the console.
But on this url (found in network tab):
https://10.10.20.3:8443/api2/extjs/pve/remotes/tiny_cluster/resources
I get this reply:
| errors | {} |
| message | "api returned unexpected data - failed to parse api response" |
| status | 400 |
| success | false |
On one specific view it shows a bit more info:
All Nodes are up-to-date on the...
Question
Is there a known incompatibility between PDM 0.1.x and Proxmox VE 9.1?
Is this a bug in the current PDM alpha?
Or does PVE 9.1 require a different token/permission setup?
Any help or hints are greatly appreciated.
Thanks!