webgui won't open

GoProg

Member
Aug 20, 2019
7
0
6
43
Hi 2 all!

I have some problem with webgui.
trying to open by server ip:8006 and see the white page.

I try clear cache, other browsers and internet connection, with no result

using a IE developer tools i see:
-----
501 no such file '/PVE/StdWorkspace.js'

proxmox-ve: 5.2-2 (running kernel: 4.15.17-1-pve)
pve-manager: 5.2-1 (running version: 5.2-1/0fcd7879)

i have ssh access and all vm`s runing normaly and can access via the mobile version
 
problem soloved updating to:
proxmox-ve: 5.4-2 (running kernel: 4.15.17-1-pve)
pve-manager: 5.4-13 (running version: 5.4-13/aee6f0ec)
 
:eek: Same problem of WebGUI after the today upgrade with proxmox-widget-toolkit/stable 2.4-9: blank page :mad: and 501 no such file '/PVE/StdWorkspace.js'
proxmox-ve: 6.3-1 (running kernel: 5.4.78-2-pve)
pve-manager: 6.3-6 (running version: 6.3-6/2184247e)

The bug occurs with the new version 2.4-9 of /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js with older web browsers, while the previous version 2.4-6 is functionnal (ongoing investigation...).
 
Last edited:
The bug occurs with the new version 2.4-9 of /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js with older web browsers, while the previous version 2.4-6 is functionnal (ongoing investigation...).
what browser do you use?

did you already try to reinstall ? 'apt install --reinstall proxmox-widget-toolkit'
 
Hi.

Yes the 'apt install --reinstall proxmox-widget-toolkit' was tried before ;).

For compatibility with our disparate IT park (some admins with old OS in foreign countries), I often check with older web browsers. For instance:
- Ok with Firefox 66 but not with Firefox ESR 52.9
- Ok with last chrome 89 but not with chromium 49.

Best regards and thank you for your feedback,
YJ
 
Last edited:
yeah we do not support older browsers, since we use some modern js features
 
I confirm : the bug is caused by the spread syntax ...me.domain in the line 10466 of the javascript file "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" version 2.4-9.

I am not a javascript pro but if I am not saying anything stupid, the line
Code:
let values = { ...me.domain };
should be able to be replaced by something like
Code:
var values = Object.assign({}, me.domain);
or better still by
Code:
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
var values = _extends({}, me.domain);
and thus keep the compatibility available so far.
 
Last edited:
  • Like
Reactions: gbschenkel
Of course, same problem in the javascript file "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" version 2.5-1 with the spread syntax
Code:
...me.domain
and
Code:
...view.extraParams

For those using older browsers, you will find attached a modified version.
 

Attachments

  • Like
Reactions: gbschenkel
Thanks, this "bug" has annoyed me about some time, and today I found this thread in here after searching about StdWorkspace.js which I nail down using Chrome DevTools.
My problem is while traveling I use a ChromeBook, but it is old and I can't upgrade the OS/Browser anymore.
I am stucked with version 75.0.3770.144.
I was using my phone to bypass this problem until now. :-/
 
I found this just a Syntax change on javascript And found the follow way to fix it in the older browser.
(you need login as root and change this follow two files)

Plz note, Before you Change any file, back it up!!!
Any change for file may make the system unstable(and terrible in upgrade)

Code:
======
/usr/share/pve-manager/js/pvemanagerlib.js
======

--pvemanagerlib.js:45943
        if (values.password?.length === 0) {
            delete values.password;
        }
        if (values.username?.length === 0) {
            delete values.username;
        }
++pvemanagerlib.js:45943
        if (values.password && values.password.length === 0) {
            delete values.password;
        }
        if (values.username && values.username.length === 0) {
            delete values.username;
        }
      
--pvemanagerlib.js:5229
let fieldValue = item.data[field]?.toString().toLowerCase();
++pvemanagerlib.js:5229
let fieldValue = item.data[field] && item.data[field].toString().toLowerCase();

--pvemanagerlib.js:35125
const subscription = res?.data?.status.toLowerCase() === 'active';
++pvemanagerlib.js:35125
const subscription = res && res.data && res.data.status.toLowerCase() === 'active';

======
/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
======
--proxmoxlib.js:14646
hidden: Proxmox?.Setup?.auth_cookie_name !== 'PVEAuthCookie', // FIXME currently only PVE supports it
++proxmoxlib.js:14646
hidden: Proxmox && Proxmox.Setup && Proxmox.Setup.auth_cookie_name !== 'PVEAuthCookie', // FIXME currently only PVE supports it

==========================================
And this is the package version list
proxmox-ve: 7.0-2 (running kernel: 5.11.22-4-pve)
pve-manager: 7.0-11 (running version: 7.0-11/63d82f4e)
pve-kernel-5.11: 7.0-7
pve-kernel-helper: 7.0-7
pve-kernel-5.4: 6.4-6
pve-kernel-5.11.22-4-pve: 5.11.22-8
pve-kernel-5.4.140-1-pve: 5.4.140-1
pve-kernel-5.4.78-2-pve: 5.4.78-2
pve-kernel-5.4.73-1-pve: 5.4.73-1
ceph-fuse: 14.2.21-1
corosync: 3.1.5-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: not correctly installed
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve1
libproxmox-acme-perl: 1.3.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.0-4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-6
libpve-guest-common-perl: 4.0-2
libpve-http-server-perl: 4.0-2
libpve-storage-perl: 7.0-11
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.9-4
lxcfs: 4.0.8-pve2
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.0.9-2
proxmox-backup-file-restore: 2.0.9-2
proxmox-mini-journalreader: 1.2-1
proxmox-widget-toolkit: 3.3-6
pve-cluster: 7.0-3
pve-container: 4.0-9
pve-docs: 7.0-5
pve-edk2-firmware: 3.20200531-1
pve-firewall: 4.2-3
pve-firmware: 3.3-1
pve-ha-manager: 3.3-1
pve-i18n: 2.5-1
pve-qemu-kvm: 6.0.0-4
pve-xtermjs: 4.12.0-1
qemu-server: 7.0-13
smartmontools: 7.2-pve2
spiceterm: 3.2-2
vncterm: 1.7-1
zfsutils-linux: 2.0.5-pve1
 
Last edited:
  • Like
Reactions: R.A.W.

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!