Remove "No Valid Subscription" Prompt

Remove “No Valid Subscription” Prompt #

Overview #

Remove the Proxmox VE web UI prompt that warns about “No valid subscription” by bypassing the client-side check.

Backup #

Create a backup before editing:

cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.bak

Edit File #

Open the file:

vi /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

Locate the Function #

Search for the checked_command function (use ? in vi, then n / Shift + N to navigate):

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

The condition displays a dialog similar to:

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

Replace With #

Replace the implementation so it directly calls the original command:

checked_command: function(orig_cmd) {
    orig_cmd();
},

Restart Service #

Restart the Proxmox VE proxy to apply changes:

systemctl restart pveproxy

Notes #

  • This is a client-side tweak and may be reverted by updates. Re-apply after upgrades if needed.
  • Consider maintaining the change via automation or overlay if you manage multiple nodes.