error during cfs-locked 'file-vzdump_cron' operation: value without key, but schema does not define a default key (500)

kiet

New Member
Feb 6, 2023
1
0
1
Hi there,

I set a backup retention for all my VMs keep 3 lastest backup but I want to keep a VM with just 2 lastest backup. So I config in /etc/pve/vzdump.cron by add --prune-backups keep-last=2 but I have an error :

error during cfs-locked 'file-vzdump_cron' operation: value without key, but schema does not define a default key (500).

Can anyone help me? Thanks.
 
Hi,
I'd try removing what you added manually and rather configure the retention for the backup job via UI (Datacenter > Backup) or API. If that doesn't work, please post the output of pveversion -v and cat /etc/pve/vzdump.cron.
 
Hey,

i have the same Issu with my Instance.

Here is the Output of the Commands your requested above:
Code:
root@PVE-SRV04:~# cat /etc/pve/vzdump.cron
# cluster wide vzdump cron schedule
# Automatically generated file - do not edit

PATH="/usr/sbin:/usr/bin:/sbin:/bin"

root@PVE-SRV04:~# pveversion -v
proxmox-ve: 8.1.0 (running kernel: 6.5.11-8-pve)
pve-manager: 8.1.4 (running version: 8.1.4/ec5affc9e41f1d79)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.5: 6.5.11-8
proxmox-kernel-6.5.11-8-pve-signed: 6.5.11-8
ceph-fuse: 17.2.7-pve2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx8
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.0.7
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.0
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-network-perl: 0.9.5
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.0.5
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve4
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.1.4-1
proxmox-backup-file-restore: 3.1.4-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.4
proxmox-widget-toolkit: 4.1.3
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.3
pve-edk2-firmware: 4.2023.08-3
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.2.0
pve-qemu-kvm: 8.1.5-2
pve-xtermjs: 5.3.0-3
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.2-pve1
root@PVE-SRV04:~#

I removed all Backups manually but i can not Edit or Delete the Backupjob.

Thank you in Advanced.
 
Hi,
Hey,

i have the same Issu with my Instance.

Here is the Output of the Commands your requested above:
Code:
root@PVE-SRV04:~# cat /etc/pve/vzdump.cron
# cluster wide vzdump cron schedule
# Automatically generated file - do not edit

PATH="/usr/sbin:/usr/bin:/sbin:/bin"

root@PVE-SRV04:~# pveversion -v
proxmox-ve: 8.1.0 (running kernel: 6.5.11-8-pve)
pve-manager: 8.1.4 (running version: 8.1.4/ec5affc9e41f1d79)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.5: 6.5.11-8
proxmox-kernel-6.5.11-8-pve-signed: 6.5.11-8
ceph-fuse: 17.2.7-pve2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx8
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.0.7
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.0
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-network-perl: 0.9.5
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.0.5
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve4
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.1.4-1
proxmox-backup-file-restore: 3.1.4-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.4
proxmox-widget-toolkit: 4.1.3
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.3
pve-edk2-firmware: 4.2023.08-3
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.2.0
pve-qemu-kvm: 8.1.5-2
pve-xtermjs: 5.3.0-3
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.2-pve1
root@PVE-SRV04:~#

I removed all Backups manually but i can not Edit or Delete the Backupjob.

Thank you in Advanced.
please share the output of cat /etc/pve/jobs.cfg and the exact error message you get. What do you get when you run pvesh get /cluster/backup?
 
Hi fiona,

here the Output:

Code:
root@PVE-SRV04:~# cat /etc/pve/jobs.cfg
vzdump: backup-ba33ff49-c6c1
        schedule 21:00
        all 1
        compress zstd
        enabled 1
        mailnotification failure
        mailto
        mode snapshot
        notes-template {{guestname}}
        repeat-missed 1
        storage local

vzdump: backup-c2ebcbac-0c20
        schedule sun 01:00
        all 1
        compress zstd
        enabled 1
        mailnotification failure
        mailto
        mode stop
        notes-template {{guestname}}
        repeat-missed 0
        storage local

and

Code:
root@PVE-SRV04:~# pvesh get /cluster/backup
┌──────────────────────┐
│ id                   │
╞══════════════════════╡
│ backup-ba33ff49-c6c1 │
├──────────────────────┤
│ backup-c2ebcbac-0c20 │

I get a Promt with the following Error Massage:

Error During cfs-locked file vzdump ...

I will post the exact Message as soon as i can get back to my Desk.

Thanks
 
Hmm, there is a mailto option but without any value which might be a problem. Or did you censor the value (if yes, please indicate so with xxx@xxx or similar next time)?

Please also share the output of cat /etc/vzdump.conf