web interface not working in Proxmox 3

naja7host

Member
May 15, 2009
78
0
6
i cannot access the Web interface for my proxmox 3 with the url

https://myserver.com:8006/

in the log i have

Code:
root@xxxxx:~# tail /var/log/daemon.log
Jun 12 23:49:40 xxxxx pveproxy[210723]: worker 432527 started
Jun 12 23:49:40 xxxxx pveproxy[432527]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/HTTPServer.pm line 1125
Jun 12 23:49:40 xxxxx pveproxy[210723]: worker 431838 finished
Jun 12 23:49:40 xxxxx pveproxy[210723]: starting 1 worker(s)
Jun 12 23:49:40 xxxxx pveproxy[210723]: worker 432548 started
Jun 12 23:49:40 xxxxx pveproxy[432548]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/HTTPServer.pm line 1125
Jun 12 23:49:41 xxxxx pveproxy[210723]: worker 431849 finished
Jun 12 23:49:41 xxxxx pveproxy[210723]: starting 1 worker(s)
Jun 12 23:49:41 xxxxx pveproxy[210723]: worker 432564 started
Jun 12 23:49:41 xxxxx pveproxy[432564]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/HTTPServer.pm line 1125

Code:
root@xxxxx:~# pveproxy --debug
unable to create socket - IO::Socket::INET: Address already in use

i have rebooted the server with no success .

any suggestion ?
 

sdutremble

Member
Sep 29, 2011
85
0
6
i cannot access the Web interface for my proxmox 3 with the url

https://myserver.com:8006/

in the log i have

Code:
root@xxxxx:~# tail /var/log/daemon.log
Jun 12 23:49:40 xxxxx pveproxy[210723]: worker 432527 started
Jun 12 23:49:40 xxxxx pveproxy[432527]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/HTTPServer.pm line 1125
Jun 12 23:49:40 xxxxx pveproxy[210723]: worker 431838 finished
Jun 12 23:49:40 xxxxx pveproxy[210723]: starting 1 worker(s)
Jun 12 23:49:40 xxxxx pveproxy[210723]: worker 432548 started
Jun 12 23:49:40 xxxxx pveproxy[432548]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/HTTPServer.pm line 1125
Jun 12 23:49:41 xxxxx pveproxy[210723]: worker 431849 finished
Jun 12 23:49:41 xxxxx pveproxy[210723]: starting 1 worker(s)
Jun 12 23:49:41 xxxxx pveproxy[210723]: worker 432564 started
Jun 12 23:49:41 xxxxx pveproxy[432564]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/HTTPServer.pm line 1125

Code:
root@xxxxx:~# pveproxy --debug
unable to create socket - IO::Socket::INET: Address already in use

i have rebooted the server with no success .

any suggestion ?
Remove the apache package. It is no longer needed.

Serge
 

Mantas

New Member
Jun 11, 2013
3
0
1
And what is the output of:

# ls -l /etc/pve/local/pve-ssl.key

We also experiencing the same issue

output:
cannot access /etc/pve/local/pve-ssl.key: No such file or directory


pve-ssl.key as well as pve-ssl.pem are missing.

Trying to create certificate. Got:
writing new private key to 'key.pem'key.pem: Permission denied

because permissions on directory: dr-xr-x--- 2 root www-data

any ideas what is the best way to solve this?
 

Mantas

New Member
Jun 11, 2013
3
0
1
Does it help if you restart pve-cluster service:

# service pve-cluster restart

Yes, it helped to make folders editable(actually I rebooted whole server), so I created certificate and now I'm good.
But this issue (no certificate files) happens every time we install new versions (3.0) of proxmox

M.
 

Mohamed Haisham

New Member
Jul 1, 2013
1
1
1
Kuala Selangor, Malaysia
I ran into this problem a lot on several occasions.
ie issues with (/etc/pve/local/pve-ssl.key)

How to fix is.. i only tried this with new installs.

make sure ip can be resolved to hostname

That is ensure that
listed hostname in /etc/hostname is listed in /etc/hosts with ipaddress

then run pvecm updatecerts to regenerate certificates.

hope this helps anyone who runs into this problem.
 
  • Like
Reactions: Mr. Wolf

RobFantini

Renowned Member
May 24, 2012
1,720
44
68
Boston,Mass
On a new install we ran into the same issue.

Mohamed's suggestion to run pvecm updatecerts fixed the issue. [ Thank you Mohamed! ].

/etc/hostname and /etc/hosts/ were OK.

I used the same CD to install PVE on 2 other systems and did not have this issue.

One thing was different on this install - the system did not have network access. the system has 3 nics and I had only the 2 on the motherboard attached to the switch. It turned out that eth0 was the 3-rd nic.

So it might be possible to reproduce the missing /etc/pve/local/pve-ssl.key issue by trying to install without network access.
 
Last edited:

KingLEV

New Member
Jun 13, 2013
10
0
1
Russia, Novosibirsk
Does it help if you restart pve-cluster service:

# service pve-cluster restart
My problem:

# pveproxy --debug
unable to create socket - IO::Socket::INET: Address already in use

ls -l /etc/pve/local/pve-ssl.key
-rw-r----- 1 root www-data 1679 Jun 19 13:37 /etc/pve/local/pve-ssl.key

# ./pve-cluster restart
Restarting pve cluster filesystem: pve-cluster[main] crit: unable to create lock '/var/lib/pve-cluster/.pmxcfs.lockfile': Read-only file system
[main] notice: exit proxmox configuration filesystem (-1)
(warning).

My VM's continue working, but I can't control from web intreface. Help, please.
 

jarcher

Member
Mar 15, 2009
53
0
6
I ran into this problem a lot on several occasions.
ie issues with (/etc/pve/local/pve-ssl.key)

How to fix is.. i only tried this with new installs.

make sure ip can be resolved to hostname

That is ensure that
listed hostname in /etc/hostname is listed in /etc/hosts with ipaddress

then run pvecm updatecerts to regenerate certificates.

hope this helps anyone who runs into this problem.
Thanks very much, it helped me!
 

mathx

Active Member
Jan 15, 2014
124
1
38
need https:// to access interface. easily missed/forgotten :/
 
Last edited:

Baatezu

New Member
Sep 20, 2014
1
0
1
Hello!
Cannot connect to web
Proxmox 3.3 fresh install and last update

Syslog
Code:
proxmox1 pveproxy[9855]: problem with client ***.***.**.**; rsa_padding_check_pkcs1_type_1: block type is not 01
proxmox1 pveproxy[9855]: WARNING: Can't call method "timeout_reset" on an undefined value at /usr/share/perl5/PVE/HTTPServer.pm line 225.
Code:
pveproxy --debug
unable to create socket - IO::Socket::INET: Address already in use
Apache not installed

without cluster web is working

plz help me :)


FIX IT

Solved: Clear cache
 
Last edited:

Posi

New Member
Oct 16, 2016
5
0
1
52
Try IE to connect. I think is a SSL thing. Using a browser that old works for me. Not I need to fix my cert.
 

k1lerbee

Member
Jan 9, 2018
27
1
8
35
I ran into this problem a lot on several occasions.
ie issues with (/etc/pve/local/pve-ssl.key)

How to fix is.. i only tried this with new installs.

make sure ip can be resolved to hostname

That is ensure that
listed hostname in /etc/hostname is listed in /etc/hosts with ipaddress

then run pvecm updatecerts to regenerate certificates.

hope this helps anyone who runs into this problem.
When I run pvecm updatecerts
I get:
pve configuration filesystem not mounted
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
2,691
417
103
South Tyrol/Italy
shop.maurer-it.com
When I run pvecm updatecerts
I get:
pve configuration filesystem not mounted
Can you try to start it, which then mounts it:
Code:
# PVE 3.X
service pve-cluster start
# PVE 4 and newer
systemctl start pve-cluster
If you are in a cluster you may do the same for corosync.
 

danbaker

New Member
Nov 4, 2019
1
0
1
36
For anyone else who's being an idiot like me, this also happens if you change your hostname via /etc/hostname but forget to change the corresponding entry in /etc/hosts. The docs do clearly tell you to do both, so just putting this here for anyone else like me who didn't read that step properly.
 

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!