Remove the Proxmox “No Valid Subscription” message

  • 50

Remove the Proxmox “No Valid Subscription” message

Category : How-to

Get Social!

proxmox logo gradProxmox 3.1 has implemented a new repository setup, as described in my recent blog post.

Each time you log into Proxmox 3.1 a dialogue box pops up with the message:

You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

One way to remove the message is to purchase a subscription from the Proxmox team. Remember that paying subscriptions keeps the development of Proxmox progressing. For the recent release, the subscription cost has been heavily reduced and is more affordable than ever.

The fact of the matter is, I started using Proxmox as a free and open source tool and expected it to stay that way. Had I known a subscription element would have been introduced, I would likely have chosen another toolset. As it is, I am too invested in Proxmox (time-wise) and changing to another technology is simply out of the question at this point. This brings me onto the other method; make a slight change to the code to remove the dialogue box from appearing. This is allowed under the License (aGPLv3) used for Proxmox however future updates may break your code and you may have to re-apply it or apply a different change.

You will need SSH access to the Proxmox host with the required access to edit the pvemanagerlib.js file.

First, take a backup of the file:

Then open the file using a text editor, vi for example.

Currently on line 519 of the file, however it may change with future updates, there is a line similar to below;

This line is doing the check to see if your subscription status is not ‘Active’. This needs to be changed to return false to stop the subscription message from being shown.

And that annoying little popup will be a thing of the past!

Note: You may need to clear your web browser cache after applying this code change.

I have added this code to my Proxmox patch – see this blog post for more information.


50 Comments

Martin

13-May-2016 at 2:08 pm

Hi James,

credits for your post. i’ve made another one for proxmox 4.2 and just wanted to let you know. thanks for yours!

    james.coyle

    13-May-2016 at 2:11 pm

    Hey Martin – thanks, I need to make a few updates due to the changes in Prox 4.x.

      AC

      24-Aug-2016 at 3:38 pm

      Use:

      sed -i.bak “s/data.status !== ‘Active’/false/g” /usr/share/pve-manager/ext*/pvemanagerlib.js

      To avoid future changes in the ext directory naming.

Robert

17-Jun-2016 at 12:41 pm

I’m disapointed of Proxmox VE, because it is not realy free open source.
This message on login is more like shareware or ad-ware.
I’ve just installed 4.x on my server (private use, not commercially) and now I’m looking for an alternative system. Any hints?

    Daniel Shakhmundes

    25-Aug-2016 at 11:53 pm

    How about Oracle’s VirtualBox?

Charliemopps

25-Jun-2016 at 10:09 pm

The directory has changed to:
/usr/share/pve-manager/ext6#

Bogdan Stoica

10-Feb-2017 at 6:12 am

Yesterday I have updated to Proxmox 4.4-12/e71b7a74 (that’s shown in the GUI). pvemanagerlib.js has been moved from /usr/share/pve-manager/ext6 to /usr/share/pve-manager/js. It seems that your trick is not working anymore in this version altough it looks pretty much the same as in the previous versions. Any help would be really appreciated. Thanks!

Michael

3-Mar-2017 at 3:06 pm

Under 4.4
There are two places where it is found:
The first in:”/usr/share/pve-manager/js/pvemanagerlib.js”
and the second in: “/usr/share/pve-manager/touch/pvemanager-mobile.js”

but there must be also a third place !

Marcel G

21-Mar-2017 at 12:48 pm

The old methods does no longer seem to work, but I found a workaround.
We need to tell the calling function, that we have a valid subscription, you can use this one-liner:

sed -i.bak ‘s/NotFound/Active/g’ /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service

You can leave the other files as is. This is for version 4.4-13

    Baluga

    29-Oct-2017 at 1:24 am

    Can confirm this works for Proxmox v5.0 and v5.1 as well. Don’t know if it was the web html or the keyboard, but Marcel’s original comment made the singular quotation marks –> ‘ as a special character, so I had to manually retype those parts for the command to work.

Leave a Reply