Broke my host file, web interface not working

f313

New Member
Aug 4, 2022
9
1
3
Hello,

I did some rushed changes to my hosts file where I (iirc) deleted the old entries for my non-existent cluster. The cluster was deleted.
Now I can't access my web interface anymore.

My hosts file looks like this atm:

Code:
GNU nano 5.4                                        /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.0.0.20 viridium.fritz.box viridium


# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Tried restarting pveproxy, pvestatd and pvedaemon to no success.

Thanks in advance for any help!

Edit:
The error shown in the web interface:
Code:
Error ipcc_send_rec[13] failed: Channel number out of range (500)
 
Last edited:
Hello,

Can you please open journalctl -f on your PVE shell, and try to access the web UI and see if there is another error?

Can you also try to update the certificates by issuing the below command on the Proxmox VE server?
Bash:
pvecm updatecert -f
 
Hello,

thanks for your reply.
I've done both,

pvecm updatecert -f
Generated new node certificate, but did not fix anything.

journalctl -f does not show any errors when logging into the web UI.
Even when browsing sites where the error from my first post shows up everything looks normal, no errors or any suspicious.
 
Hi,

What says the status of the following services?

Bash:
systemctl status pvedaemon.service
systemctl status pveproxy.service

Can you please post the output of the following commands as well?
Bash:
uname -n
hostname -f
ping -c 3 $(uname -n)
 
Hello,

both services are active / running.
Result of the command you posted:
Code:
root@viridium:~# ping -c 3 $(uname -n)
PING viridium.fritz.box (10.0.0.20) 56(84) bytes of data.
64 bytes from viridium.fritz.box (10.0.0.20): icmp_seq=1 ttl=64 time=0.020 ms
64 bytes from viridium.fritz.box (10.0.0.20): icmp_seq=2 ttl=64 time=0.023 ms
64 bytes from viridium.fritz.box (10.0.0.20): icmp_seq=3 ttl=64 time=0.031 ms

--- viridium.fritz.box ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2053ms
rtt min/avg/max/mdev = 0.020/0.024/0.031/0.004 ms
 
/etc/hostname
Code:
viridium

Code:
root@viridium:~# hostnamectl
   Static hostname: viridium
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: e546ea39060a4cea90e8f9bdc1bcfd75
           Boot ID: 727b5325a29c469997431a108abcafff
  Operating System: Debian GNU/Linux 11 (bullseye)
            Kernel: Linux 5.15.39-2-pve
      Architecture: x86-64

ip -a seems to be missing something

Code:
root@viridium:~# curl -ks https://localhost:8006
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>viridium - Proxmox Virtual Environment</title>
    <link rel="icon" sizes="128x128" href="/pve2/images/logo-128.png" />
    <link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
    <link rel="stylesheet" type="text/css" href="/pve2/ext6/theme-crisp/resources/theme-crisp-all.css?ver=7.0.0" />
    <link rel="stylesheet" type="text/css" href="/pve2/ext6/crisp/resources/charts-all.css?ver=7.0.0" />
    <link rel="stylesheet" type="text/css" href="/pve2/fa/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pve.css?ver=7.3-3" />
    <link rel="stylesheet" type="text/css" href="/pwt/css/ext6-pmx.css?ver=3.5.3" />

    <script type='text/javascript'>function gettext(buf) { return buf; }</script>

    <script type="text/javascript" src="/pve2/ext6/ext-all.js?ver=7.0.0"></script>
    <script type="text/javascript" src="/pve2/ext6/charts.js?ver=7.0.0"></script>

    <script type="text/javascript" src="/pve2/js/u2f-api.js"></script>
    <script type="text/javascript" src="/qrcode.min.js"></script>
    <script type="text/javascript">
    Proxmox = {
        Setup: { auth_cookie_name: 'PVEAuthCookie' },
        defaultLang: 'en',
        NodeName: 'viridium',
        UserName: '',
        CSRFPreventionToken: 'null'
    };
    </script>
    <script type="text/javascript" src="/proxmoxlib.js?ver=3.5.3"></script>
    <script type="text/javascript" src="/pve2/js/pvemanagerlib.js?ver=7.3-3"></script>
    <script type="text/javascript" src="/pve2/ext6/locale/locale-en.js?ver=7.0.0"></script>

    <script type="text/javascript">
    if (typeof(PVE) === 'undefined') PVE = {};
    Ext.History.fieldid = 'x-history-field';
    Ext.onReady(function() { Ext.create('PVE.StdWorkspace');});
    </script>

  </head>
  <body>
    <!-- Fields required for history management -->
    <form id="history-form" class="x-hidden">
    <input type="hidden" id="x-history-field"/>
    </form>
  </body>
</html>

Code:
root@viridium:~# curl -ks https://10.0.0.20:8006
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>viridium - Proxmox Virtual Environment</title>
    <link rel="icon" sizes="128x128" href="/pve2/images/logo-128.png" />
    <link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
    <link rel="stylesheet" type="text/css" href="/pve2/ext6/theme-crisp/resources/theme-crisp-all.css?ver=7.0.0" />
    <link rel="stylesheet" type="text/css" href="/pve2/ext6/crisp/resources/charts-all.css?ver=7.0.0" />
    <link rel="stylesheet" type="text/css" href="/pve2/fa/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pve.css?ver=7.3-3" />
    <link rel="stylesheet" type="text/css" href="/pwt/css/ext6-pmx.css?ver=3.5.3" />

    <script type='text/javascript'>function gettext(buf) { return buf; }</script>

    <script type="text/javascript" src="/pve2/ext6/ext-all.js?ver=7.0.0"></script>
    <script type="text/javascript" src="/pve2/ext6/charts.js?ver=7.0.0"></script>

    <script type="text/javascript" src="/pve2/js/u2f-api.js"></script>
    <script type="text/javascript" src="/qrcode.min.js"></script>
    <script type="text/javascript">
    Proxmox = {
        Setup: { auth_cookie_name: 'PVEAuthCookie' },
        defaultLang: 'en',
        NodeName: 'viridium',
        UserName: '',
        CSRFPreventionToken: 'null'
    };
    </script>
    <script type="text/javascript" src="/proxmoxlib.js?ver=3.5.3"></script>
    <script type="text/javascript" src="/pve2/js/pvemanagerlib.js?ver=7.3-3"></script>
    <script type="text/javascript" src="/pve2/ext6/locale/locale-en.js?ver=7.0.0"></script>

    <script type="text/javascript">
    if (typeof(PVE) === 'undefined') PVE = {};
    Ext.History.fieldid = 'x-history-field';
    Ext.onReady(function() { Ext.create('PVE.StdWorkspace');});
    </script>

  </head>
  <body>
    <!-- Fields required for history management -->
    <form id="history-form" class="x-hidden">
    <input type="hidden" id="x-history-field"/>
    </form>
  </body>
</html>

Code:
root@viridium:~# curl -ks https://viridium:8006
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>viridium - Proxmox Virtual Environment</title>
    <link rel="icon" sizes="128x128" href="/pve2/images/logo-128.png" />
    <link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
    <link rel="stylesheet" type="text/css" href="/pve2/ext6/theme-crisp/resources/theme-crisp-all.css?ver=7.0.0" />
    <link rel="stylesheet" type="text/css" href="/pve2/ext6/crisp/resources/charts-all.css?ver=7.0.0" />
    <link rel="stylesheet" type="text/css" href="/pve2/fa/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pve.css?ver=7.3-3" />
    <link rel="stylesheet" type="text/css" href="/pwt/css/ext6-pmx.css?ver=3.5.3" />

    <script type='text/javascript'>function gettext(buf) { return buf; }</script>

    <script type="text/javascript" src="/pve2/ext6/ext-all.js?ver=7.0.0"></script>
    <script type="text/javascript" src="/pve2/ext6/charts.js?ver=7.0.0"></script>

    <script type="text/javascript" src="/pve2/js/u2f-api.js"></script>
    <script type="text/javascript" src="/qrcode.min.js"></script>
    <script type="text/javascript">
    Proxmox = {
        Setup: { auth_cookie_name: 'PVEAuthCookie' },
        defaultLang: 'en',
        NodeName: 'viridium',
        UserName: '',
        CSRFPreventionToken: 'null'
    };
    </script>
    <script type="text/javascript" src="/proxmoxlib.js?ver=3.5.3"></script>
    <script type="text/javascript" src="/pve2/js/pvemanagerlib.js?ver=7.3-3"></script>
    <script type="text/javascript" src="/pve2/ext6/locale/locale-en.js?ver=7.0.0"></script>

    <script type="text/javascript">
    if (typeof(PVE) === 'undefined') PVE = {};
    Ext.History.fieldid = 'x-history-field';
    Ext.onReady(function() { Ext.create('PVE.StdWorkspace');});
    </script>

  </head>
  <body>
    <!-- Fields required for history management -->
    <form id="history-form" class="x-hidden">
    <input type="hidden" id="x-history-field"/>
    </form>
  </body>
</html>

Hosts file has not changed since the first post.
Just to be clear, I can reach the web gui but no nodes are shown:

1671468097099.png
 
deleted the old entries for my non-existent cluster. The cluster was deleted.
Perhaps you need to expand then on what exactly you mean by this ^^^. What does "non-existing cluster" mean? You had a cluster and now its just one node?
no nodes are shown:
this implies there is still more than one node in your setup? So what "cluster was deleted"? Which would mean that you have to properly adjust all nodes in cluster. Not just hosts related files, but also corosync and such.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
Yes, I would say so.
Back to single node from cluster isn't smooth and I don't know all the knobs.

Also you can then be sure to have a clear, fresh start.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!