Help I cant back up

sohail

New Member
Dec 18, 2023
6
0
1
I used this helper script to create a LXC for PBS.

https://helper-scripts.com/scripts?id=Proxmox+Backup+Server

I wanted to write my backups to my NAS so I used this guide to pass though my NAS drive to the LXC which is mounted to /mnt/nas_pbs

https://github.com/JamesTurland/JimsGarage/tree/main/LXC/NAS

I can see and write to the NAS drive in the PBS Shell, I have also added it as a data store and the .chunks and .locks were created.

I then connected PBS to my PVE and i can see it as data store.

when i go to a Container and click on backup it errors and fails. below is the error

INFO: starting new backup job: vzdump 101 --remove 0 --mode snapshot --storage backup --notes-template '{{guestname}}' --notification-mode auto --node pve
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-05-30 12:13:23
INFO: status = running
vm 101 - unable to parse value of 'usb0' - unknown setting 'usb0'
vm 101 - unable to parse value of 'usb1' - unknown setting 'usb1'
INFO: CT Name: frigate
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('recordings') from backup (not a volume)
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: frigate
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('recordings') from backup (not a volume)
INFO: starting first sync /proc/3111/root/ to /var/tmp/vzdumptmp91735_101
INFO: first sync finished - transferred 4.06G bytes in 12s
INFO: suspending guest
INFO: starting final sync /proc/3111/root/ to /var/tmp/vzdumptmp91735_101
INFO: final sync finished - transferred 405.07K bytes in 2s
INFO: resuming guest
INFO: guest is online again after 2 seconds
INFO: creating Proxmox Backup Server archive 'ct/101/2024-05-30T11:13:23Z'
INFO: set max number of entries in memory for file-based backups to 1048576
INFO: run: /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp91735_101/etc/vzdump/pct.conf root.pxar:/var/tmp/vzdumptmp91735_101 --include-dev /var/tmp/vzdumptmp91735_101/. --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 101 --backup-time 1717067603 --entries-max 1048576 --repository root@pam@192.168.1.146:proxmox_backup
INFO: Starting backup: ct/101/2024-05-30T11:13:23Z
INFO: Client name: pve
INFO: Starting backup protocol: Thu May 30 12:13:37 2024
INFO: No previous manifest available.
INFO: Upload config file '/var/tmp/vzdumptmp91735_101/etc/vzdump/pct.conf' to 'root@pam@192.168.1.146:8007:proxmox_backup' as pct.conf.blob
INFO: Error: fchmod "/mnt/nas_pbs/ct/101/2024-05-30T11:13:23Z/pct.conf.tmp_Unj1Xt" failed: EPERM: Operation not permitted
vm 101 - unable to parse value of 'usb0' - unknown setting 'usb0'
vm 101 - unable to parse value of 'usb1' - unknown setting 'usb1'
vm 101 - unable to parse value of 'usb0' - unknown setting 'usb0'
vm 101 - unable to parse value of 'usb1' - unknown setting 'usb1'
ERROR: Backup of VM 101 failed - command '/usr/bin/proxmox-backup-client backup '--crypt-mode=none' pct.conf:/var/tmp/vzdumptmp91735_101/etc/vzdump/pct.conf root.pxar:/var/tmp/vzdumptmp91735_101 --include-dev /var/tmp/vzdumptmp91735_101/. --skip-lost-and-found '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' --backup-type ct --backup-id 101 --backup-time 1717067603 --entries-max 1048576 --repository root@pam@192.168.1.146:proxmox_backup' failed: exit code 255
INFO: Failed at 2024-05-30 12:13:40
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors

I can not get it to back up any container where am i going wrong?

here is the LXC config.

GNU nano 7.2 /etc/pve/lxc/109.conf
#<div align='center'><a href='https%3A//Helper-Scripts.com' target='_blank' rel='noopener noreferrer'><img src='https%3A//raw.githubuserco>
#
# # PBS LXC
#
# <a href='https%3A//ko-fi.com/D1D7EP4GF'><img src='https%3A//img.shields.io/badge/&#x2615;-Buy me a coffee-blue' /></a>
# </div>
#
#http%3A//192.168.1.146%3A8007
arch: amd64
cores: 4
features: keyctl=1,nesting=1
hostname: proxbackserv
memory: 4096
mp0: /mnt/pve/nas_pbs/,mp=/mnt/nas_pbs
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:49:02:84,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: nvme-2tb:109/vm-109-disk-0.raw,size=10G
swap: 512
tags: proxmox-helper-scripts
unprivileged: 1
 
Hi!
it looks like you don't have the correct permissions to change the permission bits of the file (https://man7.org/linux/man-pages/man3/fchmod.3p.html).
Could you check the owners and permissions of the files in /mnt/nas_pbs? Is the owner of the files `backup:backup`?

There is also an issue with the commands in the second link you provided:
- cifs doesn't have a noatime option AFAIK and noatime also does not work with the PBS Garbage Collection. So you have to remove `noatime` (https://pbs.proxmox.com/docs/backup-client.html#garbage-collection).
- check that the uid/gid parameters are the `backup` user and `backup` group used by PBS.
 
Hi!
it looks like you don't have the correct permissions to change the permission bits of the file (https://man7.org/linux/man-pages/man3/fchmod.3p.html).
Could you check the owners and permissions of the files in /mnt/nas_pbs? Is the owner of the files `backup:backup`?

There is also an issue with the commands in the second link you provided:
- cifs doesn't have a n
thanks for taking a look so here is what my permissions look like. its not backup backup as you have said what could i have done wrong?

root@pbs:/mnt/nas_pbs# ls -la
total 4
drwxrwx--- 2 root nas_pbs 0 May 31 23:36 .
drwxr-xr-x 3 root root 4096 May 31 15:28 ..
drwxrwx--- 2 root nas_pbs 0 May 31 18:10 .chunks
-rwxrwx--- 1 root nas_pbs 0 May 31 15:30 .lock
drwxrwx--- 2 root nas_pbs 0 May 31 23:36 ct
 
Also keep in mind that PBS was designed to be run bare metal with local SSD storage. Neither LXC nor datastore on a NAS nor running it on HDDs is great. If you really need to use a NAS, I would recommend to at least use a PBS VM and then directly mount a NFS share inside the VM. This should be less prone to break.
 
  • Like
Reactions: ggoller
What Dunuin said is correct, so you will likely have bad performance.

Try to change the owner of all files to `backup:backup` (e.g. using chown) and try again.
 

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!