Remove Proxmox Subscription Notice (Tested on 8.2.7)

To remove the “You do not have a valid subscription for this server” popup message while logging in, run the command bellow. You’ll need to SSH to your Proxmox server or use the node console through the PVE web interface.

  • If you have issues and need to revert changes please check the instructions at the bottom of this page.
  • When you update your Proxmox server and the update includes the proxmox-widget-toolkit package, you’ll need to complete this modification again.
  • This modification is tested up to the version shown in the title.

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 -Ezi.bak "s/(function\(orig_cmd\) \{)/\1\n\torig_cmd\(\);\n\treturn;/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

About

The function we’re editing is used to check subscription status before executing the originally requested operation and then continuing. This edit will run that operation and continue immediately without running the checks.

Manual Steps

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 a backup

cp proxmoxlib.js proxmoxlib.js.bak

3. Edit the file “proxmoxlib.js”

nano proxmoxlib.js

4. Locate the following code (Use ctrl+w in nano and search for “function(orig_cmd)”

checked_command: function(orig_cmd) {

5. Add “orig_cmd();” and “return;” just after it

checked_command: function(orig_cmd) {
   orig_cmd();
   return;

6. 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 have three options to revert the changes:

  1. Manually edit proxmoxlib.js to undo the changes you made
  2. Restore the backup file you created from the proxmox-widget-toolkit directory:
    mv proxmoxlib.js.bak proxmoxlib.js
  3. Reinstall the proxmox-widget-toolkit package from the repository:
    apt-get install --reinstall proxmox-widget-toolkit

3 thoughts on “Remove Proxmox Subscription Notice (Tested on 8.2.7)

  1. Does this also work with version 8.3.2? I’m hesitant to try it on my live environment since it hasn’t been tested there, and I don’t have a backup setup. Thank you!

      1. Hi Thijs, thank you for your reply. I have tried and I still get the popup. Checking the proxmoxlib.js and it looks like it should. I’ve restarted the services and my browser as well. The cookies were deleted too.

Leave a Reply

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