如你的宝塔面板长期不更新,升级可能会出现各种小问题,如:
出错了,面板运行时发生错误!
无法连接宝塔云端服务器,请刷新页面重试-3
点击查看详情
REQUEST_DATE: 2022-07-26 16:48:57
PAN_VERSION: 7.9.3
OS_VERSION: CentOS 8.1.1911 x86_64(Py3.7.9)
REMOTE_ADDR: 159.138.59.53
REQUEST_URI: POST /plugin?action=get_usually_plugin
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Traceback (most recent call last):
File “class/pluginAuth.py”, line 99, in panel.class.pluginAuth.Plugin.get_plugin_list
AttributeError: ‘bool’ object has no attribute ‘encode’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “class/pluginAuth.py”, line 128, in panel.class.pluginAuth.Plugin.get_plugin_list
public.PanelError: 面板运行时发生错误: 无法连接宝塔云端服务器,请刷新页面重试-2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/www/server/panel/BTPanel/init.py”, line 1755, in publicObject
if hasattr(get, ‘path’):
File “/www/server/panel/BTPanel/init.py”, line 1703, in run
rtmp = re.search(rep, conf)
File “class/panelPlugin.py”, line 2497, in get_usually_plugin
import db
File “class/panelPlugin.py”, line 1540, in get_soft_find
File “class/panelPlugin.py”, line 936, in get_cloud_list
def __is_bind_user(self):
File “class/pluginAuth.py”, line 133, in panel.class.pluginAuth.Plugin.get_plugin_list
public.PanelError: 面板运行时发生错误: 无法连接宝塔云端服务器,请刷新页面重试-3
很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
修复方案一:在[首页]右上角点击修复面板,并退出面板重新登录。
修复方案二:如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:https://www.bt.cn/bbs
解决方法:
面板依赖的python环境损坏导致异常,可以删掉面板依赖的python环境,手动修复一下,在SSH服务器里用以下2条命令(不要在面板里面的终端执行):
rm -rf /www/server/panel/pyenv
curl http://download.bt.cn/install/update_panel.sh|bash
耐心等待python修复完成就正常了。