当前位置:论坛首页 > Linux面板 > 求助

【已解答】TypeError: exceptions must derive from BaseException

发表在 Linux面板2022-4-15 17:55 [复制链接] 3 5509

TypeError: exceptions must derive from BaseException
REQUEST_DATE: 2022-04-15 17:53:22 PAN_VERSION: 7.9.0  OS_VERSION: CentOS  8.5.2111 x86_64(Py3.7.9) REMOTE_ADDR: 192.168.8.26 REQUEST_URI: POST /ssl?action=GetAuthTokenREQUEST_FORM: {'username': '21312321434', 'password': '21312321321'}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36Traceback (most recent call last):  File "class/panelSSL.py", line 1037, in GetAuthToken    result = json.loads(rtmp);  File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 341, in loads    raise TypeError(f'the JSON object must be str, bytes or bytearray, 'TypeError: the JSON object must be str, bytes or bytearray, not boolDuring 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

使用道具 举报 只看该作者 回复
发表于 2022-4-15 17:56:42 | 显示全部楼层
Centos 8官方已于2021年12月31日以后停止Centos 8支持、转至Centos 8 Stream项目支持
详细说明:
https://www.bt.cn/bbs/thread-82931-1-1.html

因此Centos 8已经无法正常安装宝塔面板、请更换至Centos 7或Centos 8 Stream系统安装宝塔
*Centos 7 官方支持至2024年7月30日
*Centos 8 Stream 官方支持至2024年5月31日

可根据以下链接的方法升级Centos 8至Centos 8 Stream:
https://www.bt.cn/bbs/thread-82931-1-1.html

临时解决方案:使用阿里云的官方旧镜像源
\cp -r /etc/yum.repos.d/ ~/yum.repos.d.bak
rm -rf /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum makecache
暂时可以装软件了,建议尽快更换系统
宝塔面板系统兼容性推荐:Centos7.x > Debian10 > Ubuntu 20.04 > Centos8 stream > Ubuntu 18.04 > 其它系统
使用道具 举报 回复 支持 反对
发表于 2022-4-15 22:43:05 | 显示全部楼层
使用道具 举报 回复 支持 反对
发表于 2022-4-20 16:35:35 | 显示全部楼层

您好,,看不到您发的图,请问您的问题解决了吗?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表