青青super面 发表于 2024-8-8 10:20:36

【待反馈】升级到最新版本之后 点击网站 出现错误

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.1.0
系统版本:CentOS 8
问题描述:出错了,面板运行时发生错误!AttributeError: module 'cryptography.hazmat.bindings._rust.openssl' has no attribute 'hashes'
REQUEST_DATE: 2024-08-08 10:19:22VERSION: CentOS8.1.1911 x86_64(Py3.7.8) - 9.1.0 REMOTE_ADDR: 112.28.9.236 REQUEST_URI: POST /panel/public/get_public_config?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2435, in publicObject    res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2382, 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 59, in get_public_config    data = _config_obj.get_config(args)File "class/config.py", line 1773, in get_config    from password import passwordFile "/www/server/panel/class/password.py", line 20, in   import public,data,database,configFile "/www/server/panel/class/database.py", line 26, in   import db_mysqlFile "/www/server/panel/class/db_mysql.py", line 16, in   import pymysqlFile "", line 983, in _find_and_loadFile "", line 967, in _find_and_load_unlockedFile "", line 668, in _load_unlockedFile "", line 638, in _load_backward_compatibleFile "/www/server/panel/pyenv/lib/python3.7/site-packages/PyMySQL-0.9.3-py3.7.egg/pymysql/__init__.py", line 96, in   from . import connections as _orig_connFile "", line 983, in _find_and_loadFile "", line 967, in _find_and_load_unlockedFile "", line 668, in _load_unlockedFile "", line 638, in _load_backward_compatibleFile "/www/server/panel/pyenv/lib/python3.7/site-packages/PyMySQL-0.9.3-py3.7.egg/pymysql/connections.py", line 17, in   from . import _authFile "", line 983, in _find_and_loadFile "", line 967, in _find_and_load_unlockedFile "", line 668, in _load_unlockedFile "", line 638, in _load_backward_compatibleFile "/www/server/panel/pyenv/lib/python3.7/site-packages/PyMySQL-0.9.3-py3.7.egg/pymysql/_auth.py", line 12, in   from cryptography.hazmat.primitives import serialization, hashesFile "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in   from cryptography.hazmat.primitives._serialization import (File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in   from cryptography.hazmat.primitives.hashes import HashAlgorithmFile "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/hashes.py", line 87, in   Hash = rust_openssl.hashes.HashAttributeError: module 'cryptography.hazmat.bindings._rust.openssl' has no attribute 'hashes'相关截图(日志、错误):

运维技术阿闯 发表于 2024-8-8 10:45:23

您好,centos 7/8官方已经不再维护了,建议更换操作系统,
关于您的问题,您这边尝试执行bt 16修复一下面板
如果问题没有解决的话
删除之前无法使用的面板环境
mv/www/server/panel/pyenv /www/backup/pyenv_backup
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash
页: [1]
查看完整版本: 【待反馈】升级到最新版本之后 点击网站 出现错误