pve-manager & man-db error on upgrade

BoosIT

New Member
Oct 11, 2023
4
0
1
apt dist-upgrade:
root@debian:~# apt dist-upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up pve-manager (8.0.4) ... Job for pvedaemon.service failed. See "systemctl status pvedaemon.service" and "journalctl -xeu pvedaemon.service" for details. dpkg: error processing package pve-manager (--configure): installed pve-manager package post-installation script subprocess returned error exit status 1 Setting up man-db (2.11.2-2) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package man-db (--configure): installed man-db package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: pve-manager man-db E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg -D2 --configure pve-manager:
root@debian:~# dpkg -D2 --configure pve-manager Setting up pve-manager (8.0.4) ... D000002: fork/exec /var/lib/dpkg/info/pve-manager.postinst ( configure 8.0.4 ) Job for pvedaemon.service failed. See "systemctl status pvedaemon.service" and "journalctl -xeu pvedaemon.service" for details. dpkg: error processing package pve-manager (--configure): installed pve-manager package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: pve-manager

dpkg -D2 --configure man-db:
root@debian:~# dpkg -D2 --configure man-db Setting up man-db (2.11.2-2) ... D000002: fork/exec /var/lib/dpkg/info/man-db.postinst ( configure 2.11.2-2 ) debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package man-db (--configure): installed man-db package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: man-db
 
Hi,

seems like /var/cache/debconf/config.dat is still locked by some process.
Please post the output of these following commands to investigate this further:

- pveversion -v
- ps aux | grep -P '(apt|dpkg)'
- lsof /var/cache/debconf/config.dat
 
HI,

pveversion -v:
root@debian:~# pveversion -v proxmox-ve: 8.0.2 (running kernel: 6.2.16-10-pve) pve-manager: not correctly installed (running version: 8.0.4/d258a813cfa6b390) pve-kernel-6.2: 8.0.5 proxmox-kernel-helper: 8.0.3 proxmox-kernel-6.2.16-15-pve: 6.2.16-15 proxmox-kernel-6.2: 6.2.16-15 proxmox-kernel-6.2.16-10-pve: 6.2.16-10 ceph-fuse: 16.2.11+ds-2 corosync: 3.1.7-pve3 criu: 3.17.1-2 glusterfs-client: 10.3-5 ifupdown: residual config ifupdown2: 3.2.0-1+pmx5 libjs-extjs: 7.0.0-4 libknet1: 1.26-pve1 libproxmox-acme-perl: 1.4.6 libproxmox-backup-qemu0: 1.4.0 libproxmox-rs-perl: 0.3.1 libpve-access-control: 8.0.5 libpve-apiclient-perl: 3.3.1 libpve-common-perl: 8.0.9 libpve-guest-common-perl: 5.0.5 libpve-http-server-perl: 5.0.4 libpve-rs-perl: 0.8.5 libpve-storage-perl: 8.0.2 libspice-server1: 0.15.1-1 lvm2: 2.03.16-2 lxc-pve: 5.0.2-4 lxcfs: 5.0.3-pve3 novnc-pve: 1.4.0-2 proxmox-backup-client: 3.0.3-1 proxmox-backup-file-restore: 3.0.3-1 proxmox-kernel-helper: 8.0.3 proxmox-mail-forward: 0.2.0 proxmox-mini-journalreader: 1.4.0 proxmox-offline-mirror-helper: 0.6.2 proxmox-widget-toolkit: 4.0.9 pve-cluster: 8.0.4 pve-container: 5.0.4 pve-docs: 8.0.5 pve-edk2-firmware: 3.20230228-4 pve-firewall: 5.0.3 pve-firmware: 3.8-2 pve-ha-manager: 4.0.2 pve-i18n: 3.0.7 pve-qemu-kvm: 8.0.2-6 pve-xtermjs: 4.16.0-3 qemu-server: 8.0.7 smartmontools: 7.3-pve1 spiceterm: 3.3.0 swtpm: 0.8.0+pve1 vncterm: 1.8.0 zfsutils-linux: 2.1.13-pve1

ps aux | grep -P '(apt|dpkg)':
root@debian:~# ps aux | grep -P '(apt|dpkg)' root 69692 0.0 0.0 6396 2304 pts/3 S+ 11:39 0:00 grep -P (apt|dpkg) root 3720196 0.0 0.0 25068 17856 ? S Oct10 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/man-db.postinst configure 2.11.2-2 root 3720270 0.0 0.0 2576 960 ? S Oct10 0:00 /bin/sh /var/lib/dpkg/info/man-db.postinst configure 2.11.2-2

lsof /var/cache/debconf/config.dat:
root@debian:~# lsof /var/cache/debconf/config.dat lsof: WARNING: can't stat() cifs file system /mnt/pve/NAS Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME frontend 3720196 root 4uW REG 8,1 42592 393101 /var/cache/debconf/config.dat
 
So yes, there are still (dpkg) processes running which are locking the file.

What did you do before? Were you trying to upgrade the node (and how, i.e. what commands)? Did you abort or lose connections during the upgrade?
Can you also attach the syslog (journalctl -b >journal.log) and /var/log/apt/term.log?

If it's possible, I'd suggesting simply rebooting the node and then try re-running apt dist-upgrade.
Otherwise, you can kill the other processes using kill -9 3720270 3720196 and then re-running the upgrade step. But rebooting would be the safer option.
 
I decided to update because... I can't log into the web interface. The system is now showing an error filed to start pveproxy.service
 
The system is now showing an error filed to start pveproxy.service
Can you please provide the exact error as displayed (systemctl status pveproxy.service)?
Also, please attach the syslog (as stated previously) as file. Otherwise it's pretty hard to guess why it fails.
 

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!