Unable to backup to disk

powersupport

Active Member
Jan 18, 2020
277
2
38
30
Hi Team,

We are getting backup failure, the error message is
ERROR: VM 158 qmp command 'backup' failed - backup connect failed: command error: unable to create backup group "/datastore/inpx/vm/158" - Permission denied (os error 13)
INFO: aborting backup job

Please advice us to resolve this issue
 
Hey,

could you post the output of
Code:
ls -lah /datastore
ls -lah /datastore/inpx
ls -lah /datastore/inpx/vm
ls -lah /datastore/inpx/vm/158
 
Hi,

Here is the output; please check:

ls -lah /datastore
root@px-sg1-bu3:~# ls -lah /datastore
total 28K
drwxr-xr-x 7 root root 4.0K Sep 19 2023 .
drwxr-xr-x 19 root root 4.0K Oct 14 2022 ..
drwxr-xr-x 4 backup backup 4.0K Jun 7 00:05 inpx
drwxr-xr-x 3 backup backup 4.0K Aug 17 2023 maintanance
drwxr-xr-x 4 backup backup 4.0K Jun 7 00:15 maintanance-sg2
drwxr-xr-x 4 backup backup 4.0K Jun 7 00:27 satapx
drwxr-xr-x 4 backup backup 4.0K Jun 7 00:14 tkpx-sg1


ls -lah /datastore/inpx
root@px-sg1-bu3:~# ls -lah /datastore/inpx
total 1.1M
drwxr-xr-x 4 backup backup 4.0K Jun 7 00:05 .
drwxr-xr-x 7 root root 4.0K Sep 19 2023 ..
drwxr-x--- 1 backup backup 1.1M Jun 27 2023 .chunks
-rw-r--r-- 1 backup backup 286 Jun 7 00:05 .gc-status
-rw-r--r-- 1 backup backup 0 Jun 27 2023 .lock
drwxr-xr-x 3 root root 4.0K Jun 27 2023 vm


ls -lah /datastore/inpx/vm
root@px-sg1-bu3:~# ls -lah /datastore/inpx/vm
total 12K
drwxr-xr-x 3 root root 4.0K Jun 27 2023 .
drwxr-xr-x 4 backup backup 4.0K Jun 7 00:05 ..
drwxr-xr-x 11 backup backup 4.0K Jun 27 2023 103


ls -lah /datastore/inpx/vm/158
root@px-sg1-bu3:~#[B] [/B]ls -lah /datastore/inpx/vm/158
ls: cannot access '/datastore/inpx/vm/158': No such file or directory


Please advice us to resolve this issue

Thank you
 
Code:
drwxr-xr-x 3 root   root   4.0K Jun 27  2023 vm
/datastore/inpx/vm seems to be owned by root, but the backup user should be the owner. Did you manually copy or move things around lately?

chown -R backup:backup /datastore/inpx should solve the problem.
 
We have run the command chown -R backup:backup /datastore/inpx,

but the backup is still not working, and the same error persists.

Could you please help resolve this issue?

Thank you.
 
Good morning. May be you are under pressure, but... this is a user supported forum. We (you) do not pay for support. For professional support you may look at https://shop.proxmox.com/index.php?rp=/store/proxmox-ve-standard

I am with @Hannes Laimer in #4. After "chown", did the owner change to "backup" in ls -lah /datastore/inpx? (You didn't show the output...)

Then please post the complete output of that failing backup task.

Best regards
 
Here is the results of it

root@px-sg1-bu3:~# ls -lah /datastore/inpx
total 1.1M
drwxr-xr-x 4 backup backup 4.0K Jun 9 00:03 .
drwxr-xr-x 7 root root 4.0K Sep 19 2023 ..
drwxr-x--- 1 backup backup 1.1M Jun 27 2023 .chunks
-rw-r--r-- 1 backup backup 286 Jun 9 00:03 .gc-status
-rw-r--r-- 1 backup backup 0 Jun 27 2023 .lock
drwxr-xr-x 18 backup backup 4.0K Jun 9 00:00 vm


Then here is the complete output of falling backup task


Task viewer: VM/CT 105 - Backup

OutputStatus

Stop

Download
INFO: starting new backup job: vzdump 105 --remove 0 --node inpx-sg1-n1 --storage bu3 --mode snapshot --notification-mode auto --notes-template '{{guestname}}'
INFO: Starting Backup of VM 105 (qemu)
INFO: Backup started at 2024-06-09 16:03:26
INFO: status = running
INFO: VM Name: SuperScaler
INFO: include disk 'scsi0' 'Inpx-storage:vm-105-disk-0' 200G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: snapshots found (not included into backup)
INFO: creating Proxmox Backup Server archive 'vm/105/2024-06-09T08:03:26Z'
ERROR: VM 105 qmp command 'backup' failed - backup register image failed: command error: inserting chunk on store 'inpx' failed for bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8 - mkstemp "/datastore/inpx/.chunks/bb9f/bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8.tmp_XXXXXX" failed: ENOENT: No such file or directory
INFO: aborting backup job
INFO: resuming VM again
ERROR: Backup of VM 105 failed - VM 105 qmp command 'backup' failed - backup register image failed: command error: inserting chunk on store 'inpx' failed for bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8 - mkstemp "/datastore/inpx/.chunks/bb9f/bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8.tmp_XXXXXX" failed: ENOENT: No such file or directory
INFO: Failed at 2024-06-09 16:03:26
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors
 
ERROR: Backup of VM 105 failed - VM 105 qmp command 'backup' failed - backup register image failed: command error: inserting chunk on store 'inpx' failed for bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8 - mkstemp "/datastore/inpx/.chunks/bb9f/bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8.tmp_XXXXXX" failed: ENOENT: No such file or directory
Well, unfortunately I am not sure what this means. If it was me I would run a Prune and a Garbage Collection from PBS - even though this probably won't help.

Does the folder "inpx/.chunks/bb9f/" exist? As far as I know it should have been created when the datastore was initialized. But then there was this "wrong owner" problem...? "ls .chunks/" should list 65536 folders owned by "backup:backup" - as you already did the "chown -R" thing...

If the datastore is empty you might go back to square one, formally remove that datastore in PBS and recreate it.

Perhaps some else has a better idea on how to proceed, sorry.

Edit/PS: please use [CODE]...[/CODE]-Tags for better readability.
 

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!