Last Updated on 25 January, 2021
Note: It’s always good and essential to support the developer team who made the software for us, for pricing refer to their official website Support Subscriptions, without the team, we won’t have this great piece of software.
The Issue
When login to Proxmox Backup Server , there is a pop up window
No valid subscription
You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.
Note: Proxmox Backup Server provides free version for us to use, features are almost identical to the paid version, the difference is that paid version provides support and paid update repository which is more stable than the free version.
1 Preparation
1.1 Login to your Proxmox Backup Server web gui
1.2 From the menu at left hand side, Navigate to Administrator -> >_ Shell
Note: You can also use any other SSH client to connect, does not have to be via Proxmox Backup Server web gui
2 Easy method
2.1 Copy and paste following command to the terminal
(1.0-1 and up)
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 proxmox-backup-proxy
2.2 Log out clear the browser cache or restart the browser then login again.
2.3 There will be no pop up window
3 Manual method
3.1 Change working directory
cd /usr/share/javascript/proxmox-widget-toolkit
3.2 Backup the file we will modify (“proxmoxlib.js”)
cp proxmoxlib.js proxmoxlib.js.backup
3.3 Open and edit the file (“proxmoxlib.js”)
nano proxmoxlib.js
3.4 If you are using other SSH client rather than via the Proxmox Backup Server web gui, you can use Ctrl + W key in nano then type “if (data” to find “if (data.status !== ‘Active’) {“, if via web gui, do not use Ctrl + W, the terminal windows will be closed
(1.0-1 and up)
if (res === null || res === undefined || !res || res
.data.status.toLowerCase() !== 'active') {
3.5 Replace with
if (false) {
3.6 Use Ctrl + X, Y, Enter key to Save and exit nano
3.7 Restart Proxmox Backup Server service
systemctl restart proxmox-backup-proxy
3.8 Log out clear the browser cache or restart the browser then login again.
3.9 There will be no pop up window
Note: If this does not work, refer to Vaka’s comments below
It is not enough to remove pop-up subscription window on PBS.
1.
sed -i.bak -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
2.
sed -i.bak “s/let subStatus = status.toLowerCase() === ‘active’ ? 2 : 0/let subStatus = status.toLowerCase() === ‘active’ ? 2 : 2/” /usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
3.
systemctl restart proxmox-backup-proxy
The whole no-subscription script is:
#!/bin/sh
PVE=/usr/share/pve-manager/js/pvemanagerlib.js
LIB=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
PBS=/usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
if [ -f $PVE ]; then
# hide pve gui help/documentation button
sed -i.bak “s/hidden: false/hidden: true/g” $PVE
# fix proxmox widget toolkit lib
sed -i.bak -z “s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== ‘active’/false/g” $LIB
systemctl restart pveproxy
fi
if [ -f $PBS ]; then
# fix proxmox widget toolkit lib
sed -i.bak -z “s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== ‘active’/false/g” $LIB
# fix pbs gui
sed -i.bak “s/let subStatus = status.toLowerCase() === ‘active’ ? 2 : 0/let subStatus = status.toLowerCase() === ‘active’ ? 2 : 2/” $PBS
systemctl restart proxmox-backup-proxy
fi
Hello,
also work with PMG 6.3-4
The phrase :
if (res === null || res === undefined || !res || res
.data.status.toLowerCase() !== ‘active’) {
is on lines 456 + 457 in proxmoxlib.js
Best is find the string No valid subscription ( is on the line 460) and change the line before
Thanks for your feedback!
All the best!