local backup storage no longer available?

ph4zed

Member
Aug 5, 2023
14
0
6
I set this up on a mini pc with a 2tb nvme stick, so one of the partitions is where I put the datastore. It's been running for almost 3 weeks now, with not a single hiccup. All of the sudden, I'm getting this:

Error: unable to open chunk store at "/root/.chunks" - Permission denied (os error 13)

I found some stuff on copilot to try to fix the permissions, but some of it just throws errors
Code:
root@memoryalpha:~# sudo chown -R proxmox-backup-client:proxmox-backup-client /root/.chunks
chown: invalid user: ‘proxmox-backup-client:proxmox-backup-client’

root@memoryalpha:~# sudo systemctl restart proxmox-backup-client
Failed to restart proxmox-backup-client.service: Unit proxmox-backup-client.service not found.

Code:
root@memoryalpha:~# pvs
  PV             VG  Fmt  Attr PSize  PFree 
  /dev/nvme0n1p3 pbs lvm2 a--  <1.82t <16.00g

It also suggested making another directory (I'm a windows guy, so forgive me) and then making that the new datastore... but I'm not sure how to do all that and remove the old one properly, because I don't want to break some link to something and make things even worse. The backups that are in there aren't important, so if I should just delete that data store and make a new one (hints appreciated to avoid making the same mistake), I can do that too.

... and then why has this been working and all of the sudden broke? :/ It's only been 3-4 weeks running, so it's pretty recent and I have also update it during all of this to whatever is current today.
 
chown -R proxmox-backup-client:proxmox-backup-client /root/.chunks
Hi.
I believe it should be backup, not proxmox-backup-client.
BTW, is your datastore really below /root directory? This is quite unusual.

P.S. Mind that /root directory permissions usually don't let other users (like backup user) access directories inside it.
So no matter what owner you set with chown for such a subdirectory, it may be inaccessible for anyone but root user.

P.S. P.S. And relaxing permissions for /root is not a good idea. For a datastore better use some other empty directory not in /root
 
Last edited:
  • Like
Reactions: UdoB
Hi.
I believe it should be backup, not proxmox-backup-client.
BTW, is your datastore really below /root directory? This is quite unusual.

P.S. Mind that /root directory permissions usually don't let other users (like backup user) access directories inside it.
So no matter what owner you set with chmod for such a subdirectory, it may be inaccessible for anyone but root user.
Thanks! I ran the chmod with "backup" and it processed. Rebooted, hasn't changed anything.

Code:
root@memoryalpha:~# ls -ld /root/.chunks
drwxr-xr-x 1 backup backup 1056768 May 10 15:08 /root/.chunks
root@memoryalpha:~# chmod 700 /root/.chunks
root@memoryalpha:~# proxmox-backup-manager datastore list
┌─────────┬───────┬─────────┐
│ name    │ path  │ comment │
╞═════════╪═══════╪═════════╡
│ NVStore │ /root │         │
├─────────┼───────┼─────────┤
│ ext18   │ ext18 │         │
└─────────┴───────┴─────────┘

Should I just go and delete the datastore, and then... make a directory inside the root and then create the datastore there? I guess I would also need to chmod that folder, or does the process of creating the datastore do that?

proxmox-backup-manager datastore create NVStore --path /dev/nvme0n1p3/backups
 
Don't mess with /root ;-)
Use some new directory like /datastore
I don't remember the details how I made mine because I was experimenting a bit and used the CLI.
I think it's possible to create a datastore using just the GUI. Or maybe except the directory itself, I don't remember.
Anyway it can't be anything in /dev/ .

As for avoiding the mistake: hard to help with this because we don't know what you did earlier :cool:

Have a read of https://pbs.proxmox.com/docs/storage.html

Good luck!
 
Don't mess with /root ;-)
Use some new directory like /datastore
I don't remember the details how I made mine because I was experimenting a bit and used the CLI.
I think it's possible to create a datastore using just the GUI. Or maybe except the directory itself, I don't remember.
Anyway it can't be anything in /dev/ .

As for avoiding the mistake: hard to help with this because we don't know what you did earlier :cool:

Have a read of https://pbs.proxmox.com/docs/storage.html

Good luck!
haha I swear I did not do anything fancy to cause the issue. This was my first time installing PBS, so I stuck to the basics as much as possible. My goal was only to use the internal nvme for backing up some smaller VMs, so I took the storage as it was sliced up during the install and made the datastore.

I am still curious as to why it just now started... thanks for the info!!