Popup nag removal - manual

Proxmox VE nag removal, manually

This is a description of a manual popup removal method. If you are looking for a reliable and safe scripted method instead, there’s a separate follow-up post on exactly that.

Important

All actions below preferably performed over direct SSH connection or console, NOT via Web GUI.

Fresh install

First, make sure you have set up the correct repositories for upgrades.

Upgrade (if you wish so) before the removal:

apt update && apt -y full-upgrade

Caution

Upgrade after removal may overwrite your modification.

Removal

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();
-		    }
 		},
 	    },
 	);
     },

Restore default component

Should anything go wrong, revert back:

apt reinstall proxmox-widget-toolkit