web interface not working in Proxmox 3

naja7host

Member
May 15, 2009
78
1
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 ?
 
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
 
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?
 
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.
 
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.
 
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:
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.
 
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!
 
  • Like
Reactions: goswh
need https:// to access interface. easily missed/forgotten :/
 
Last edited:
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:
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.
 
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
 
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.
 
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.
 
An oldie but a goodie! Thanks!

I made a mistake when editing the /etc/hosts file, and wasn't able to access the WebUI.

Did some searching and found this post: https://linustechtips.com/topic/443640-proxmox-web-gui-not-working/ that let me back to the Proxmox Community forum.

Ran
Code:
cat /var/log/daemon.log
and saw this error message:

Code:
/etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm

I was able to fix the issue (replaced 127.0.1.1 <hostname> to the <actual ip> <hostname> in the /etc/hosts file. Rebooted, then ran
Code:
pvecm updatecerts.

And then I was able to access the WebUI again.