Categories
Linux Proxmox Servers

How to Remove Proxmox “No Valid Subscription” Errors

Every time you log in to Proxmox or update it, there’s an error that pops up telling you that you haven’t purchased an enterprise license key. If you are using Proxmox in an enterprise environment, I would recommend buying a license (even though it’s not required). You’ll get access to an enterprise repository that contains stable security and software updates. But if you run Proxmox non-commercially and want to remove the no subscription error messages, follow the instructions below.

1. Remove Enterprise Repositories

First, we’ll need to edit the sources list by running the following command.

nano /etc/apt/sources.list

Then add the following to the bottom of the file.

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

Next, we need to disable the enterprise repository by running the following command.

mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabled

2. Remove “No Valid Subscription” Error Message

In the web interface, every time you log in or install updates, you’ll encounter an error message saying that you don’t have a valid enterprise subscription. To remove this error message, run the following command below.

sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

Source: https://dannyda.com/2020/05/17/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-virtual-environment-6-1-2-proxmox-ve-6-1-2-pve-6-1-2/

If you have any issues like no being able to connect to the web interface, try restarting Proxmox and it should come back up.

3. Future Updates

While this will remove the error messages on your current version of Proxmox. When you update to a new version, you’ll need to run the above commands again to patch your server.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.