24小时在线 紧急问题处理立即付费处理
更新最新系统 宝塔面板报错
相关截图(日志、错误):Traceback (most recent call last): File “/www/server/panel/BTPanel/init.py”, line 2291, in publicObject res = run_obj.run(toObject, defs, get) File “/www/server/panel/BTPanel/init.py”, line 2238, in run result = getattr(toObject, get.action)(get) File “class/panelController.py”, line 81, in model result = PluginLoader.module_run(module_name,def_name,pdata) File “/www/server/panel/class/panelModel/publicModel.py”, line 30, in get_public_config data = _config_obj.get_config(args) File “class/config.py”, line 1593, in get_config import panelSSL File “class/panelSSL.py”, line 15, in from ssl_manage import SSLManger File “class/ssl_manage.py”, line 14, in import OpenSSL File “/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/init.py”, line 8, in from OpenSSL import SSL, crypto File “/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py”, line 19, in from OpenSSL.crypto import ( File “/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py”, line 3271, in name=”load_pkcs7_data”,TypeError: deprecated() got an unexpected keyword argument ‘name’
您好,根据您的截图分析:
疑似在更新的过程中有些依赖未安装成功或者因为连接不到我们的节点更新失败
1、您到服务器SSH终端里执行下切换安装节点的操作
- curl -k -sSO http://101.37.149.22:5880/new/auto_node.sh && bash auto_node.sh
2、然后在执行将当前Python环境做个备份的操作
- mv /www/server/panel/pyenv/ /www/backup/pyenv_backup
3、重新执行更新命令,重新安装面板使用的python环境,此操作不会对您的网站、数据库等造成影响,仅仅是针对面板使用的环境修复。
- curl https://download.bt.cn/install/update_panel.sh|bash
- 如果提示连接不上的话
- 我这里把脚本放到了gitee上托管,您可以到gitee上下载
- 1、安装git
- Ubuntu和Debian使用这个命令:
- apt install git -y
CentOS系列使用这个命令
- yum install git -y
2、克隆脚本
- git clone https://gitee.com/bt_dapao/btpanelnode.git
3、执行脚本
- cd btpanelnode
- bash auto_node.sh