backup@pbs != root@pam - How do I fix this

cmrho

New Member
Nov 4, 2024
22
5
3
Hi. My pbs server was originally set up without a separate user. I just used root to access it from my pve server. I had to reinstall pve completely. But instead of attached pbs using root@pam, I setup user backups@pbs. But ever since then, all of the previously restored VMS/CTS from the original backup (using root@pam login), won't back up.

How do I fix this?

Here's the task output showing the error

Code:
INFO: Error: backup owner check failed (backups@pbs != root@pam)
INFO: cleanup temporary 'vzdump' snapshot
ERROR: Backup of VM 118 failed - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup '--crypt-mode=none' pct.conf:/var/tmp/vzdumptmp2343432_118/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --skip-lost-and-found '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' --backup-type ct --backup-id 118 --backup-time 1739303572 --entries-max 1048576 --repository backups@pbs@192.168.86.49:zfs_datastore' failed: exit code 255
INFO: Failed at 2025-02-11 13:52:53
INFO: Backup job finished with errors
TASK ERROR: job errors

Thanks!
 
Found the solution. For posterity, here's the solution:

In pbs shell of pvebackup

root@pvebackup:~# proxmox-backup-client change-owner ct/118 backups@pbs --repository zfs_datastore

where 'backup@pbs' was the new username for pve access and 'zfs_datastore' was the datastore name.

I did this for every VM/CT and it's fixed!
 
  • Like
Reactions: Johannes S
Found the solution. For posterity, here's the solution:

In pbs shell of pvebackup

root@pvebackup:~# proxmox-backup-client change-owner ct/118 backups@pbs --repository zfs_datastore

where 'backup@pbs' was the new username for pve access and 'zfs_datastore' was the datastore name.

I did this for every VM/CT and it's fixed!
Thanks for sharing your solution. Let me add for others to stumble upon this thread: You can also change the backup group ownership via the WebUI by selecting the group in the Content tab and clicking on the Person symbol in the Actions column.

Also, please make sure to use namespaces to avoid naming conflicts if you are backing up from multiple hosts/clusters, for details see https://pbs.proxmox.com/docs/storage.html#backup-namespaces
 
Thanks for sharing your solution. Let me add for others to stumble upon this thread: You can also change the backup group ownership via the WebUI by selecting the group in the Content tab and clicking on the Person symbol in the Actions column.

Also, please make sure to use namespaces to avoid naming conflicts if you are backing up from multiple hosts/clusters, for details see https://pbs.proxmox.com/docs/storage.html#backup-namespaces
Ah, I see that. That would've been much quicker. Thanks!