面板报错,修复后依然
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.2.2系统版本:Windows Server 2012 R2 Datacenter (build 9600) x64 (Py3.8.6)
问题描述:面板报错,也修复过了
相关截图(日志、错误):出错了,运行时发生错误!public.PanelError: 面板运行时发生错误: 'Traceback (most recent call last):\n File "C:\\BtSoft\\panel/class\\flask_sockets.py", line 30, in __call__\n handler, values = adapter.match()\n File "C:\\Program Files\\python\\lib\\site-packages\\werkzeug\\routing.py", line 1945, in match\n raise NotFound()\nwerkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "C:\\BtSoft\\panel/plugin/win_event/win_event_main.py", line 48, in get_event_logs\n print(search_time)\nOSError: 管道的另一端上无任何进程。\n'REQUEST_DATE: 2025-03-16 13:34:59 PAN_VERSION: 8.2.2OS_VERSION: Windows Server 2012 R2 Datacenter (build 9600) x64 (Py3.8.6) REMOTE_ADDR: 221.232.52.162 REQUEST_URI: POST /plugin?action=a&name=win_event&s=get_event_logsREQUEST_FORM: {'event': 'Application', 'level': '', 'eventid': '', 'limit': '20', 'start': '', 'end': ''}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0Traceback (most recent call last):File "class\panelPlugin.py", line 2148, in panelPlugin.panelPlugin.apublic.PanelError: 面板运行时发生错误: 'Traceback (most recent call last):\nFile "C:\\BtSoft\\panel/class\\flask_sockets.py", line 30, in __call__\n handler, values = adapter.match()\nFile "C:\\Program Files\\python\\lib\\site-packages\\werkzeug\\routing.py", line 1945, in match\n raise NotFound()\nwerkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\nFile "C:\\BtSoft\\panel/plugin/win_event/win_event_main.py", line 48, in get_event_logs\n print(search_time)\nOSError: 管道的另一端上无任何进程。\n'
REQUEST_DATE: 2025-03-16 19:27:24
PAN_VERSION: 8.2.2
OS_VERSION: Windows Server 2012 R2 Datacenter (build 9600) x64 (Py3.8.6)
REMOTE_ADDR: 221.232.52.162
REQUEST_URI: POST /auth?action=get_plugin_price
REQUEST_FORM: {'pid': 'Windows专业版'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Traceback (most recent call last):
File "class\panelAuth.py", line 435, in panelAuth.panelAuth.send_cloud
File "C:\Program Files\python\lib\json\__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Program Files\python\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\python\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "class\panelAuth.py", line 115, in panelAuth.panelAuth.get_plugin_price
File "class\panelAuth.py", line 439, in panelAuth.panelAuth.send_cloud
OSError: 管道的另一端上无任何进程。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1584, in publicObject
return run_exec().run(toObject, defs, get)
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1825, in run
result = resobj(get)
File "class\panelAuth.py", line 118, in panelAuth.panelAuth.get_plugin_price
File "C:\Program Files\python\lib\site-packages\werkzeug\local.py", line 353, in __delitem__
del self._get_current_object()
File "C:\Program Files\python\lib\site-packages\werkzeug\datastructures.py", line 251, in oncall
rv = getattr(super(UpdateDictMixin, self), name)(*args, **kw)
KeyError: 'get_product_list' 本帖最后由 whhack 于 2025-3-16 20:13 编辑
临时修复方法:打开服务-btpanel、bttask改为手动-重启服务器-开启宝塔(直接开启/cmd 16修复开启)
因为前面也出现过一些问题,看我之前的帖子,官方没有任何回复,可能windows的面板本身存在很严重的无法修复BUG,可能他们又在重构吧,临时就这也修复一下吧,严重可能导致服务器卡死,因为服务会不停的重启,但是一直无法启动,因为有宝塔python进程存在,还无法K掉。。。给大家避坑吧!
最后PS:可以去别的服务器复制C:\Program Files\python,也就是自我安慰,可以尝试一下。还有就是这个服务器改手动后,再次重启会不启动宝塔,可以改回来自动。
C:\Program Files\python这个目录可以删除,然后重新覆盖安装一下,不影响网站的
页:
[1]