momo 发表于 2024-1-10 09:29:04

Proxmox VE 8.1 取消登录后无有效订阅的提示框

Proxmox VE 8.1 每次登录后会弹出提示框,内容如下。
无有效订阅
You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

解决方式:
用WinSCP登录,然后进入到下面目录,
/usr/share/javascript/proxmox-widget-toolkit修改目录里面的proxmoxlib.js文件,修改前先备份文件。

if (res === null || res === undefined || !res || res
                        .data.status.toLowerCase() !== 'active') {
找到上面代码,替换成

if (false) {
然后保存。

systemctl restart pveproxy.service
在pve的shell页面,重启Proxmox服务。

技巧:
代码在543行,也可以搜索下面关键词,.data.status.toLowerCase() !== 'active') {找到位置。

最后还得清除浏览器缓存,才能生效。

页: [1]
查看完整版本: Proxmox VE 8.1 取消登录后无有效订阅的提示框