[SOLVED] Problem with installing Proxmox-VE on Debian

Whatever

Active Member
Nov 19, 2012
247
8
38
Debian 9.2 (netinstall)
Followed Proxmox Wiki (https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch)

On step:
apt install proxmox-ve postfix open-iscsi

Code:
Setting up pve-manager (5.2-1) ...
Job for pvestatd.service failed because the control process exited with error code.
See "systemctl status pvestatd.service" and "journalctl -xe" for details.
pvestatd.service couldn't start.
dpkg: error processing package pve-manager (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db (2.7.6.1-2) ...
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)
Setting up pve-manager (5.2-1) ...
Job for pvestatd.service failed because the control process exited with error code.
See "systemctl status pvestatd.service" and "journalctl -xe" for details.
pvestatd.service couldn't start.
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


journalctl -xe

Code:
Jun 05 14:31:29 pve pveproxy[27034]: worker 16708 finished
Jun 05 14:31:29 pve pveproxy[27034]: starting 1 worker(s)
Jun 05 14:31:29 pve pveproxy[27034]: worker 16711 started
Jun 05 14:31:30 pve pveproxy[16710]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/
Jun 05 14:31:30 pve pveproxy[16711]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/
Jun 05 14:31:34 pve pveproxy[16709]: worker exit
Jun 05 14:31:35 pve pveproxy[16710]: worker exit
Jun 05 14:31:35 pve pveproxy[16711]: worker exit
Jun 05 14:31:35 pve pveproxy[27034]: worker 16709 finished
Jun 05 14:31:35 pve pveproxy[27034]: starting 1 worker(s)
Jun 05 14:31:35 pve pveproxy[27034]: worker 16712 started
Jun 05 14:31:35 pve pveproxy[16712]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/
Jun 05 14:31:35 pve pveproxy[27034]: worker 16710 finished
Jun 05 14:31:35 pve pveproxy[27034]: starting 1 worker(s)
Jun 05 14:31:35 pve pveproxy[27034]: worker 16711 finished
Jun 05 14:31:35 pve pveproxy[27034]: worker 16713 started
Jun 05 14:31:35 pve pveproxy[16713]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/
Jun 05 14:31:40 pve pveproxy[16712]: worker exit


Any hints how to fix it out? Thanks

P.S. The same picture with Debian 9.4 (latest)
P.S.S. Does anyone have proxmox-ve 5.0 deb package?
 
Last edited:

Whatever

Active Member
Nov 19, 2012
247
8
38
Did it twice

Code:
root@pve:~# cd /tmp/
root@pve:/tmp# wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
--2018-06-05 14:52:13--  http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg
Resolving download.proxmox.com (download.proxmox.com)... 212.224.123.70, 2a01:7e0:0:424::249
Connecting to download.proxmox.com (download.proxmox.com)|212.224.123.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1181 (1.2K) [application/octet-stream]
Saving to: ‘/etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg’

/etc/apt/trusted.gpg.d/proxmox-ve- 100%[================================================================>]   1.15K  --.-KB/s    in 0s

2018-06-05 14:52:13 (137 MB/s) - ‘/etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg’ saved [1181/1181]

root@pve:/tmp# ls /etc/apt/trusted.gpg.d/
debian-archive-jessie-automatic.gpg           debian-archive-stretch-security-automatic.gpg  proxmox-ve-release-5.x.gpg
debian-archive-jessie-security-automatic.gpg  debian-archive-stretch-stable.gpg              proxmox-ve-release-5.x.gpg.dpkg-new
debian-archive-jessie-stable.gpg              debian-archive-wheezy-automatic.gpg
debian-archive-stretch-automatic.gpg          debian-archive-wheezy-stable.gpg
root@pve:/tmp# apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up pve-manager (5.2-1) ...
Job for pvestatd.service failed because the control process exited with error code.
See "systemctl status pvestatd.service" and "journalctl -xe" for details.
pvestatd.service couldn't start.
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)
 

brahim

New Member
Jun 5, 2018
1
1
1
21
make sure that your ip can be resolved to hostname

cat /etc/hosts
127.0.0.1 localhost
10.10.10.79 PVE1

then run apt-get update
 
  • Like
Reactions: CanadaGuy

Whatever

Active Member
Nov 19, 2012
247
8
38
Done before install

Code:
root@pve:/tmp# hostname --ip-address
127.0.1.1
root@pve:/tmp# cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       pve     pve.domain.local pvelocalhost

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

Whatever

Active Member
Nov 19, 2012
247
8
38
You also need the "pvelocalhost" entry in /etc/hosts, will ask a coworker if anything else is needed here.

I followed that wiki entry multiple times and it worked for me every time.

I'm afraid it has been broken in 5.1 or 5.2
That why I'm looking for proxmox-ve 5.0 in deb
 

Whatever

Active Member
Nov 19, 2012
247
8
38
Well, I'm very surprised but your suggestion has helped.
After I changed record in host to internal IP (instead of 127.0.0.1) installation successed

Thanks a lot!
 

ezh

Member
Nov 5, 2014
39
0
6
I have exactly the same problem. But my /etc/hosts seems fine:

---------------------------------------------------------------------------
root@debian:/etc/apt/trusted.gpg.d# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 debian
192.168.1.3 proxmox pvelocalhost

following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
---------------------------------------------------------------------------

Please help...
 

ezh

Member
Nov 5, 2014
39
0
6
What do you mean? Internet is working and can login via SSH to the computer using this IP.
 

Neox

New Member
Dec 12, 2018
10
4
3
43
I have exactly the same problem. But my /etc/hosts seems fine:

---------------------------------------------------------------------------
root@debian:/etc/apt/trusted.gpg.d# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 debian
192.168.1.3 proxmox pvelocalhost

following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
---------------------------------------------------------------------------

Please help...

add same issue here,
juste have to fix this way

--------------------------
127.0.0.1 localhost
192.168.1.3 proxmox pvelocalhost
--------------------------

with proxmox being the real machine name
 

CanadaGuy

New Member
Nov 19, 2019
10
0
1
38

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!