【待反馈】升级面板出现AttributeError: 'bool' object has no attribu...
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.2.0 (系统版本:OpenCloudOS 9.0
问题描述: 面板升级到9.2.0后登录成功出现AttributeError: 'bool' object has no attribute 'strip',多次尝试bt (16) 修复面板仍然报错
相关截图(日志、错误):出错了,面板运行时发生错误!AttributeError: 'bool' object has no attribute 'strip'
REQUEST_DATE: 2024-10-16 16:58:15VERSION: OpenCloudOS 9.0 x86_64(Py3.7.16) - 9.2.0 REMOTE_ADDR: 171.104.xx.xxx REQUEST_URI: GET /?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 OPR/113.0.0.0 (Edition B2)Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions)(**view_args)File "/www/server/panel/BTPanel/__init__.py", line 534, in home comReturn = comm.local()File "class/common.py", line 94, in local self.GetOS()File "class/common.py", line 316, in GetOS tmp['osname'] = self.get_osname(redhat_release)File "class/common.py", line 334, in get_osname issue_str = public.ReadFile(i_file).strip()AttributeError: 'bool' object has no attribute 'strip'
有大佬能帮我解决一下这个问题呢? 真是头等,升级后遇到了各种问题,未升级还稳定点。 您好,执行下面命令进行修复面板
mv /www/server/panel/pyenv/ /www/backup/pyenv_backup
curl https://download.bt.cn/install/update_panel.sh|bash
页:
[1]