從2.1.13升級2.2.2後提示請求失敗, 回滾到2.1.13後回復正常
1Panel 版本:2.2.2
操作系统(设备): Ubuntu 24.04.4 LTS (LXC)
关键截图:
日志:
1Panel-Core.log (4.1 KB)
1Panel.log (80.8 KB)
從2.1.13升級2.2.2後提示請求失敗, 回滾到2.1.13後回復正常
1Panel 版本:2.2.2
操作系统(设备): Ubuntu 24.04.4 LTS (LXC)
关键截图:
日志:
1Panel-Core.log (4.1 KB)
1Panel.log (80.8 KB)
我也是相同的问题,出现大量的请求失败,1pctl restore回滚后可以了,1panel的api服务都访问失败了
root@VM-0-10-debian:~# 1pctl restore
============================================================
Restore 1Panel service and data
============================================================
Note: This operation only rolls back the main node. If any child nodes have been upgraded, roll back the child nodes first before continuing. Continue? [y/n]: y
1Panel will be restored to the last stable version. Do you want to continue? [y/n]: y
(1/5) Starting rollback of 1Panel service and data from /opt/1panel/tmp/upgrade/v2.2.2/original directory...
(2/5) 1Panel binary rollback completed
(3/5) 1Panel script rollback completed
(4/5) 1Panel service rollback completed
(5/5) 1Panel data rollback completed
Rollback completed. Reverted to v2.1.13. Restarting service...
------------------------------------------------------------
root@VM-0-10-debian:~#
表现是大部分的api都 502 Bad Gateway
例如
/api/v2/settings/search
请求方法 POST
状态代码 502 Bad Gateway
关键信息:Bad Gateway: dial unix /etc/1panel/agent.sock: connect: connection refused
systemctl status 1panel-agent 检查一下服务状态
有手动改过那俩文件的权限吗?检查一下
ls -ld /etc/sudoers.d
ls -l /etc/sudo.conf
我遇到的问题是使用docker网络的容器没办法去访问互联网。内网可以访问,我用AI排查半天还没找到原因,准备回退版本试试了。
chown root:root /etc/sudo.conf
chown root:root /etc/sudoers.d
chmod 755 /etc/sudoers.d
chmod 644 /etc/sudo.conf
执行一下,然后 1pctl restart 重启
加我一下吧,远程看看

加你了.
ls -la 发现所有目录都变成了 1panel:1panel
通过命令为 root:root,修改后运行正常