【已解决】Nginx防火墙无法查看拦截日志
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Nginx防火墙 9.6.4系统版本: 系统:CentOS 7.9.2009 x86_64(Py3.7.9)
问题描述:Nginx防火墙无法查看拦截日志
相关截图(日志、错误):
修复一下插件看看 阿珂 发表于 2025-4-21 10:28
修复一下插件看看
出错了,[宝塔网站防火墙]运行时发生错误!
TypeError: '>' not supported between instances of 'int' and 'str'
REQUEST_DATE: 2025-04-22 12:07:18
PAN_VERSION: 9.5.0
OS_VERSION: CentOS7.9.2009 x86_64(Py3.7.9)
REMOTE_ADDR: 124.126.198.99
REQUEST_URI: POST /btwaf/get_site_safe_logs.json%3F
REQUEST_FORM: {'siteName': 'www.zwcsm.com', 'start_time': '2025-04-22', 'limit': '15', 'p': '1'}
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2294, in panel_other
raise public.PanelError(data['msg'])
public.PanelError: 面板运行时发生错误: Traceback (most recent call last):
File "/www/server/panel/plugin/btwaf/btwaf_main.py", line 7988, in get_site_safe_logs
File "/www/server/panel/class/page.py", line 93, in GetPage
self.__END_NUM = self.__EndRow()
File "/www/server/panel/class/page.py", line 230, in __EndRow
if self.ROW > self.__COUNT_ROW:
TypeError: '>' not supported between instances of 'int' and 'str'修复不行 面板重启、服务器重启也不行
已经自己解决了
卸载nginx 防火墙
然后重命名/www/server/btwaf文件夹 无法直接删除
最后重新安装防火墙 这里我装了一个老一点的版本
页:
[1]