Every once in a while, I run an update on my proxmox server and reboot.
Usually after any major update or reboot, the subscription notice banner reappears on the login screen, which can be a bit distracting. Tested on Proxmox 7.2.
Quick Removal
To get rid of the message, open a shell under the root user and type in the snippet below.
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
Breakdown
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
Additional Notes
You can quickly check if the change has been made:
grep -n -B 1 'No valid sub' proxmoxlib.js
You have three options to revert the changes:
- Manually edit proxmoxlib.js to undo the changes you made
- Restore the backup file you created from the proxmox-widget-toolkit directory:
mv proxmoxlib.js.bak proxmoxlib.js
- Reinstall the proxmox-widget-toolkit package from the repository:
apt-get install --reinstall proxmox-widget-toolkit
This guide is based from John McLaren’s blog over at https://johnscs.com.