[SOLVED] could not backup with APItoken

huky

Renowned Member
Jul 1, 2016
70
3
73
44
Chongqing, China
I added a PBS datastore to PVE with username and password.( storage ID: pbsBAK)
Now I add the same datastore to the same PVE with API token of the same user.( storage ID: pbsBAK2)
but I can not see the backup in pbsCCS2 via PVE

proxmox-backup-manager acl list
┌───────────────────┬───────────────────┬───────────┬─────────────────┐
│ ugid │ path │ propagate │ roleid │
╞═══════════════════╪═══════════════════╪═══════════╪═════════════════╡
│ pvebak@pbs │ /datastore/pveBAK │ 1 │ DatastoreBackup │
├───────────────────┼───────────────────┼───────────┼─────────────────┤
│ pvebak@pbs!bak │ /datastore/pveBAK │ 1 │ DatastoreBackup │
└───────────────────┴───────────────────┴───────────┴─────────────────┘

/usr/bin/proxmox-backup-client backup etc.pxar:/etc
......
Error: backup owner check failed (pvebak@pbs!bak != pvebak@pbs)


thank dylanw , i see.

proxmox-backup-client change-owne host/node001 'pvebak@pbs!bak'
 
Last edited:
You can find a good explanation as to why this is happening and the reason for the design choice here [1], but essentially API tokens correspond to a subset of a user, rather than the user itself, so unless the backup is owned by the API token, it will not pass the authentication. You can change the owner of the backup group [2] to the API in case.

[1] https://forum.proxmox.com/threads/snapshot-ownership-and-api-tokens.87863/#post-403174
[2] https://pbs.proxmox.com/docs/backup...ge owner#changing-the-owner-of-a-backup-group
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!