PVE restore file from PBS inconsistency

czechsys

Well-Known Member
Nov 18, 2015
328
28
48
Hi,

we are running with
Code:
Apt::Install-Recommends "0";

and it trigger some inconsistency when testing file restore.

proxmox-ve: 6.4-1 (running kernel: 5.4.106-1-pve)
pve-manager: 6.4-4 (running version: 6.4-4/337d6701)
pve-kernel-5.4: 6.4-1
pve-kernel-helper: 6.4-1
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.4.106-1-pve: 5.4.106-1
pve-kernel-5.4.78-2-pve: 5.4.78-2
pve-kernel-5.4.55-1-pve: 5.4.55-1
pve-kernel-5.4.44-2-pve: 5.4.44-2
pve-kernel-5.4.41-1-pve: 5.4.41-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.1.2-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.20-pve1
libproxmox-acme-perl: 1.0.8
libproxmox-backup-qemu0: 1.0.3-1
libpve-access-control: 6.4-1
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-2
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-1
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
openvswitch-switch: 2.12.3-1
proxmox-backup-client: 1.1.5-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.5-3
pve-cluster: 6.4-1
pve-container: 3.3-5
pve-docs: 6.4-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.2-2
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-1
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.4-pve1

1] file restore
Code:
proxmox-file-restore failed: Error: cannot run file-restore VM: package 'proxmox-backup-restore-image' is not (correctly) installed (500)

2] proxmox-backup-file-restore
Code:
Package: proxmox-backup-file-restore
Version: 1.1.5-2
Depends: libacl1 (>= 2.2.23), libc6 (>= 2.18), libgcc1 (>= 1:4.2), libssl1.1 (>= 1.1.0), libstdc++6 (>= 5.2), libuuid1 (>= 2.16), libzstd1 (>= 1.3.2)
Recommends: pve-qemu-kvm (>= 5.0.0-9), proxmox-backup-restore-image
- if file restore depends on image-restore, why it's in recommends?

3] inconsistency proxmox-backup-restore-image vs proxmox-backup-file-restore
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
5,281
1,566
164
South Tyrol/Italy
shop.proxmox.com

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
5,281
1,566
164
South Tyrol/Italy
shop.proxmox.com
For completeness' sake, the file restore consists of two packages, the proxmox-backup-file-restore one providing the CLI user interface and handling pxar archives (CT, host backups) directly, and the proxmox-backup-restore-image one, which is a small, optimized kernel + rust-based daemon which handles backup images from VMs, as mount is not a safe operation we do it in a contained micro VM for security reasons.
 
Last edited:

czechsys

Well-Known Member
Nov 18, 2015
328
28
48
I just don't understand use-case.

libpve-storage-perl - depends on proxmox-backup-file-restore (so we can restore from...only pbs)
proxmox-backup-file-restore - don't depends on proxmox-backup-restore-image (so we can't by default restore from pbs, if we don't install recommends automatically)

I think, having proxmox-backup-restore-image as dependency is needed, because without it proxmox-backup-file-restore is useless, so having it only as recommend is too low (especially for upgrades from older versions).
 
Last edited:

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
5,281
1,566
164
South Tyrol/Italy
shop.proxmox.com
I think, having proxmox-backup-restore-image as dependency is needed, because without it proxmox-backup-file-restore is useless, so having it only as recommend is too low (especially for upgrades from older versions).
No, it's not useless, you can use it on container backups just fine without that package. The Recommends is correct, see also Debians definition of that dependency relationship:

Recommends
This declares a strong, but not absolute, dependency.
The Recommends field should list packages that would be found together with this one in all but unusual installations.
-- https://www.debian.org/doc/debian-p...ends-recommends-suggests-enhances-pre-depends

If you plainly disable installing recommended package dependencies you'll run in more of such issues, as you run an unusual installation then (as defined by Debian), where you need to handle such things yourself.
 
Last edited:

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 your own in 60 seconds.

Buy now!