LXC backup cannot be made to nfs

frankz

Member
Nov 16, 2020
364
24
23
Hello everyone, I try and try back up an LXC VM but keep giving me an error:

Code:
INFO: starting new backup job: vzdump 126 --node pve --storage pbs --remove 0 --mode snapshot
INFO: Starting Backup of VM 126 (lxc)
INFO: Backup started at 2022-02-10 07:51:44
INFO: status = running
INFO: CT Name: openvas
INFO: including mount point rootfs ('/') in backup
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: openvas
INFO: including mount point rootfs ('/') in backup
INFO: starting first sync /proc/1683708/root/ to /var/tmp/vzdumptmp1686100_126
ERROR: Backup of VM 126 failed - command 'rsync --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --sparse --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/1683708/root//./ /var/tmp/vzdumptmp1686100_126' failed: exit code 23
INFO: Failed at 2022-02-10 07:54:29
INFO: Backup job finished with errors
TASK ERROR: job errors



The VM is located on an NFS share.


In addition, the email summary screen seems unformatted
 

Attachments

  • email.png
    email.png
    134.2 KB · Views: 11
Last edited:
i can Reproduce the issue (at least in my VM)
I dont think its the PBS, i think its related to the PVE

PVE was on 6, Problem exist since
PVE war 6 bei mir, Problem existiert seit PVE 7 / PBS 2

Current version PVE 7.1-10 PBS 2.1-5

Backup LOG PVE
Code:
Header
Proxmox
Virtual Environment 7.1-10
Search
Container 19224249 (svcld249.netz-haring.local) on node 'SVHCP-3-249'
local
Filter VMID
Server View
Logs
INFO: starting new backup job: vzdump 19224249 --node SVHCP-3-249 --remove 0 --mailto info@datarun.ch --storage pbs --mode snapshot
INFO: Starting Backup of VM 19224249 (lxc)
INFO: Backup started at 2022-02-10 10:03:26
INFO: status = running
INFO: CT Name: svcld249.netz-haring.local
INFO: including mount point rootfs ('/') in backup
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: svcld249.netz-haring.local
INFO: including mount point rootfs ('/') in backup
INFO: starting first sync /proc/2102906/root/ to /var/tmp/vzdumptmp1601671_19224249
INFO: first sync finished - transferred 37.98G bytes in 464s
INFO: suspending guest
INFO: starting final sync /proc/2102906/root/ to /var/tmp/vzdumptmp1601671_19224249
INFO: resume vm
INFO: guest is online again after 7 seconds
ERROR: Backup of VM 19224249 failed - command 'rsync --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --inplace --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/2102906/root//./ /var/tmp/vzdumptmp1601671_19224249' failed: exit code 23
INFO: Failed at 2022-02-10 10:11:27
INFO: Backup job finished with errors
TASK ERROR: job errors

a manual Rsync command

result:
Code:
2022/02/11 14:23:34 [2581511] building file list
2022/02/11 14:23:34 [2581511] .d..t...... tmp/
............

2022/02/11 14:27:36 [2581511] >f+++++++++ var/www/html/index.html
2022/02/11 14:27:36 [2581511] Number of files: 137,863 (reg: 102,864, dir: 30,518, link: 4,450, special: 31)
2022/02/11 14:27:36 [2581511] Number of created files: 65,393 (reg: 46,329, dir: 19,064)
2022/02/11 14:27:36 [2581511] Number of deleted files: 0
2022/02/11 14:27:36 [2581511] Number of regular files transferred: 46,335
2022/02/11 14:27:36 [2581511] Total file size: 37.69G bytes
2022/02/11 14:27:36 [2581511] Total transferred file size: 6.28G bytes
2022/02/11 14:27:36 [2581511] Literal data: 6.15G bytes
2022/02/11 14:27:36 [2581511] Matched data: 128.64M bytes
2022/02/11 14:27:36 [2581511] File list size: 1.57M
2022/02/11 14:27:36 [2581511] File list generation time: 0.001 seconds
2022/02/11 14:27:36 [2581511] File list transfer time: 0.000 seconds
2022/02/11 14:27:36 [2581511] Total bytes sent: 6.16G
2022/02/11 14:27:36 [2581511] Total bytes received: 1.11M
2022/02/11 14:27:36 [2581511] sent 6.16G bytes  received 1.11M bytes  25.40M bytes/sec
2022/02/11 14:27:36 [2581511] total size is 37.69G  speedup is 6.12
2022/02/11 14:27:36 [2581511] sent 6157693817 bytes  received 1113443 bytes  total size 37692323593
2022/02/11 14:27:36 [2581511] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]


so i got some
rsync: [receiver] open "/var/tmp/vzdumptmp2574160_19224249/var/lib/php/sessions/sess_3p4dni993dguugor7ue12s315k" failed: Permission denied (13)
rsync: [receiver] open "/var/tmp/vzdumptmp2574160_19224249/var/lib/php/sessions/sess_boa8ttlb502f837u8j4i5b80kh" failed: Permission denied (13)


why im currently debugging
 
Last edited:
Ich kann den Fehler so Reproduzieren (zumindest in meiner VM)
Dies aber nicht nur auf dem PBS sondern auch nur auf dem PVE daher denke ich ist das Thema eher in PVE anzusiedeln.

PVE war 6 bei mir, Problem existiert seit PVE 7 / PBS 2

Aktuelle Version PVE 7.1-10 PBS 2.1-5

Backup LOG PVE
Code:
Header
Proxmox
Virtual Environment 7.1-10
Search
Container 19224249 (svcld249.netz-haring.local) on node 'SVHCP-3-249'
local
Filter VMID
Server View
Logs
INFO: starting new backup job: vzdump 19224249 --node SVHCP-3-249 --remove 0 --mailto info@datarun.ch --storage pbs --mode snapshot
INFO: Starting Backup of VM 19224249 (lxc)
INFO: Backup started at 2022-02-10 10:03:26
INFO: status = running
INFO: CT Name: svcld249.netz-haring.local
INFO: including mount point rootfs ('/') in backup
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: svcld249.netz-haring.local
INFO: including mount point rootfs ('/') in backup
INFO: starting first sync /proc/2102906/root/ to /var/tmp/vzdumptmp1601671_19224249
INFO: first sync finished - transferred 37.98G bytes in 464s
INFO: suspending guest
INFO: starting final sync /proc/2102906/root/ to /var/tmp/vzdumptmp1601671_19224249
INFO: resume vm
INFO: guest is online again after 7 seconds
ERROR: Backup of VM 19224249 failed - command 'rsync --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --inplace --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/2102906/root//./ /var/tmp/vzdumptmp1601671_19224249' failed: exit code 23
INFO: Failed at 2022-02-10 10:11:27
INFO: Backup job finished with errors
TASK ERROR: job errors

Ein manueller Rsync befehl

führt zu
Code:
2022/02/11 14:23:34 [2581511] building file list
2022/02/11 14:23:34 [2581511] .d..t...... tmp/
............

2022/02/11 14:27:36 [2581511] >f+++++++++ var/www/html/index.html
2022/02/11 14:27:36 [2581511] Number of files: 137,863 (reg: 102,864, dir: 30,518, link: 4,450, special: 31)
2022/02/11 14:27:36 [2581511] Number of created files: 65,393 (reg: 46,329, dir: 19,064)
2022/02/11 14:27:36 [2581511] Number of deleted files: 0
2022/02/11 14:27:36 [2581511] Number of regular files transferred: 46,335
2022/02/11 14:27:36 [2581511] Total file size: 37.69G bytes
2022/02/11 14:27:36 [2581511] Total transferred file size: 6.28G bytes
2022/02/11 14:27:36 [2581511] Literal data: 6.15G bytes
2022/02/11 14:27:36 [2581511] Matched data: 128.64M bytes
2022/02/11 14:27:36 [2581511] File list size: 1.57M
2022/02/11 14:27:36 [2581511] File list generation time: 0.001 seconds
2022/02/11 14:27:36 [2581511] File list transfer time: 0.000 seconds
2022/02/11 14:27:36 [2581511] Total bytes sent: 6.16G
2022/02/11 14:27:36 [2581511] Total bytes received: 1.11M
2022/02/11 14:27:36 [2581511] sent 6.16G bytes  received 1.11M bytes  25.40M bytes/sec
2022/02/11 14:27:36 [2581511] total size is 37.69G  speedup is 6.12
2022/02/11 14:27:36 [2581511] sent 6157693817 bytes  received 1113443 bytes  total size 37692323593
2022/02/11 14:27:36 [2581511] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]


so i got some
rsync: [receiver] open "/var/tmp/vzdumptmp2574160_19224249/var/lib/php/sessions/sess_3p4dni993dguugor7ue12s315k" failed: Permission denied (13)
rsync: [receiver] open "/var/tmp/vzdumptmp2574160_19224249/var/lib/php/sessions/sess_boa8ttlb502f837u8j4i5b80kh" failed: Permission denied (13)


wieso ist mir allerdings schleierhaft
Can you please post in English?
 
  • Like
Reactions: CH.illig
Debugging Notes
Bash:
root@SVHCP-3-249:/var/tmp# ls /var/tmp/vzdumptmp2598005_19224249/var/lib/php/sessions/sess_* -Alah
-rw------- 1 100033 100033 1.2K Feb 11 14:55 /var/tmp/vzdumptmp2598005_19224249/var/lib/php/sessions/sess_3p4dni993dguugor7ue12s315k
-rw------- 1 100033 100033  420 Feb 11 15:01 /var/tmp/vzdumptmp2598005_19224249/var/lib/php/sessions/sess_cnvvlul90lfhi58vtpncbuet5m
-rw------- 1 100033 100033  900 Feb 11 14:56 /var/tmp/vzdumptmp2598005_19224249/var/lib/php/sessions/sess_ct2lrl0f3s6a3m1qdeltb18bdg


if i run
rm /var/tmp/vzdumptmp2598005_19224249/var/lib/php/sessions/sess_* -R
and then
rsync --verbose --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --inplace --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/2102906/root//./ /var/tmp/vzdumptmp2598005_19224249

it works,

but the same comand direct afterwards agan (Like the Backup "final sync"
give me

Bash:
sending incremental file list
tmp/
var/lib/mysql/ib_logfile0
var/lib/php/sessions/sess_3p4dni993dguugor7ue12s315k
var/log/apache2/access.log
var/log/journal/
var/log/journal/fe2dcc346dde445a9e95482e37c85663/
rsync: [receiver] open "/var/tmp/vzdumptmp2598005_19224249/var/lib/php/sessions/sess_3p4dni993dguugor7ue12s315k" failed: Permission denied (13)

Number of files: 68,539 (reg: 56,859, dir: 7,199, link: 4,450, special: 31)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 3
Total file size: 30.04G bytes
Total transferred file size: 101.58M bytes
Literal data: 32.06K bytes
Matched data: 101.55M bytes
File list size: 65.53K
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 2.00M
Total bytes received: 83.78K

sent 2.00M bytes  received 83.78K bytes  831.75K bytes/sec
total size is 30.04G  speedup is 14,447.07
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
 

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!