宝塔 - 目录
宝塔 - 札记 - Traceback 'most recent call last': File "class/pluginAuth.py", line 137, in panel.cla...
一、问题描述
1. 现象
Traceback (most recent call last):
File "class/pluginAuth.py", line 137, in panel.class.pluginAuth.Plugin.get_plugin_list
File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 343, in loads
s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 22355: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "class/panelSSL.py", line 1046, in GetAuthToken
public.flush_plugin_list()
File "class/public.py", line 3946, in flush_plugin_list
Plugin(False).get_plugin_list(True)
File "class/pluginAuth.py", line 142, in panel.class.pluginAuth.Plugin.get_plugin_list
public.PanelError: 面板运行时发生错误: 解析软件列表发生错误,已尝试自动修复,请刷新页面重试!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 1711, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1659, in run
result = getattr(toObject,get.action)(get)
File "class/panelSSL.py", line 1051, in GetAuthToken
raise public.error_conn_cloud(str(ex))
TypeError: exceptions must derive from BaseException
2. 原因
宝塔 paramiko 插件有问题
二、解决方案
cd /www/server/panel/pyenv/bin
./pip uninstall paramiko
./pip install paramiko