Warning: Trying to access array offset on value of type bool in /www/wwwroot/www.jarods.org/wp-content/themes/hera-0.1.6/modules/article.php on line 8

Warning: Trying to access array offset on value of type bool in /www/wwwroot/www.jarods.org/wp-content/themes/hera-0.1.6/modules/article.php on line 8

Proxmox VE(PVE)禁用订阅弹出窗口

Proxmox VE(以下简称PVE)免费版本,每次登陆都要弹出订阅窗口,提示没有有效订阅“You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.”

486-1.png

解决方法:

1、5.4版本

修改文件/usr/share/pve-manager/js/pvemanagerlib.js,大概37959行

486-2.png

Proxmox.Utils.checked_command(function() {}); // display subscription status
改成
 //Proxmox.Utils.checked_command(function() {}); // display subscription status

2、5.2版本

修改文件/usr/share/pve-manager/js/pvemanagerlib.js,大概352行

if (data.status !== 'Active') {
改为
if (false) {

修改方法可能多种多样,不同的版本可能也会有不一样

3、也可以到SSH下输入命令去除订阅:

sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

0

  1. This post has no comment yet

发表回复