【待反馈】TypeError: deprecated() got an unexpected keyword argument 'name'
本帖最后由 堡塔运维香菜卷 于 2023-5-26 11:20 编辑为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
系统版本:7.9.10
问题描述:
相关截图(日志、错误):
这是阿里云OSS备份脚本导致的问题,面板8.0.1无此问题,8.0.2存在该问题。 我是安装了 OSS免费插件出这个问题的 您好,您这个报错信息是操作到哪个步骤才出现的呢?您可以尝试对面板一个修复后看看是否问题解决得了呢?
您到服务器SSH终端中执行下面命令(非面板终端)修复面板
备份之前无法使用的面板环境
mv /www/server/panel/pyenv /root/pyenv_bak
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash
此更新不会对您的数据造成影响,仅仅更新面板程序 centos7.9 宝塔版本 7.9.10,宝塔版本 7.9.9,都存在同样的问题,导致宝塔无法备份云存储上 堡塔运维香菜卷 发表于 2023-5-26 11:19
您好,您这个报错信息是操作到哪个步骤才出现的呢?您可以尝试对面板一个修复后看看是否问题解决得了呢?
...
centos7.9 宝塔版本 7.9.10,宝塔版本 7.9.9,都存在同样的问题,导致宝塔无法备份云存储上
,大侠救命 错误截图 遇到了同样的 问题。。重新获取面板环境和更新包还是没有效果,一样报这个错误。 8.0.0已经解决这个问题 8.0.1版本出现这个问题了,Traceback (most recent call last):
File "class/public.py", line 3505, in get_attr
tmp_obj = __import__(key)
File "class/safe_warning/sw_site_ssl_expire.py", line 15, in
import os,sys,re,public,OpenSSL,time
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'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2015, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1962, in run
result = getattr(toObject, get.action)(get)
File "class/panelWarning.py", line 36, in get_list
if p._level == 0: continue
File "class/public.py", line 3514, in __getitem__
return self.get_attr(key)
File "class/public.py", line 3510, in get_attr
raise Exception(get_error_info())
Exception: Traceback (most recent call last):
File "class/public.py", line 3505, in get_attr
tmp_obj = __import__(key)
File "class/safe_warning/sw_site_ssl_expire.py", line 15, in
import os,sys,re,public,OpenSSL,time
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' 8.0.22
也遇到下面的问题:
Traceback (most recent call last):
File "/www/server/panel/plugin/alioss/alioss_main.py", line 27, in <module>
import oss2
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/__init__.py", line 5, in <module>
from .api import Service, Bucket, CryptoBucket
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/api.py", line 126, in <module>
from .crypto import BaseCryptoProvider
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/crypto.py", line 21, in <module>
from aliyunsdkcore import client
File "/www/server/panel/pyenv/lib/python3.7/site-packages/aliyunsdkcore/client.py", line 31, in <module>
from aliyunsdkcore.vendored.requests import codes
File "/www/server/panel/pyenv/lib/python3.7/site-packages/aliyunsdkcore/vendored/requests/__init__.py", line 48, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/aliyunsdkcore/vendored/requests/packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import SSL, crypto
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 19, in <module>
from OpenSSL.crypto import (
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 3271, in <module>
name="load_pkcs7_data",
TypeError: deprecated() got an unexpected keyword argument 'name'
环境
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
处理
wget http://download.bt.cn/install/update_panel.sh
sudo bash update_panel.sh
结果:暂时解决面板报错,目前面板功能使用正常,后面不知道
centos7.9+bt8.0.2安装了阿里云OSS插件报这个 手动执行命令可以修复该问题
curl http://download.bt.cn/install/update_panel.sh|bash Wheat 发表于 2023-8-29 12:00
这是阿里云OSS备份脚本导致的问题,面板8.0.1无此问题,8.0.2存在该问题。
我是面板8.0.1,安装了阿里云OSS6.7后导致的情况
页:
[1]
2