[SOLVED] Update failing

crabbymonkey

Member
May 30, 2019
9
1
8
31
Hello, I was trying to update my installation of proxmox and now I am getting the following when I try to do an apt update && apt dist-upgrade. I have tried to do an apt clean along with apt reinstall proxmox-ve but I keep getting this error and it stops updating and now none of my VMs or containers are running and the web GUI isn't working. I had this server running with no trouble for a couple of years but was trying to get it upgraded and any help would be much appreciated.

Error:
Code:
root@pve:/var/lib/dpkg# apt clean && apt update && apt dist-upgrade
Ign:1 http://ftp.us.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://ftp.us.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.us.debian.org/debian stretch Release
Hit:5 http://download.proxmox.com/debian/pve stretch InRelease
Hit:6 http://download.proxmox.com/debian/ceph-luminous stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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
Setting up open-iscsi (2.0.874-3~deb9u1) ...
Job for iscsid.service failed because the control process exited with error code.
See "systemctl status iscsid.service" and "journalctl -xe" for details.
invoke-rc.d: initscript iscsid, action "restart" failed.
● iscsid.service - iSCSI initiator daemon (iscsid)
   Loaded: loaded (/lib/systemd/system/iscsid.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-12-10 23:51:16 EST; 7ms ago
     Docs: man:iscsid(8)
  Process: 58930 ExecStart=/sbin/iscsid (code=exited, status=127)
  Process: 58920 ExecStartPre=/lib/open-iscsi/startup-checks.sh (code=exited, status=0/SUCCESS)
      CPU: 4ms

Dec 10 23:51:16 pve systemd[1]: Starting iSCSI initiator daemon (iscsid)...
Dec 10 23:51:16 pve iscsid[58930]: /sbin/iscsid: error while loading shared libraries: libisns-nocrypto.so.0: cannot open shared object file: No such file or directory
Dec 10 23:51:16 pve systemd[1]: iscsid.service: Control process exited, code=exited status=127
Dec 10 23:51:16 pve systemd[1]: Failed to start iSCSI initiator daemon (iscsid).
Dec 10 23:51:16 pve systemd[1]: iscsid.service: Unit entered failed state.
Dec 10 23:51:16 pve systemd[1]: iscsid.service: Failed with result 'exit-code'.
dpkg: error processing package open-iscsi (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.15.18-30-pve
Errors were encountered while processing:
 open-iscsi
E: Sub-process /usr/bin/dpkg returned an error code (1)

Proxmox Versions:
Code:
root@pve:~# pveversion -v
proxmox-ve: 5.4-2 (running kernel: 4.15.18-30-pve)
pve-manager: 5.4-15 (running version: 5.4-15/d0ec33c6)
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: 12.2.13-pve1~bpo9
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1+deb9u1
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libpve-access-control: 5.1-12
libpve-apiclient-perl: 3.2-1
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.2.0-3
proxmox-widget-toolkit: 3.4-4
pve-cluster: 5.0-38
pve-container: 2.0-42
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 3.0-22
pve-firmware: 3.3-3
pve-ha-manager: 2.0-9
pve-i18n: 2.6-2
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 3.12.0-1
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

Sources List:
Code:
root@pve:~# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian stretch main contrib

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

deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib
 
Last edited:
Maybe you should try to upgrade from stretch+PVE5 to buster+PVE6.4 and then to bullseye+PVE7.1? Your PVE is super outdated and End of Life since july 2020. PVE 6.4 will be EOL july next year.
 
Last edited:
  • Like
Reactions: crabbymonkey
Maybe you should try to upgrade from stretch+PVE5 to buster+PVE6.4 and then to bullseye+PVE7.1? Your PVE is super outdated and End of Life since july 2020. PVE 6.4 will be EOL july next year.

Thanks for the response! I have updated my source.list to buster and I ran an apt clean && apt update && apt dist-upgrade -y and got the following error at the end about open-iscsi having issues.

Error:
Code:
Installing new version of config file /etc/apt/sources.list.d/pve-enterprise.list ...
Installing new version of config file /etc/network/if-up.d/bridgevlan ...
Removing obsolete conffile /etc/apt/apt.conf.d/75pveconf ...
Setting up proxmox-ve (6.4-1) ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for proxmox-backup-file-restore (1.1.13-2) ...
Updating file-restore initramfs...
12524 blocks
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-5.4.157-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Processing triggers for ca-certificates (20200601~deb10u2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.38.1+dfsg-1) ...
Processing triggers for pve-ha-manager (3.1-1) ...
Errors were encountered while processing:
 open-iscsi
E: Sub-process /usr/bin/dpkg returned an error code (1)

New /etc/apt/sources.list
Code:
root@pve:/etc/apt# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian buster main contrib

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

deb http://download.proxmox.com/debian/pve buster pve-no-subscription

# security updates
deb http://security.debian.org buster/updates main contrib


I tried to rerun the upgrade but got the same error as before when I tried it again

Second Attempt Error:
Code:
root@pve:/etc/apt# apt clean && apt update && apt dist-upgrade -y
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://ftp.us.debian.org/debian buster InRelease
Hit:3 http://ftp.us.debian.org/debian buster-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve buster InRelease
Hit:5 http://download.proxmox.com/debian/ceph-luminous buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libleveldb1v5 liblttng-ust-ctl2 python-pyasn1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up open-iscsi (2.0.874-7.1) ...
Job for iscsid.service failed because the control process exited with error code.
See "systemctl status iscsid.service" and "journalctl -xe" for details.
invoke-rc.d: initscript iscsid, action "restart" failed.
● iscsid.service - iSCSI initiator daemon (iscsid)
   Loaded: loaded (/lib/systemd/system/iscsid.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2021-12-11 15:30:34 EST; 6ms ago
     Docs: man:iscsid(8)
  Process: 143463 ExecStartPre=/lib/open-iscsi/startup-checks.sh (code=exited, status=0/SUCCESS)
  Process: 143473 ExecStart=/sbin/iscsid (code=exited, status=127)

Dec 11 15:30:34 pve systemd[1]: Starting iSCSI initiator daemon (iscsid)...
Dec 11 15:30:34 pve iscsid[143473]: /sbin/iscsid: error while loading shared libraries: libisns-nocrypto.so.0: cannot open shared object file: No such file or directory
Dec 11 15:30:34 pve systemd[1]: iscsid.service: Control process exited, code=exited, status=127/n/a
Dec 11 15:30:34 pve systemd[1]: iscsid.service: Failed with result 'exit-code'.
Dec 11 15:30:34 pve systemd[1]: Failed to start iSCSI initiator daemon (iscsid).
dpkg: error processing package open-iscsi (--configure):
 installed open-iscsi package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-5.4.157-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Errors were encountered while processing:
 open-iscsi
E: Sub-process /usr/bin/dpkg returned an error code (1)

Seems like there is something wrong with my open-iscsi not sure if my version is too new or too old.

New Versions:
Code:
root@pve:/etc/apt# pveversion -v
proxmox-ve: 6.4-1 (running kernel: 4.15.18-30-pve)
pve-manager: 6.4-13 (running version: 6.4-13/9f411e79)
pve-kernel-5.4: 6.4-11
pve-kernel-helper: 6.4-11
pve-kernel-5.4.157-1-pve: 5.4.157-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: 12.2.13-pve1
ceph-fuse: 12.2.13-pve1
corosync: 3.1.5-pve2~bpo10+1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.36+pve1
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2~bpo10+1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.1.0-1
libpve-access-control: 6.4-3
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 6.4-4
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-3
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.2.0-3
proxmox-backup-client: 1.1.13-2
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 3.4-4
pve-cluster: 6.4-1
pve-container: 3.3-6
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.1-4
pve-firmware: 3.3-3
pve-ha-manager: 3.1-1
pve-i18n: 2.6-2
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.6-pve1~bpo10+1
 
Update

Noticed today that my web GUI started working again at some point but my VMs and containers were failing to start and after a reboot, everything seems to have been working and using 6.4-13!

I am still getting the open-iscsi error so I am currently using this wiki post to update to 7 and see if that fixes it. Looks like the update did fix my underlying issue which I guess wasn't open-iscsi.

Thanks again Dunuin!
 

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!