vps交流

[疑问] 宝塔7.7.0版本终端问题


问题描述:
最近使用GitHub上的原版宝塔7.7.0 时,安装成功后,无法使用自带的终端功能。点击后一直黑屏。
尝试网上的方法都无法解决.只能安装最新版本官方的版本。同时7.7.0的开心版也存在该问题。不知道大家有没有遇到过。
之前大概一两年前都没有此问题

8838/btpanel-v7.7.0

查看日志有如下websocket错误日志
Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 999, in handle_one_response
    self.run_application()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/geventwebsocket/handler.py", line 75, in run_application
    self.run_websocket()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/geventwebsocket/handler.py", line 52, in run_websocket
    list(self.application(self.environ, lambda s, h, e=None: []))
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2552, in __call__
    return self.wsgi_app(environ, start_response)
  File "class/flask_sockets.py", line 30, in __call__
    handler, values = adapter.match()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing/map.py", line 622, in match
    raise WebsocketMismatch() from None
werkzeug.routing.exceptions.WebsocketMismatch: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
2024-06-18T05:18:01Z {‘REMOTE_ADDR’: ”, ‘REMOTE_PORT’: ‘39882’, ‘HTTP_HOST’: ”, (hidden keys: 31)} failed with WebsocketMismatch

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 999, in handle_one_response
    self.run_application()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/geventwebsocket/handler.py", line 75, in run_application
    self.run_websocket()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/geventwebsocket/handler.py", line 52, in run_websocket
    list(self.application(self.environ, lambda s, h, e=None: []))
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2552, in __call__
    return self.wsgi_app(environ, start_response)
  File "class/flask_sockets.py", line 30, in __call__
    handler, values = adapter.match()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing/map.py", line 622, in match
    raise WebsocketMismatch() from None
werkzeug.routing.exceptions.WebsocketMismatch: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
2024-06-18T05:23:18Z {‘REMOTE_ADDR’: ‘, ‘REMOTE_PORT’: ‘54370’, ‘HTTP_HOST’: ”, (hidden keys: 31)} failed with WebsocketMismatch

Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 999, in handle_one_response
    self.run_application()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/geventwebsocket/handler.py", line 75, in run_application
    self.run_websocket()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/geventwebsocket/handler.py", line 52, in run_websocket
    list(self.application(self.environ, lambda s, h, e=None: []))
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2552, in __call__
    return self.wsgi_app(environ, start_response)
  File "class/flask_sockets.py", line 30, in __call__
    handler, values = adapter.match()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing/map.py", line 622, in match
    raise WebsocketMismatch() from None

你系统在更新,它没更新,当然有兼容问题了

用7.7的目的是lnmp+防火墙+文件浏览。

你想所有插件都生效那怎么可能,7.7基于debian10,你要用debian12系统还要十全十美

toot 发表于 2024-6-18 19:07
你系统在更新,它没更新,当然有兼容问题了

用7.7的目的是lnmp+防火墙+文件浏览。

大佬 不是所有插件,是宝塔自带的那个 终端插件 ,我的系统是 centos7 64 之前一直都是这个系统的服务器,一直没有问题,今年就出问题了,我甚至以为是 宝塔7.7.0被下毒了

宝塔故意的

不清楚是否是宝塔投毒,不知道现在还在用这个 原版 7.7.0 的有没有问题

面板系统兼容顺序(https://www.bt.cn/bbs/thread-96939-1-1.html):Centos7.x > Debian10 > Ubuntu 20.04 > Cenots 8 stream > Ubuntu 18.04 > 其它系统
前几天在Ubuntu 20.04 安装下面的 7.7.0,终端没有问题
https://github.com/8838/btpanel-v7.7.0