[SOLVED] Unable to read backups from a synced PBS

thesix

Member
Mar 17, 2021
18
2
8
59
Hi!

We are in the process of replacing our current PBS system. We set up a new PBS and synced all backups to it. Then we the new PBS as remote storage to one of our PVEs for testing. We see the storage, its capacity/usage but we see no backup VM images. The backup on the new PBS checks out, all backups are present an verified.

Creating new backups of VMs is also not possible.

Any help appreciated!

Regards,
j.
 
Last edited:
  • Like
Reactions: livi_G
Hi!

We are in the process of replacing our current PBS system. We set up a new PBS and synced all backups to it. Then we the new PBS as remote storage to one of our PVEs for testing. We see the storage, its capacity/usage but we see no backup VM images. The backup on the new PBS checks out, all backups are present an verified.

Any help appreciated!

Regards,
j.
Hi,
does the user/api token used to access the datastore have the permissions to read the backup from that datastore? Do you access the same namespace?
 
Hi,
does the user/api token used to access the datastore have the permissions to read the backup from that datastore? Do you access the same namespace?

User/API token seem to have the correct permissions since we can see the remote datastore on the PVE. We only use the `Root Namespace`, so yes, namespace is the same.
 
Solved it! As a former colleague once said: it's always a permissions problem. The sync was done **before** the API Token user was created. Hence all the backups belonged to the root user. Changing ownership of the backups solved it!
 
I want to add one more thing. Changing the ownership of backups via the UI is cumbersome if the number of backup groups is too large. The documentation for the cli tool `proxmox-backup-client` is, well, not existent. I could not find any example how to run the script **on a PBS** system.

So I did this:

Code:
for vmid in /path/vm/*;do echo 'NEW_USER_NAME@REALM' > /path/vm/$vmid/owner;done

Maybe someone needs to do this in the future.
 

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!