web gui stoped working

branko

New Member
Aug 14, 2014
3
0
1
Hello,

We have installed a fresh 3.2 version on server few days ago. We have restored VMs from backup and everything work fine for couple of days.
Web GUI worked fine but after hiting Ctrl-F5 (refresh) in browser everything broke down. Blank page. Can't access from any computer and browser.
access.log
Code:
10.11.126.18 - - [14/Aug/2014:14:37:03 +0200] "GET / HTTP/1.1" 200 545
10.11.126.18 - - [14/Aug/2014:14:37:03 +0200] "GET /pve2/ext4/resources/css/ext-all.css HTTP/1.1" 501 -
10.11.126.18 - - [14/Aug/2014:14:37:03 +0200] "GET /pve2/ext4/pvemanagerlib.js HTTP/1.1" 501 -
10.11.126.18 - - [14/Aug/2014:14:37:04 +0200] "GET /pve2/css/ext-pve.css HTTP/1.1" 501 -
10.11.126.18 - - [14/Aug/2014:14:37:04 +0200] "GET /pve2/ext4/ext-all-debug.js HTTP/1.1" 501 -
10.11.126.18 - - [14/Aug/2014:14:37:04 +0200] "GET /pve2/ext4/ext-all-debug.js HTTP/1.1" 501 -
10.11.126.18 - - [14/Aug/2014:14:37:04 +0200] "GET /pve2/ext4/pvemanagerlib.js HTTP/1.1" 501 -
10.11.126.18 - - [14/Aug/2014:14:37:04 +0200] "GET /favicon.ico HTTP/1.1" 501 -

Here is page source code:
Code:
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=10">
    <title>Proxmox Virtual Environment</title>
 
    <link rel="stylesheet" type="text/css" href="[URL="http://forum.proxmox.com/view-source:https://10.11.126.56:8006/pve2/ext4/resources/css/ext-all.css"]/pve2/ext4/resources/css/ext-all.css[/URL]" />
    <link rel="stylesheet" type="text/css" href="[URL="http://forum.proxmox.com/view-source:https://10.11.126.56:8006/pve2/css/ext-pve.css"]/pve2/css/ext-pve.css[/URL]" />

    <script type="text/javascript">function gettext(buf) { return buf; }</script>
    <script type="text/javascript" src="[URL="http://forum.proxmox.com/view-source:https://10.11.126.56:8006/pve2/ext4/ext-all-debug.js"]/pve2/ext4/ext-all-debug.js[/URL]"></script>
    <script type="text/javascript" src="[URL="http://forum.proxmox.com/view-source:https://10.11.126.56:8006/pve2/ext4/pvemanagerlib.js"]/pve2/ext4/pvemanagerlib.js[/URL]"></script>
    <script type="text/javascript">if (!PVE) PVE = {};
PVE.UserName = '';
PVE.CSRFPreventionToken = 'null';

// we need this (the java applet ignores the zindex)
Ext.useShims = true;

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>

Also, we can't execute pveversion -v, vzdump... commands
Code:
-bash: pveversion: command not found
-bash: /usr/sbin/vzdump: No such file or directory

Code:
Linux proxmox1 2.6.32-29-pve #1 SMP Thu Apr 24 10:03:02 CEST 2014 x86_64 GNU/Linux

VMs still working and we have SSH access.
Any idea how to fix this?
 
What is the output of

# pveversion -v
We can't execute command pveversion -v

-bash: pveversion: command not found

Finally we have found what couse the problem. We have tried to uninstall SNMP, and didn't notice that this action will remove some core components (fence-agents-pve proxmox-ve-2.6.32 pve-manager snmp).
Code:
root@proxmoxtest:~# apt-get remove snmp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  fence-agents-pve proxmox-ve-2.6.32 pve-manager snmp
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 2,189 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 30441 files and directories currently installed.)
Removing proxmox-ve-2.6.32 ...
Removing pve-manager ...
Removing fence-agents-pve ...
dpkg: warning: while removing fence-agents-pve, directory '/usr/share/fence' not empty so not removed
Removing snmp ...
Processing triggers for man-db ...

Our new question is how to revert this in safe way. This is our plan:


To added to file /etc/apt/sources.list pve-no-subscription repository:
Code:
deb http://ftp.debian.org/debian wheezy main contrib

# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian wheezy pve-no-subscription

# security updates
deb http://security.debian.org/ wheezy/updates main contrib
Then to instal proxmox-ve-2.6.32
Code:
apt-get install proxmox-ve-2.6.32


Then to remove pve-no-subscription repository from /etc/apt/sources.list and apt-get update and apt-get dist-upgrade

Are we on right path?