cikoola 发表于 昨天 16:57

【已解答】升级错误,但能进入面板显示9.6版本

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
7.7版本升级9.6
系统版本:
系统:Ubuntu 20.04.3 LTS (Focal Fossa) aarch64(Py3.7.8)
问题描述:
出错了,面板运行时发生错误!TypeError: string indices must be integers
REQUEST_DATE: 2025-07-09 08:48:32 PAN_VERSION: 9.6.0OS_VERSION: Ubuntu 20.04.3 LTS aarch64(Py3.7.8) REMOTE_ADDR: 192.168.0.101 REQUEST_URI: GET /?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2528, in wsgi_app    response = self.full_dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request    rv = self.handle_user_exception(e)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 253, in home    # if not public.filter_headers():File "class/common.py", line 85, in local    if result:File "class/common.py", line 100, in setSession    con = config.config()File "class/public.py", line 2536, in get_menus    def en_punycode(domain):File "class/public.py", line 2536, in   def en_punycode(domain):TypeError: string indices must be integers相关截图(日志、错误):
启动防火墙失败: WARN: / 全局可写! ERROR: problem running ufw-init modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 12 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 12 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.194.pdnas.rk3328.258 iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information. Problem loading ipv6 (skipping) Problem running '/etc/ufw/before.rules' Problem running '/etc/ufw/after.rules' Problem running '/etc/ufw/user.rules'

阿珂 发表于 7 小时前

前面的问题执行下面命令,重启面板
btpip install Flask== 2.2.5
后面的那个问题之前发的贴已经回复过了
页: [1]
查看完整版本: 【已解答】升级错误,但能进入面板显示9.6版本