Debian Squeeze - Fresh install of proxmox fails

  • Thread starter Thread starter streppel
  • Start date Start date
S

streppel

Guest
Hello everybody,

i've been trying to fix this problem for the last 6 hours and really don't seem to get anywhere near fixing it.
I followed the guide posted on the wiki and up until the step that is about really installing proxmox,everything is fine.

Then i get the following errors:
# aptitude install proxmox-ve-2.6.32
The following partially installed packages will be configured:
clvm fence-agents-pve libpve-access-control libpve-storage-perl proxmox-ve-2.6.32 pve-cluster pve-manager qemu-server redhat-cluster-pve resource-agents-pve vzctl
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up pve-cluster (1.0-34) ...
Starting pve cluster filesystem : pve-clustercan't parse /root/.ssh/id_rsa.pub at /usr/share/perl5/PVE/Cluster.pm line 1137.
.
can't parse /root/.ssh/id_rsa.pub at /usr/share/perl5/PVE/Cluster.pm line 1137.
dpkg: error processing pve-cluster (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of redhat-cluster-pve:
redhat-cluster-pve depends on pve-cluster; however:
Package pve-cluster is not configured yet.
dpkg: error processing redhat-cluster-pve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fence-agents-pve:
fence-agents-pve depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing fence-agents-pve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpve-access-control:
libpve-access-control depends on pve-cluster; however:
Package pve-cluster is not configured yet.
dpkg: error processing libpve-access-control (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cconfigured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
lvm:
clvm depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing clvm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpve-storage-perl:
libpve-storage-perl depends on clvm; however:
Package clvm is not configured yet.
dpkg: error processing libpve-storage-perl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu-server:
qemu-server depends on libpve-storage-perl; however:
Package libpve-storage-perl is not configured yet.
qemu-server depends on pve-cluster; however:
Package pve-cluster is not configured yet.
qemu-server depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing qemu-server (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of resource-agents-pve:
resource-agents-pve depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing resource-agents-pve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-manager:
pve-manager depends on qemu-server (>= 1.1-1); however:
Package qemu-server is not configured yet.
pve-manager depends on pve-cluster (>= 1.0-29); however:
Package pve-cluster is not configured yet.
pve-manager depends on libpve-storage-perl; however:
Package libpve-storage-perl is not configured yet.
pve-manager depends on libpve-access-control; however:
Package libpve-access-control is not configured yet.
pve-manager depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
pve-manager depends on resource-agents-pve; however:
Package resource-agents-pve is not configured yet.
pve-manager depends on fence-agents-pve; however:
Package fence-agents-pve is not configured yet.
dpkg: error processing pve-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of vzctl:
vzctl depends on pve-cluster; however:
Package pve-cluster is not configured yet.
vzctl depends on libpve-storage-perl; however:
Package libpve-storage-perl is not configured yet.
dpkg: error processing vzctl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
proxmox-ve-2.6.32 depends on pve-manager; however:
Package pve-manager is not configured yet.
proxmox-ve-2.6.32 depends on qemu-server; however:
Package qemu-server is not configured yet.
proxmox-ve-2.6.32 depends on vzctl (>= 3.0.29); however:
Package vzctl is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pve-cluster
redhat-cluster-pve
fence-agents-pve
libpve-access-control
clvm
libpve-storage-perl
qemu-server
resource-agents-pve
pve-manager
vzctl
proxmox-ve-2.6.32
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up pve-cluster (1.0-34) ...
Starting pve cluster filesystem : pve-cluster apparently already running.
can't parse /root/.ssh/id_rsa.pub at /usr/share/perl5/PVE/Cluster.pm line 1137.
dpkg: error processing pve-cluster (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of pve-manager:
pve-manager depends on pve-cluster (>= 1.0-29); however:
Package pve-cluster is not configured yet.
dpkg: error processing pve-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
proxmox-ve-2.6.32 depends on pve-manager; however:
Package pve-manager is not configured yet.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpve-access-control:
libpve-access-control depends on pve-cluster; however:
Package pve-cluster is not configured yet.
dpkg: error processing libpve-access-control (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu-server:
qemu-server depends on pve-cluster; however:
Package pve-cluster is not configured yet.
dpkg: error processing qemu-server (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of redhat-cluster-pve:
redhat-cluster-pve depends on pve-cluster; however:
Package pve-cluster is not configured yet.
dpkg: error processing redhat-cluster-pve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of vzctl:
vzctl depends on pve-cluster; however:
Package pve-cluster is not configured yet.
dpkg: error processing vzctl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of resource-agents-pve:
resource-agents-pve depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing resource-agents-pve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fence-agents-pve:
fence-agents-pve depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing fence-agents-pve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clvm:
clvm depends on redhat-cluster-pve; however:
Package redhat-cluster-pve is not configured yet.
dpkg: error processing clvm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpve-storage-perl:
libpve-storage-perl depends on clvm; however:
Package clvm is not configured yet.
dpkg: error processing libpve-storage-perl (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pve-cluster
pve-manager
proxmox-ve-2.6.32
libpve-access-control
qemu-server
redhat-cluster-pve
vzctl
resource-agents-pve
fence-agents-pve
clvm
libpve-storage-perl
#

my hostname is

and my /etc/hosts contains this:
127.0.0.1 localhost
85.214.194.186 h2134265.stratoserver.net h2134265


# The following lines are desirable for IPv6 capable hosts
#::1 localhost ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters

The Kernel is loaded correctly and i don't know what else could be wrong, so any help would be greatly appreciated

Thanks already
streppel
 
Seems we cannot parse /root/.ssh/id_rsa.pub. Please can you post the content?
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC61fvRWBSBwuuNLR4tRjaFszuSFmuO3TztXwFPTpnRfsVAthzsr4D807ExB0Yizydn3Bs9YA5tWGcjIiwpE+8mwX46mafadkrrHV5D+A4zAlX8VcO+OjcTLFZn8oG6EFOQhbOcXv8f4JaStNMi3XxfO0JKJA1mAM70vTGIBg7vbkYr/mNoib3LJ97I1LeIZWU8IkPis92IjTN4KSpMrfM76741SJ7eD3coF59ZOO+COHGYq1sJb9IdC1Qa+0ESvuNkN5polDAdn3p2AihwNpt+vHisUp7BOEfaHMsYGIPvPl6aMiiu8LarzWdWvHx/i8m5797FJck6Src8rxw2MuVb root@h2134265
*more chars*
 
What does that mean?
that a reply here on the board has to be at least 3 characters

i tryed to remove the files,so the installation automatically recreates them
Starting pve cluster filesystem : pve-cluster apparently already running.Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
54:0f:fb:6b:2a:60:43:da:9e:2d:1a:d4:a8:64:bb:25 root@h2134265
The key's randomart image is:
[...]

can't parse /root/.ssh/id_rsa.pub at /usr/share/perl5/PVE/Cluster.pm line 1137.
Starting pve cluster filesystem : pve-cluster apparently already running.
Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
54:0f:fb:6b:2a:60:43:da:9e:2d:1a:d4:a8:64:bb:25 root@h2134265
The key's randomart image is:
[...]
can't parse /root/.ssh/id_rsa.pub at /usr/share/perl5/PVE/Cluster.pm line 1137.
[...all the errors as before...]
 
I got a similar error and corrected it by doing another install but placed a static ip in /etc/hosts.

Please make sure that your hostname is resolvable via /etc/hosts, i.e you need an entry in /etc/hosts which assigns an IP address to that hostname.

vi /etc/network/interfaces
# Add the below in place of your existing eth0 configuration
# This assumes you have a single network interface on a local LAN on 192.168.0.x
# The bridge interface below should take-over the IP you were previously using on eth0
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.90
netmask 255.255.255.0
gateway 192.168.0.254
bridge_ports eth0
bridge_stp off
bridge_fd 0


Setup hosts file for pve-manager
vi /etc/hosts
# Set to your machine's actual vmbr0 interface IP from above instead of 127.0.1.1
192.168.0.90 somemachine.mynet.net somemachine pvelocalhost
 
Sorry for replying this old thread, but the error described by streppel occurred to me and this is the only thread in the whole internet for this error. After debugging Proxmox a bit I found a solution and two (!) bugs in Proxmox.

The file, which can't be parsed is /etc/ssh/ssh_host_rsa_key.pub and not /root/.ssh/id_rsa.pub. (The error message is wrong - that's the first bug).
And on Strato Roots Servers with Debian 7.0 it can't be parsed because the file /etc/ssh/ssh_host_rsa_key.pub has two empty lines after the key (that's the second bug - the regex in line 1141 in Cluster.pm can't handle this empty lines).

I hope, I could help somebody, who has the same problem :)

//edit: I created a bug report for this: https://bugzilla.proxmox.com/show_bug.cgi?id=635
 
Last edited:
With the last update I got a lot of errors, why in /etc/ssh/ssh_host_rsa_key.pub is a commented line (#) - This is a bug too, why an entry must been commentable!

Error-Messages:

Restarting pve cluster filesystem: pve-cluster.
can't parse /etc/ssh/ssh_host_rsa_key.pub at /usr/share/perl5/PVE/Cluster.pm line 1144.
dpkg: Fehler beim Bearbeiten von pve-cluster (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 255 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von qemu-server:
qemu-server hängt ab von pve-cluster; aber:
Paket pve-cluster ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten von qemu-server (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von pve-manager:
pve-manager hängt ab von qemu-server (>= 1.1-1); aber:
Paket qemu-server ist noch nicht konfiguriert.
pve-manager hängt ab von pve-cluster (>= 1.0-29); aber:
Paket pve-cluster ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten von pve-manager (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
xsltproc (1.1.26-14.1+deb7u1) wird eingerichtet ...
Fehler traten auf beim Bearbeiten von:
pve-cluster
qemu-server
pve-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pm4-host:/etc$

Example in /etc/ssh/ssh_host_rsa_key.pub

#ssh-rsa AAAAB ...............

with uncomment line and then the Update runs and later recomment the line is function perfect, but a workarround
 
Last edited:
that file is actually supposed to contain only one public key and nothing else. pve-cluster ensures that the host key is registered as known host on all nodes - otherwise connecting via SSH would fail.
 
I cant understand, when in the file ssh_host_rsa_key.pub is a backdoor inside from the server hosting center and this is remarked, why the update now fails! Never before this was a problem! Why the update-process need a connection reverse to the same host? I see here in this pub key the info: root@rescue.ovh.net
 
this code has been in place for quite a while. like I said, the host key file should contain exactly one host key. it does not make sense to have a second host key inside the file that is commented out - that is a very broken setup..
 

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!