Every time you login into the Proxmox VE web console, you are met with the following warning.
This is bothersome, but has an easy solution.
-
Open a root shell and execute the next
cd
command.$ cd /usr/share/javascript/proxmox-widget-toolkit
-
In that
proxmox-widget-toolkit
directory there's a javascript library file calledproxmoxlib.js
. Make a backup of it.$ cp proxmoxlib.js proxmoxlib.js.orig
-
Open the
proxmoxlib.js
file with a proper text editor (vi, vim or nano). Then, in the javascript code, search for the following text.Ext.Msg.show({ title: gettext('No valid subscription'),
-
When you locate it (just search the
No valid subscription
string, its unique in the code), replaceExt.Msg.show
withvoid
, as shown below.void({ //Ext.Msg.show({ title: gettext('No valid subscription'),
-
Save the change and exit the editor, then restart the Proxmox web service.
$ systemctl restart pveproxy.service
This restart may take a few seconds.
-
Browse to the Proxmox web console, but don't forget to refresh your browser's cache (Ctrl + F5) to ensure that you load the modified javascript. Log in and the subscription warning shouldn't appear now.
If you need to undo the change explained before, you have three options to revert it:
-
Undoing manually the changes you made in the
proxmoxlib.js
file. -
Restoring the backup file you created of the file within the
proxmox-widget-toolkit
directory.$ mv proxmoxlib.js.orig proxmoxlib.js
-
Reinstall the proxmox-widget-toolkit package from the repository
$ apt-get install --reinstall proxmox-widget-toolkit
To do the change in just one (long) command line, just use the following shell command.
$ sed -Ezi.bkp "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
This fix is known to work on any version starting from Proxmox VE 5.1 up to 7.0-x. Also, bear in mind that any Proxmox VE update will undo this change and restore the warning, so you'll be force to apply this modification again.
/usr/share/javascript/proxmox-widget-toolkit
/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
<< Previous (G005. Host configuration 03) | +Table Of Contents+ | Next (G007. Host hardening 01) >>