系统:Ubuntu Jammy Jellyfish (development branch) x86_64(Py3.7.8) 宝塔 7.9.4
系统:CentOS 7.9.2009 x86_64(Py3.7.9) 宝塔 7.9.4
都试过 都报错
新安装 ,修复面板 重启面板,重新安装alioss 均无效
新装 alioss插件 配置key的时候报错
AttributeError: 'bool' object has no attribute 'encode'
而后经过测试 oss6.0 6.1 均有问题,
在 CentOS 7.9.2009 x86_64(Py3.7.9) 也无法使用
手动新建 aliossAS.conf 后可以正常使用
- REQUEST_DATE: 2022-09-25 03:21:08
- PAN_VERSION: 7.9.4
- OS_VERSION: Ubuntu Jammy Jellyfish (development branch) x86_64(Py3.7.8)
- REMOTE_ADDR: 10.0.0.8
- REQUEST_URI: POST /plugin%3Faction%3Da%26amp%3Bs%3Dset_config%26amp%3Bname%3Dalioss
- REQUEST_FORM: {'access_key': 'XXXXX', 'secret_key': 'XXX', 'bucket_name': 'XXXX', 'bucket_domain': 'XXXX.oss-cn-qingdao.aliyuncs.com', 'backup_path': '/bt_backup/'}
- USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.42
复制代码- Traceback (most recent call last):
- File "class/panelPlugin.py", line 2792, in a
- return p.exec_fun(get)
- File "class/pluginAuth.py", line 67, in exec_fun
- raise public.PanelError(res['msg'])
- public.PanelError: 面板运行时发生错误: Traceback (most recent call last):
- File "/www/server/panel/plugin/alioss/alioss_main.py", line 1774, in set_config
- _client.set_config(add_str)
- File "/www/server/panel/plugin/alioss/alioss_main.py", line 308, in set_config
- w_data= public.aes_encrypt(conf,aes_key)
- File "class/public.py", line 2654, in aes_encrypt
- aes_obj = panelAes.aescrypt_py3(key)
- File "class/panelAes.py", line 11, in __init__
- self.key = self.add_16(key)
- File "class/panelAes.py", line 18, in add_16
- par = par.encode(self.encode_)
- AttributeError: 'bool' object has no attribute 'encode'
复制代码
|
|