Rebooted Proxmox And Messed Up /etc/hosts file

MapGuy11

Member
Jan 13, 2020
3
0
21
29
I rebooted the server I had up for a while and not Proxmox API won't start I believe I messed up the hosts file. I am very new to Proxmox and confused about how to fix it. Sorry! Web UI wont connect SSH works fine!
 
Hi,

the /etc/hosts should look like this.

Code:
127.0.0.1 localhost
<IP of this server> <FQDN> <host name>

It is normal if this file is not correct the Proxmox VE services can't start.
Be sure that the hostname is the same as in /etc/hostname
 
Can you send the error output or even better the logs.