[SOLVED] Can't upgrade from Proxmox 5.4-15 to 6.X

Innovip

New Member
Mar 14, 2021
12
0
1
64
Hello Guys,

I try to upgrade my Proxmox server from 5.4.15 to 6.

To do that, I (try to) follow the following procedure:
https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0

However I fail...

When I do 'pvecm status', I receive:
Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?
Cannot initialize CMAP service

and indeed, /etc/pve/corosync.conf does not exists :-(

I tried, as indicated here (https://forum.proxmox.com/threads/c...t-exist-is-this-node-part-of-a-cluster.34055/) 'apt-get -s install --reinstall corosync-pve' but then I get '
--
root@s4:~# apt-get -s install --reinstall corosync-pve
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
corosync-pve : Depends: corosync (= 2.4.4-pve1) but 3.0.4-pve1~bpo9 is to be installed
E: Unable to correct problems, you have held broken packages.
--

Could someone give me some good hints regarding this ?

Just in case you need it...

root@s4:~# 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
corosync: 3.0.4-pve1~bpo9
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-12
libpve-apiclient-perl: 2.0-5
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.5-1~bpo9+2
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
proxmox-widget-toolkit: 1.0-28
pve-cluster: 5.0-38
pve-container: 2.0-42
pve-docs: 5.4-2
pve-edk2-firmware: 1.20190312-1
pve-firewall: 3.0-22
pve-firmware: 2.0-7
pve-ha-manager: 2.0-9
pve-i18n: 1.1-4
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

Thank you in advance for your support.
 
Are you using Corosync? Do you have a multiserver Proxmox cluster where this is one host?

Maybe you do not have Corosync and should not install it at all? Just proceed with the upgrade and leave corosync alone.
 
Hello Tapio,

Thank you for your fast answer :)
I have only one server. How should I proceed without Corosync ? Is there a procedure for that ?

Thank you
 
Hello,

I proceeded...but I am still on Virtual Environment 5.4-15... :-(
What can I do ? How can I proceed ? What should I check ?
 
And.. just in case... here is the result of pve5to6.

root@s4:~# pve5to6
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Checking for package updates..
PASS: all packages uptodate

Checking proxmox-ve package version..
PASS: proxmox-ve package has version >= 5.4-2

Checking running kernel version..
PASS: expected running kernel '4.15.18-30-pve'.

Checking for installed stock Debian Kernel..
PASS: Stock Debian kernel package not installed.

= CHECKING CLUSTER HEALTH/SETTINGS =

SKIP: standalone node.

= CHECKING HYPER-CONVERGED CEPH STATUS =

SKIP: no hyper-converged ceph setup detected!

= CHECKING CONFIGURED STORAGES =

PASS: storage 'local' enabled and active.
PASS: storage 'local-zfs' enabled and active.

= MISCELLANEOUS CHECKS =

INFO: Checking common daemon services..
PASS: systemd unit 'pveproxy.service' is in state 'active'
PASS: systemd unit 'pvedaemon.service' is in state 'active'
PASS: systemd unit 'pvestatd.service' is in state 'active'
INFO: Checking for running guests..
PASS: no running guest detected.
INFO: Checking if the local node's hostname 's4' is resolvable..
INFO: Checking if resolved IP is configured on local node..
PASS: Resolved node IP '192.168.255.200' configured and active on single interface.
INFO: Check node certificate's RSA key size
PASS: Certificate 'pve-root-ca.pem' passed Debian Busters security level for TLS connections (4096 >= 2048)
PASS: Certificate 'pve-ssl.pem' passed Debian Busters security level for TLS connections (2048 >= 2048)
INFO: Checking KVM nesting support, which breaks live migration for VMs using it..
PASS: KVM nested parameter not set.
INFO: Checking VMs with OVMF enabled and bad efidisk sizes...
PASS: No VMs with OVMF and problematic efidisk found.

= SUMMARY =

TOTAL: 17
PASSED: 15
SKIPPED: 2
WARNINGS: 0
FAILURES: 0
 
Hello Tapio,

I did... all the steps (from 'Actions step-by-step' to 'systemctl start pve-ha-lrm and systemctl start pve-ha-crm')
However, I see that I am still in 5.4-15 :-(

What can I do ? What should I check ? :-(
 
Have you rebooted your proxmox host?
If you have, and pveversion -v still shows old versions, the upgrade has failed. There should have been messages indicating errors if this is the case.
Try doing the upgrade again, carefully following instructions and not install corosync.

I just noticed: If you followed the upgrade instructions up to "systemctl start pve-ha-lrm", you have stopped in the middle of the upgrade. No wonder your host is not upgraded. I have already stated you should ignore the corosync parts since your host is not using corosync. So ignore corosync part of the upgrade and follow the instuctions from beginning to end.
 
Last edited:
Hello Tapio,

Yes, Proxmox rebooted. No difference.
Yes, pveversion still showing 4.15 version.

I did not see any errors during the upgrade...

Here is what I do:
systemctl stop pve-ha-lrm
systemctl stop pve-ha-crm
apt update
apt list --upgradeable -> Shows nothing to upgrade (because previously upgraded I assume)
apt dist-upgrade
pvecm status ->
-- Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?
-- Cannot initialize CMAP service

systemctl start pve-ha-lrm
systemctl start pve-ha-crm

And.. that all I have :-(
Any ideas :-( ?
 
OK.. Now I went a bit further...
I re-run 'apt dist-upgraded...

It downloaded a bunch of files and then...
---
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
---

What should I do :-( ?
 
systemctl start pve-ha-lrm
systemctl start pve-ha-crm
Why do you keep doing those commands? They are for corosync upgrade, which you should not do since you are not running corosync.
I begin to suspect you have not followed the upgrade instructions properly.
Do you have backups of your system? Do you have backups of all virtual machines on this Proxmox?

Show what you have in /etc/apt/sources.list and in files in /etc/apt/sources.list.d/*.list.

Code:
You are attempting to remove the meta-package 'proxmox-ve'!

That is explained in the upgrade instructions, in chapter "Upgrade wants to remove package 'proxmox-ve'". Did you really read the instructions from beginning to end?
 
Last edited:
Hello Tapio,

Here is what I have in my /etc/apt/sources.list:
----
root@s4:~# cat /etc/apt/sources.list
deb http://ftp.be.debian.org/debian buster main contrib

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

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

# deb http://download.proxmox.com/debian buster pve-no-subscription
root@s4:~# cat /etc/apt/sources.list
deb http://ftp.be.debian.org/debian buster main contrib

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

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

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

And in /etc/apt/sources.list.d/ I have:
---
root@s4:~# ll /etc/apt/sources.list.d/
total 10
drwxr-xr-x 2 root root 4 Mar 15 11:12 .
drwxr-xr-x 6 root root 8 Mar 15 11:10 ..
-rw-r--r-- 1 root root 71 Mar 14 10:23 pve-enterprise.list
-rw-r--r-- 1 root root 0 Mar 15 11:12 pve-install-repo.list
---
where 'pve-enterprise.list' contains only an commented line and 'pve-install-repo.list' is completely empty.

I just don't see this part (Upgrade wants to remove package 'proxmox-ve'".) in the page I am refering to :-(((

Thank you for your help.
 

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!