为了能快速了解并处理您的问题,请提供以下基础信息: 系统版本:CentOS Stream 8 x86_64(Py3.7.9) 问题描述:首页---硬盘---告警设置 按照 占用百分比、剩余容量 设置都报错提示:“出错了,面板运行时发生错误!”。日志如下重新登录面板、修复面板 后,再次 告警设置 都报错
相关截图(日志、错误): 磁盘【/】告警---占用百分比 - REQUEST_DATE: 2023-07-27 13:13:18
- PAN_VERSION: 8.0.19
- OS_VERSION: CentOS Stream 8 x86_64(Py3.7.9)
- REMOTE_ADDR: 120.236.76.103
- REQUEST_URI: POST /push?action=set_push_config
- REQUEST_FORM: {'id': '1690434782', 'name': 'system_push', 'data': '{"type":"disk","cycle":2,"count":80,"push_count":3,"module":"dingding,weixin","project":"/","interval":600}'}
- USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 Core/1.94.201.400 QQBrowser/11.9.5325.400
- Traceback (most recent call last):
- File "/www/server/panel/BTPanel/__init__.py", line 2021, in publicObject
- res = run_obj.run(toObject, defs, get)
- File "/www/server/panel/BTPanel/__init__.py", line 1968, in run
- result = getattr(toObject, get.action)(get)
- File "/www/server/panel/class/panelPush.py", line 236, in set_push_config
- result = class_obj.set_push_config(get)
- File "class/push/system_push.py", line 118, in set_push_config
- if pdata["type"] == "disk" and not (project_name in self.get_disk_name() or project_name != "@any"):
- AttributeError: 'system_push' object has no attribute 'get_disk_name'
复制代码磁盘【/】告警---剩余容量
- REQUEST_DATE: 2023-07-27 13:13:44
- PAN_VERSION: 8.0.19
- OS_VERSION: CentOS Stream 8 x86_64(Py3.7.9)
- REMOTE_ADDR: 120.236.76.103
- REQUEST_URI: POST /push?action=set_push_config
- REQUEST_FORM: {'id': '1690434808', 'name': 'system_push', 'data': '{"type":"disk","cycle":1,"count":46,"push_count":3,"module":"dingding,weixin","project":"/","interval":600}'}
- USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 Core/1.94.201.400 QQBrowser/11.9.5325.400
- Traceback (most recent call last):
- File "/www/server/panel/BTPanel/__init__.py", line 2021, in publicObject
- res = run_obj.run(toObject, defs, get)
- File "/www/server/panel/BTPanel/__init__.py", line 1968, in run
- result = getattr(toObject, get.action)(get)
- File "/www/server/panel/class/panelPush.py", line 236, in set_push_config
- result = class_obj.set_push_config(get)
- File "class/push/system_push.py", line 118, in set_push_config
- if pdata["type"] == "disk" and not (project_name in self.get_disk_name() or project_name != "@any"):
- AttributeError: 'system_push' object has no attribute 'get_disk_name'
复制代码
|
|