How to Fix “Login to Proxmox Host Failed” Error?
Have you ever confronted with the message “Login to Proxmox Host Failed”? Are you looking for a solution?
When a user directly accesses the Proxmox VE management console or while integrating the third party modules such as WHMCS into the Proxmox server or during cluster management of Promox nodes, the “Login to Proxmox Host Failed” gets displayed. After getting this error message, Most of the time the users get confused.
For a while, we have been addressing the server related issues in our blogs. This time, the blog provides everything you should need to know to fix the “login to Promox Host Failed” error.
Failure through SSL Problems
The URL, https://IPaddress:8006/ is the default web address to access the Proxmox VE management console. The console will not load if you try to access it without the secure protocol. The expired SSL certificate and the bugs are capable of denying the access to Proxmox. So first confirm whether the certificates are working fine and not expired. If it is fine, then execute this command in the Proxmox machine:
pvecm updatecerts –force
All the issues pertaining to SSL certificate can be solved using this command.
Login Failures Caused By Firewall Rules
The “Login to Proxmox Host Failed” error can be caused by firewall rules in Proxmox. Since the firewall rules are crucial for server security, instead of avoiding it, we need to configure the rules correctly and is vital for effective server functioning. Web interface at port 8006, pvedaemon, SPICE proxy at port 3128, rpcbind at port 111 and sshd at port 22 are the ports used by Proxmox VE 4.x.
If you use firewalls such as iptables , it leads to proper functioning of the Proxmox Server. For this the firewall rules have to be added in the Proxmox server for the corresponding ports.
iptables – I INPUT -p tcp – -dport 8006 -j ACCEPT
iptables – I INPUT -p tcp – -dport 5900 -j ACCEPT
iptables – I INPUT -p tcp – -dport 3128 -j ACCEPT
Add a rule to accept loop-back interface connection for proper internal communication in the Proxmox server.
iptables -I INPUT -i lo – j ACCEPT
iptables -I OUTPUT -o lo – j ACCEPT
It is important to ensure the status of the connectivity (proper or not) between the two servers in the case of the third party modules such as Modulegarden, WHMCS, etc. Since the login problem can occur due to connectivity problems, try to use the telnet command. Of course, you can flush the firewalls in order to avoid connectivity problems but it is not advisable due to the security issues. So you need to deny everything else in order to allow the required connections.
Problems in login due to incorrect server time
Most of the servers rely on NTP service for updating the server time zone. Due to connectivity errors or other service related errors, the NTP server sometimes fails to sync the server time. The issues with server time are not only caused by NTP service but also due to the difference in time zone. The lack of clock synchronization leads to incorrect server time and which leads to the login failures. So for the smooth functioning of the server, proper clock synchronization is crucial. So always remember to keep your server time updated which helps to avoid log in errors.
Use the password of Proxmox shell which is defined during the proxmox installation to access the Proxmox VE management. Always use a strong password for the server protection but not complicated ones with a lot of special characters. It can cause severe login issues. Another reason for password issue is the bugs in Proxmox authentication module which is used to validate the login details. If all these fail, go for resetting the node password with simple words and try to log in.
Unlike other server errors or issues, The “Login to Proxmox Host Failed” occurs due to reasons which are completely interdependent. So it is difficult to understand the root cause of such errors. The reasons range from the expired SSL certificate, issues with firewalls, incorrect server time and password issues. So this blog helps you to understand the most common causes for The “Login to Proxmox Host Failed” error. The issue should be analyzed with prior study and care. If you have identified the wrong cause, the solution which you implemented may even affect the server operations itself.