Proxmox 4.4 update issues

Compizfox

Member
Apr 15, 2017
11
0
21
28
Hi,

In preparation for a upgrade to Proxmox VE 5, I wanted to update my packages to the latest version. However, on a apt-get dist-upgrade I was greeted by this error:

Code:
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  corosync-pve dmeventd dmsetup libcorosync4-pve libdevmapper-event1.02.1 liblvm2cmd2.02 lvm2
0 upgraded, 0 newly installed, 0 to remove and 7 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
Setting up pve-manager (5.0-23) ...
Job for pvedaemon.service failed. See 'systemctl status pvedaemon.service' and 'journalctl -xn' for details.
dpkg: error processing package pve-manager (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on pve-manager; however:
  Package pve-manager is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pve-manager
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

systemctl status pvedaemon.service shows this:
Code:
Jul 04 21:30:21 ethanol systemd[1]: Reloading PVE API Daemon.
Jul 04 21:30:21 ethanol pvedaemon[25122]: unknown file 'replication.cfg' at /usr/share/perl5/PVE/Cluster.pm line 765, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/AbstractConfig.pm line 11, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/AbstractConfig.pm line 11, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/QemuConfig.pm line 6, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/QemuConfig.pm line 6, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/HA/Resources/PVEVM.pm line 10, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/HA/Resources/PVEVM.pm line 17, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/HA/Env/PVE2.pm line 20, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/HA/Env/PVE2.pm line 20, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/VZDump.pm line 19, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump.pm line 19, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/API2/Backup.pm line 15, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/Backup.pm line 15, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/API2/Cluster.pm line 15, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/Cluster.pm line 15, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 13, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 13, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: Compilation failed in require at /usr/bin/pvedaemon line 11, <DATA> line 751.
Jul 04 21:30:21 ethanol pvedaemon[25122]: BEGIN failed--compilation aborted at /usr/bin/pvedaemon line 11, <DATA> line 751.
Jul 04 21:30:21 ethanol systemd[1]: pvedaemon.service: control process exited, code=exited status=255
Jul 04 21:30:21 ethanol systemd[1]: Reload failed for PVE API Daemon.

While Googleing for this error I found some stuff about using dist-upgrade and never upgrade, but I did use dist-upgrade, so that's not it. Any ideas?
 
Thanks for your reply.

Yes, I forgot to mention, but I did, of course :)

BTW, I use the community (no-subscription) repository.
 
your log shows that already have 5.0 packages (...Setting up pve-manager (5.0-23)).

so it looks like you have a mix in your sources.list? I mean stretch and jessie.

pls check, e.g. analyse the full output of:

> apt update
 
That was it! When I added the PVE no-subscription repository, I copy-pasted the line from the docs and didn't notice that it said stretch already.

What would be the easiest way to resolve this? Should I just try to upgrade to Stretch directly from this state? I tried fixing the error in my sources.list (replacing stretch with jessie) but apt doesn't seem to be willing to downgrade the installed 5.0 packages so easily.
 
Without knowing you current installation in detail, its impossible to advice.

If you have backups from your data, I suggest to try to follow the upgrade docs to 5.0 - downgrading could be hard/impossible.
 

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!