TL;DR Brief look at what exactly brings up the dreaded notice regarding no valid subscription. Eliminate bad UX that no user of free software should need to endure.
ORIGINAL POST Proxmox VE nag removal, manually
This is a rudimentary description of a manual popup removal method which Proxmox stubbornly keep censoring. ^
TIP You might instead prefer a reliable and safe scripted method of the “nag” removal.
First, make sure you have set up the correct repositories for upgrades.
IMPORTANT All actions below preferably performed over direct SSH connection or console, NOT via Web GUI.
Upgrade (if you wish so) before the removal:
apt update && apt -y full-upgrade
CAUTION Upgrade after removal may overwrite your modification.
Make a copy of the offending JavaScript piece:
cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js{,.bak}
Edit in place around above line 600 and remove the marked lines:
--- proxmoxlib.js.bak +++ proxmoxlib.js checked_command: function(orig_cmd) { Proxmox.Utils.API2Request( { url: '/nodes/localhost/subscription', method: 'GET', failure: function(response, opts) { Ext.Msg.alert(gettext('Error'), response.htmlStatus); }, success: function(response, opts) { - let res = response.result; - if (res === null || res === undefined || !res || res - .data.status.toLowerCase() !== 'active') { - Ext.Msg.show({ - title: gettext('No valid subscription'), - icon: Ext.Msg.WARNING, - message: Proxmox.Utils.getNoSubKeyHtml(res.data.url), - buttons: Ext.Msg.OK, - callback: function(btn) { - if (btn !== 'ok') { - return; - } - orig_cmd(); - }, - }); - } else { orig_cmd(); - } }, }, ); },
Should anything go wrong, revert back:
apt reinstall proxmox-widget-toolkit