Backup of LXC failing

guff666

Member
Nov 6, 2021
33
1
13
71
I'm running Proxmox 7.4.16 on several (unclustered) nodes. One LXC on one of the nodes repeatedly fails to backup; though it did use to.

Normally, it backs up to PBS, but to eliminate this, I ran a backup to local storage and got the following
Code:
INFO: Backup started at 2023-12-31 13:42:48
INFO: status = running
INFO: CT Name: emoncms
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
  Logical volume "snap_vm-100-disk-0_vzdump" created.
INFO: creating vzdump archive '/var/lib/vz/dump/vzdump-lxc-100-2023_12_31-13_42_48.tar.zst'
INFO: tar: ./usr/lib/python3/dist-packages/gi/module.py: File shrank by 1513 bytes; padding with zeros
INFO: tar: ./usr/lib/python3/dist-packages/gi/overrides/GIMarshallingTests.py: Read error at byte 0, while reading 2242 bytes: Input/output error
INFO: tar: ./usr/lib/python3/dist-packages/gi/overrides/GLib.py: Read error at byte 0, while reading 2560 bytes: Input/output error
INFO: tar: ./usr/lib/python3/dist-packages/pymacaroons/__pycache__/utils.cpython-38.pyc: Read error at byte 0, while reading 3755 bytes: Input/output error
INFO: tar: ./usr/lib/python3/dist-packages/pymacaroons/__pycache__/macaroon.cpython-38.pyc: Read error at byte 0, while reading 3072 bytes: Input/output error
INFO: tar: ./usr/lib/python3/dist-packages/pymacaroons/__pycache__/verifier.cpython-38.pyc: Read error at byte 0, while reading 3072 bytes: Input/output error
INFO: Total bytes written: 2722211840 (2.6GiB, 38MiB/s)
INFO: tar: Exiting with failure status due to previous errors
INFO: cleanup temporary 'vzdump' snapshot
  Logical volume "snap_vm-100-disk-0_vzdump" successfully removed
ERROR: Backup of VM 100 failed - command 'set -o pipefail && tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/lib/vz/dump/vzdump-lxc-100-2023_12_31-13_42_48.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | zstd --rsyncable '--threads=1' >/var/lib/vz/dump/vzdump-lxc-100-2023_12_31-13_42_48.tar.dat' failed: exit code 2
INFO: Failed at 2023-12-31 13:44:00
INFO: Backup job finished with errors
TASK ERROR: job errors

The job fails when GIMarshallingtests.py runs. Any ideas on how to resolve this?
 
Assuming you did not uninstall/remove python3 while backing up, I would say the drive on which you keep that container is (partially) bad. Check journalctl or Syslog or SMART for more specific error messages.
 

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!