宝塔新春特惠活动,企业版1099元/年,送SSL证书,最高立减2万元!查看活动
当前位置:论坛首页 > Windows面板 > 求助

面板报错,修复后依然

发表在 Windows面板2025-3-16 13:36 [复制链接] 3 182

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.2.2

系统版本:Windows Server 2012 R2 Datacenter (build 9600) x64 (Py3.8.6)

问题描述:面板报错,也修复过了

相关截图(日志、错误):
出错了,[Windows事件查看器]运行时发生错误!
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: [WinError 233] 管道的另一端上无任何进程。\n'
REQUEST_DATE: 2025-03-16 13:34:59
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 /plugin?action=a&name=win_event&s=get_event_logs
REQUEST_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.0
Traceback (most recent call last):
  File "class\panelPlugin.py", line 2148, in panelPlugin.panelPlugin.a
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: [WinError 233] 管道的另一端上无任何进程。\n'

使用道具 举报 只看该作者 回复
发表于 2025-3-16 19:28:27 | 显示全部楼层
  1. REQUEST_DATE: 2025-03-16 19:27:24
  2. PAN_VERSION: 8.2.2
  3.   OS_VERSION: Windows Server 2012 R2 Datacenter (build 9600) x64 (Py3.8.6)
  4. REMOTE_ADDR: 221.232.52.162
  5. REQUEST_URI: POST /auth?action=get_plugin_price
  6. REQUEST_FORM: {'pid': 'Windows专业版'}
  7.   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
  8. Traceback (most recent call last):
  9.   File "class\panelAuth.py", line 435, in panelAuth.panelAuth.send_cloud
  10.   File "C:\Program Files\python\lib\json\__init__.py", line 357, in loads
  11.     return _default_decoder.decode(s)
  12.   File "C:\Program Files\python\lib\json\decoder.py", line 337, in decode
  13.     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  14.   File "C:\Program Files\python\lib\json\decoder.py", line 355, in raw_decode
  15.     raise JSONDecodeError("Expecting value", s, err.value) from None
  16. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

  17. During handling of the above exception, another exception occurred:

  18. Traceback (most recent call last):
  19.   File "class\panelAuth.py", line 115, in panelAuth.panelAuth.get_plugin_price
  20.   File "class\panelAuth.py", line 439, in panelAuth.panelAuth.send_cloud
  21. OSError: [WinError 233] 管道的另一端上无任何进程。

  22. During handling of the above exception, another exception occurred:

  23. Traceback (most recent call last):
  24.   File "C:\BtSoft\panel\BTPanel\__init__.py", line 1584, in publicObject
  25.     return run_exec().run(toObject, defs, get)
  26.   File "C:\BtSoft\panel\BTPanel\__init__.py", line 1825, in run
  27.     result = resobj(get)
  28.   File "class\panelAuth.py", line 118, in panelAuth.panelAuth.get_plugin_price
  29.   File "C:\Program Files\python\lib\site-packages\werkzeug\local.py", line 353, in __delitem__
  30.     del self._get_current_object()[key]
  31.   File "C:\Program Files\python\lib\site-packages\werkzeug\datastructures.py", line 251, in oncall
  32.     rv = getattr(super(UpdateDictMixin, self), name)(*args, **kw)
  33. KeyError: 'get_product_list'
复制代码
使用道具 举报 回复 支持 反对
发表于 2025-3-16 20:10:28 | 显示全部楼层
本帖最后由 whhack 于 2025-3-16 20:13 编辑

临时修复方法:打开服务-btpanel、bttask改为手动-重启服务器-开启宝塔(直接开启/cmd 16修复开启)
因为前面也出现过一些问题,看我之前的帖子,官方没有任何回复,可能windows的面板本身存在很严重的无法修复BUG,可能他们又在重构吧,临时就这也修复一下吧,严重可能导致服务器卡死,因为服务会不停的重启,但是一直无法启动,因为有宝塔python进程存在,还无法K掉。。。给大家避坑吧!
最后PS:可以去别的服务器复制C:\Program Files\python,也就是自我安慰,可以尝试一下。还有就是这个服务器改手动后,再次重启会不启动宝塔,可以改回来自动。
使用道具 举报 回复 支持 反对
发表于 2025-3-17 11:39:55 | 显示全部楼层
C:\Program Files\python这个目录可以删除,然后重新覆盖安装一下,不影响网站的
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表