Remove Subscription Notice
To remove the “You do not have a valid subscription for this server” popup message while logging in, run the command bellow. You’ll need to SSH to your Proxmox server or use the node console through the PVE web interface.
One Line Command
Run the following one line command and then clear your browser cache (depending on the browser you may need to open a new tab or restart the browser):
sed -Ezi.bak "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
Manual Steps
Here are alternative step by step instructions so you can understand what the above command is doing:
-
Change to working directory
cd /usr/share/javascript/proxmox-widget-toolkit
-
Make a backup
cp proxmoxlib.js proxmoxlib.js.bak
-
Edit the file
nano proxmoxlib.js
-
Locate the following code (Use ctrl+w in nano and search for “No valid subscription”)
Ext.Msg.show({ title: gettext('No valid subscription'),
-
Replace “Ext.Msg.show” with “void”
void({ //Ext.Msg.show({ title: gettext('No valid subscription'),
-
Restart the Proxmox web service (also be sure to clear your browser cache, depending on the browser you may need to open a new tab or restart the browser)
systemctl restart pveproxy.service
No Comments