(source: https://johnscs.com/remove-proxmox51-subscription-notice/)

With the release of Proxmox 5.1 and newer (including 6.2) you’ll find the code related to the no subscription message that pops up on login has changed and prior instructions for removing it wont work.

To remove “You do not have a valid subscription for this server” run the command bellow. You will need to SSH to your Proxmox machine or use the node console through the PVE web interface.

If you update your Proxmox server and the update includes a new version of the file we are about to edit then you’ll need to run the command again.

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 -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

Here are alternative step by step instructions so you can understand what the above command is doing:

  1. Change to working directory
    cd /usr/share/javascript/proxmox-widget-toolkit
  2. Make backup of file
    cp proxmoxlib.js proxmoxlib.js.bak
  3. Edit the file
    nano proxmoxlib.js
  4. Locate this line of code inside the file (use ctrl+w in nano)
    if (data.status !== 'Active') {
  5. Replace it with this
    if (false) {
  6. Restart the Proxmox 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

By Stefan

Leave a Reply

Your email address will not be published. Required fields are marked *