Error pve-cluster[main] crit: Unable to get local IP address

hostingroup

New Member
Feb 7, 2012
4
0
1
Hi I have a Debian Squeeze 64 bits, I'm installing Proxmox, and I get an error:

root@fast:~# aptitude install proxmox-ve-2.6.32
Code:
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-26) ...
Starting pve cluster filesystem : pve-cluster[main] crit: Unable to get local IP address
 (warning).
invoke-rc.d: initscript pve-cluster, action "start" failed.
dpkg: error processing pve-cluster (--configure):
 subprocess installed post-installation script returned error exit status 255
configured to not write apport reports
                                      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
configured to not write apport reports
                                      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.
configured to not write apport reports
                                      configured to not write apport reports
                                                                            dpkg: error processing libpve-access-control (--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
configured to not write apport reports
                                      configured to not write apport reports
                                                                            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
configured to not write apport reports
                                      configured to not write apport reports
                                                                            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; 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
configured to not write apport reports
                                      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
configured to not write apport reports
                                      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
configured to not write apport reports
                                      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-26) ...
Starting pve cluster filesystem : pve-cluster[main] crit: Unable to get local IP address
 (warning).
invoke-rc.d: initscript pve-cluster, action "start" failed.
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; 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
root@fast:~# cat /etc/hosts
Code:
127.0.0.1       localhost
127.0.0.1       908C3.securedservers.com        908C3
#127.0.0.1       fast.hostingroup.com   fast
174.138.160.98  908C3.securedservers.com        908C3


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

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
13,673
426
83
why do you have this line? remove it.

Code:
127.0.0.1       908C3.securedservers.com        908C3
 

tincboy

Member
Apr 13, 2010
445
2
18
I had the same issue just because there was a record for IPv6 of my hostname
I've comment it out and it got fixed.
 

nfdesign

New Member
Feb 24, 2013
1
0
1
I experienced this problem after installing and configuring shorewall on my proxmox host.
Instead of commenting out the IPv6 record I have put the record above the IPv4 one, which solved the problem for me.
Seems pve-cluster just uses the last line it gets from grepping /etc/hosts for the current hostname.
 

tmikaeld

Member
Jan 21, 2013
66
0
6
I experienced this problem after installing and configuring shorewall on my proxmox host.
Instead of commenting out the IPv6 record I have put the record above the IPv4 one, which solved the problem for me.
Seems pve-cluster just uses the last line it gets from grepping /etc/hosts for the current hostname.
I tried moving the whole IPv6 section above IPv4, still the same error: Unable to get local IP address

Uncommenting seem to be the only thing that works.

Will this be fixed in the next version?
 

Flashtek

New Member
I tried moving the whole IPv6 section above IPv4, still the same error: Unable to get local IP address

Uncommenting seem to be the only thing that works.

Will this be fixed in the next version?
Personally I feel this should be fixed as a bug fix. I found this 'fix' by google, the people that were awake in #Proxmox were unable to give a defined answer about how to fix it.

Perhaps a .1 version bump is in order ?
 

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
13,673
426
83
as long as your /etc/hosts is setup in the right way I do not see the problem. here is a correct /etc/hosts from an ISO install.

Code:
root@proxmox-6-175:~# cat /etc/hostname
proxmox-6-175

root@proxmox-6-175:~# cat /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.6.175 proxmox-6-175.proxmox.com proxmox-6-175 pvelocalhost

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

root@proxmox-6-175:~#
 
  • Like
Reactions: Landver

Flashtek

New Member
as long as your /etc/hosts is setup in the right way I do not see the problem. here is a correct /etc/hosts from an ISO install.

Code:
root@proxmox-6-175:~# cat /etc/hostname
proxmox-6-175

root@proxmox-6-175:~# cat /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.6.175 proxmox-6-175.proxmox.com proxmox-6-175 pvelocalhost

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

root@proxmox-6-175:~#

Sure, but if, like me, you have a server hosted elsewhere that doesn't install from the Debian ISO but is rolled out from a template that auto populates the hosts file with both IPv4 AND IPv6 you may find yourself mighty confused.

I am sure it's not a major undertaking to make this modification...
 

DragonZX

New Member
Jun 11, 2013
5
0
1
Saint Petersburg, Russia
as long as your /etc/hosts is setup in the right way I do not see the problem. here is a correct /etc/hosts from an ISO install.

Code:
root@proxmox-6-175:~# cat /etc/hostname
proxmox-6-175

root@proxmox-6-175:~# cat /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.6.175 proxmox-6-175.proxmox.com proxmox-6-175 pvelocalhost

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

root@proxmox-6-175:~#
The same error, this solution didn't help
Original hosts file
Code:
# nameserver config
# IPv4
127.0.0.1 localhost
5.9.115.247  mydomain.ru
#
# IPv6
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
The empty hosts file also made this error.
What can I do?
 

Ilya Evseev

New Member
Jun 30, 2012
7
0
1
I had the same issue just because there was a record for IPv6 of my hostname
I've comment it out and it got fixed.
The same issue and the same workaround.

Debian 7.5 in Hetzner DC, generated by their InstallImage tool.
 

pas9x

New Member
Oct 23, 2016
2
1
3
29
Hi dudes. It is because pmxcfs cannot resolve ip-address of your host.
Go to https://github.com/proxmox/pve-cluster/blob/master/data/src/pmxcfs.c and you can see it on line 803.
Pmxcfs improperly precess hostname specified in /etc/hostname. It resolves only only first part of your hostname before the dot.
For instance, if your hostname is node7.vds.hoster.net then pmxcfs will attempt to resolve node7 ip address.
 
  • Like
Reactions: imz

imz

New Member
Dec 23, 2016
1
0
1
35
Hi dudes. It is because pmxcfs cannot resolve ip-address of your host.
Go to https://github.com/proxmox/pve-cluster/blob/master/data/src/pmxcfs.c and you can see it on line 803.
Pmxcfs improperly precess hostname specified in /etc/hostname. It resolves only only first part of your hostname before the dot.
For instance, if your hostname is node7.vds.hoster.net then pmxcfs will attempt to resolve node7 ip address.
Quite inconvenient! If they used the whole hostname, it would resolve without these troubles (thanks to libnss-mymachine, for instance).

I wonder what was the reason to break the resolving by taking just the first part...

Any plans to modify and improve this code?
 

pas9x

New Member
Oct 23, 2016
2
1
3
29
Quite inconvenient! If they used the whole hostname, it would resolve without these troubles (thanks to libnss-mymachine, for instance).
You can just put first part of your domain and ip into /etc/hosts file.

I wonder what was the reason to break the resolving by taking just the first part...

Any plans to modify and improve this code?
It's hardly. This technique used in many other parts of proxmox software. So, complex code refactoring and essential architecture changes need to fix it. I think it is basic flaw in software architecture. I doubt that developers has motivation to do it :)
 

maYer

New Member
Apr 4, 2012
16
0
1
i was writing FUD - removed it.

In the end, the debian installer created a FQDN entry in hostname 127.0.0.1 with a vagrant domain, while the chef hostname recipe created one with <LANIP> real FQDN, the point is, since the hostname was the same in both cases, but not the FQDN, pve-cluster picks up the wrong one and fails to start.

Ensure, obviously, that pve-cluster can only resolve the hostname to one, the valid FQDN using the hosts file
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!