[SOLVED] Proxmox Upgrade got interrupted

hanturaya

Member
Jun 17, 2022
14
0
6
Hello all,
about 1 hour ago i tried to upgrade my old pve to the latest version (right now its on pve 5 and will be upgraded to 6 and then 7 ), before i ran the update firstly i checked the configuration with pve5to6 and it was OK no error. later i upgrade the proxmox with apt dist-upgrade after changed the source list. When I was upgrading it (the ug process is already begin), i remember something that i havent send the backup image of the VM to my backup server so i canceled it first, and then after i had sent the image i tried to retry the process but it seems that the process is now broken.

Its now cant continue the upgrade and stuck
Code:
root@pmx1:/home/noc# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  corosync libpve-access-control pve-firewall pve-ha-manager spiceterm zfs-initramfs zfsutils-linux
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

the version of proxmox-ve seems have changed but the other it isnt
Code:
root@pmx1:/home/noc# pveversion -v
proxmox-ve: 6.4-1 (running kernel: 4.15.18-12-pve)
pve-manager: 5.4-15 (running version: 5.4-15/d0ec33c6)
pve-kernel-5.4: 6.4-20
pve-kernel-helper: 6.4-20
pve-kernel-5.4.203-1-pve: 5.4.203-1
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.18-12-pve: 4.15.18-36
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libpve-access-control: 5.1-12
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 5.0-56
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: 2.0-14
libpve-storage-perl: 5.0-44
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.1.0-1
proxmox-widget-toolkit: 2.6-2
pve-cluster: 5.0-38
pve-container: 2.0-42
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 3.0-22
pve-firmware: 3.3-2
pve-ha-manager: 2.0-9
pve-i18n: 2.3-1
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 4.7.0-3
qemu-server: 5.0-56
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1~bpo2

and at least 2 service is on failed state (no effect with restart) with error log of this
Code:
root@pmx1:/home/noc# systemctl status pvedaemon
● pvedaemon.service - PVE API Daemon
   Loaded: loaded (/lib/systemd/system/pvedaemon.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2023-05-06 19:05:51 WIB; 36min ago
 Main PID: 2196 (code=exited, status=0/SUCCESS)
      CPU: 517ms


May 06 19:05:51 pmx1 pvedaemon[23198]: Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 13.
May 06 19:05:51 pmx1 pvedaemon[23198]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 13.
May 06 19:05:51 pmx1 pvedaemon[23198]: Compilation failed in require at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8
May 06 19:05:51 pmx1 pvedaemon[23198]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pvedaemon.pm li
May 06 19:05:51 pmx1 pvedaemon[23198]: Compilation failed in require at /usr/bin/pvedaemon line 11.
May 06 19:05:51 pmx1 pvedaemon[23198]: BEGIN failed--compilation aborted at /usr/bin/pvedaemon line 11.
May 06 19:05:51 pmx1 systemd[1]: pvedaemon.service: Control process exited, code=exited status=255
May 06 19:05:51 pmx1 systemd[1]: Failed to start PVE API Daemon.
May 06 19:05:51 pmx1 systemd[1]: pvedaemon.service: Unit entered failed state.
May 06 19:05:51 pmx1 systemd[1]: pvedaemon.service: Failed with result 'exit-code'.
root@pmx1:/home/noc# systemctl status pveproxy
● pveproxy.service - PVE API Proxy Server
   Loaded: loaded (/lib/systemd/system/pveproxy.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2023-05-06 19:05:51 WIB; 36min ago
 Main PID: 2239 (code=exited, status=0/SUCCESS)
      CPU: 511ms


May 06 19:05:51 pmx1 pveproxy[23211]: Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 13.
May 06 19:05:51 pmx1 pveproxy[23211]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 13.
May 06 19:05:51 pmx1 pveproxy[23211]: Compilation failed in require at /usr/share/perl5/PVE/Service/pveproxy.pm line 15.
May 06 19:05:51 pmx1 pveproxy[23211]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pveproxy.pm line
May 06 19:05:51 pmx1 pveproxy[23211]: Compilation failed in require at /usr/bin/pveproxy line 11.
May 06 19:05:51 pmx1 pveproxy[23211]: BEGIN failed--compilation aborted at /usr/bin/pveproxy line 11.
May 06 19:05:51 pmx1 systemd[1]: pveproxy.service: Control process exited, code=exited status=255
May 06 19:05:51 pmx1 systemd[1]: Failed to start PVE API Proxy Server.
May 06 19:05:51 pmx1 systemd[1]: pveproxy.service: Unit entered failed state.
May 06 19:05:51 pmx1 systemd[1]: pveproxy.service: Failed with result 'exit-code'.

Can anyone help me ? Thank you
 
Try to run dpkg --configure -a and/or apt -f install.
hello gurubert, thank u for ur answer

I've tried ur suggestion but it seems its not doing anything
Code:
root@pmx1:/home/noc# dpkg --configure -a
root@pmx1:/home/noc# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.

i also tried to run apt dist-upgrade again but nothing works
Code:
root@pmx1:/home/noc# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  corosync libpve-access-control pve-firewall pve-ha-manager spiceterm zfs-initramfs zfsutils-linux
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
 
Finally, I was able to solve this problem yesterday with fixing the source.list. It seems like the source.list line is changed by my teams.
The /etc/apt/source.list line before
Code:
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

So, i check the other proxmox and copy each line of the source.list, change the debian release to had it match with the version that going to be upgraded, fixing the not found public key and the not found source release, and thankfully it's not throwing an error again and the apt dist-upgrade seem to do the job
Code:
#PVE 5 TO 6
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib

# security updates (NOT FOUND)
# deb http://security.debian.org/debian-security buster-security main contrib


and now I've upgraded the proxmox to the latest version
Code:
root@pmx1:/home/noc# pveversion -v
proxmox-ve: 7.4-1 (running kernel: 5.4.203-1-pve)
pve-manager: 7.4-3 (running version: 7.4-3/9002ab8a)
pve-kernel-5.15: 7.4-2
pve-kernel-5.4: 6.4-20
pve-kernel-5.15.107-1-pve: 5.15.107-1
pve-kernel-5.4.203-1-pve: 5.4.203-1
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.18-12-pve: 4.15.18-36
ceph-fuse: 14.2.21-1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: 0.8.36+pve2
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4-2
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-4
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.5
libpve-storage-perl: 7.4-2
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.1-1
proxmox-backup-file-restore: 2.4.1-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.6.5
pve-cluster: 7.3-3
pve-container: 4.4-3
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-2
pve-firewall: 4.3-1
pve-firmware: 3.6-5
pve-ha-manager: 3.6.1
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 7.4-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.11-pve1
 
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 yours easily in our online shop.

Buy now!