[GH-ISSUE #3646] 千万别升级 v2.8.6/v2.8.7 #2448

Closed
opened 2026-10-31 20:25:34 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @MiKing233 on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3646

Question

更新完几乎完全摧毁了我的自建代理, 并且顺带搞崩了Nginx

面板是运行在非80/443端口的, 通过nginx反向代理用域名https访问
这次更新完, 首先强制让你注册证书, 一个为当前域名申请另一个是为当前IP申请, 必须选一个, 我根本不需要这东西, 最后还是给我强制注册了IP证书, 随后Nginx就无法正常工作了: ERR_HTTP2_PROTOCOL_ERROR 间歇性所有的Web都无法访问, 手动重启nginx可以管用一小段时间

回到x-ui的网页前端, 一直在疯狂输出log:

2026/01/07 10:21:42 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
2026/01/07 10:21:41 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
2026/01/07 10:15:05 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
2026/01/07 10:14:49 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header

具体问题还在分析, 总之千万别更新, 真的脑残

Checklist

  • This question is written entirely in English.
Originally created by @MiKing233 on GitHub (Jan 7, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3646 ### Question 更新完几乎完全摧毁了我的自建代理, 并且顺带搞崩了Nginx 面板是运行在非80/443端口的, 通过nginx反向代理用域名https访问 这次更新完, 首先强制让你注册证书, 一个为当前域名申请另一个是为当前IP申请, 必须选一个, 我根本不需要这东西, 最后还是给我强制注册了IP证书, 随后Nginx就无法正常工作了: ERR_HTTP2_PROTOCOL_ERROR 间歇性所有的Web都无法访问, 手动重启nginx可以管用一小段时间 回到x-ui的网页前端, 一直在疯狂输出log: 2026/01/07 10:21:42 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header 2026/01/07 10:21:41 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header 2026/01/07 10:15:05 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header 2026/01/07 10:14:49 ERROR - X-UI: Failed to upgrade WebSocket connection:websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header 具体问题还在分析, 总之千万别更新, 真的脑残 ### Checklist - [x] This question is written entirely in English.
bsakaguchi 2026-10-31 20:25:34 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@RPRX commented on GitHub (Jan 9, 2026):

本想来看一下伊朗的情况,结果看到了这个 issue

https://github.com/MHSanaei/3x-ui/issues/3623#issuecomment-3709395484

<!-- gh-comment-id:3728061371 --> @RPRX commented on GitHub (Jan 9, 2026): ~~本想来看一下伊朗的情况,结果看到了这个 issue~~ https://github.com/MHSanaei/3x-ui/issues/3623#issuecomment-3709395484
Author
Owner

@MiKing233 commented on GitHub (Jan 9, 2026):

本想来看一下伊朗的情况,结果看到了这个 issue

#3623 (comment)

所有流经互联网的数据包都应经过TLS加密这是常识, 但并非所有使用方式都按开发者预期进行, 至少应该提供一种接受风险并继续的选项而不是强制二选一强迫所有人都粗暴按照开发者的意愿配置服务端证书

<!-- gh-comment-id:3730580531 --> @MiKing233 commented on GitHub (Jan 9, 2026): > ~本想来看一下伊朗的情况,结果看到了这个 issue~ > > [#3623 (comment)](https://github.com/MHSanaei/3x-ui/issues/3623#issuecomment-3709395484) 所有流经互联网的数据包都应经过TLS加密这是常识, 但并非所有使用方式都按开发者预期进行, 至少应该提供一种接受风险并继续的选项而不是强制二选一强迫所有人都粗暴按照开发者的意愿配置服务端证书
Author
Owner

@MiKing233 commented on GitHub (Jan 9, 2026):

本想来看一下伊朗的情况,结果看到了这个 issue

#3623 (comment)

重申, 我并非反对 Xray 所要求的 Web 面板不应允许明文 HTTP, 而是反对 3X-UI 强制用户按照它们预想的方式进行证书配置, 3X-UI 至少应该提供一个接受风险不配置任何证书的选项供用户选择, 对于 Web 面板只需尽到告知风险的责任, 而不是强制替所有人做选择

<!-- gh-comment-id:3730645833 --> @MiKing233 commented on GitHub (Jan 9, 2026): > ~本想来看一下伊朗的情况,结果看到了这个 issue~ > > [#3623 (comment)](https://github.com/MHSanaei/3x-ui/issues/3623#issuecomment-3709395484) 重申, 我并非反对 Xray 所要求的 Web 面板不应允许明文 HTTP, 而是反对 3X-UI 强制用户按照它们预想的方式进行证书配置, 3X-UI 至少应该提供一个接受风险不配置任何证书的选项供用户选择, 对于 Web 面板只需尽到告知风险的责任, 而不是强制替所有人做选择
Author
Owner

@RPRX commented on GitHub (Jan 12, 2026):

明明一个“监听 127.0.0.1 等内网地址时允许明文 HTTP”就能解决的问题,你这说得像是需要把“公网明文 HTTP 选项”加回来一样

<!-- gh-comment-id:3738249549 --> @RPRX commented on GitHub (Jan 12, 2026): ~~明明一个“监听 127.0.0.1 等内网地址时允许明文 HTTP”就能解决的问题,你这说得像是需要把“公网明文 HTTP 选项”加回来一样~~
Author
Owner

@MiKing233 commented on GitHub (Jan 12, 2026):

明明一个“监听 127.0.0.1 等内网地址时允许明文 HTTP”就能解决的问题,你这说得像是需要把“公网明文 HTTP 选项”加回来一样

但问题是现在就算全新安装, 也必须强制证书二选一, 默认安装后只监听 127.0.0.1 并不再强制用户做选择是完全是可行的, 如果要监听 0.0.0.0 或其他外部地址则需要强制证书配置步骤, 目前流程完全是不经思考决定的

<!-- gh-comment-id:3740881836 --> @MiKing233 commented on GitHub (Jan 12, 2026): > ~明明一个“监听 127.0.0.1 等内网地址时允许明文 HTTP”就能解决的问题,你这说得像是需要把“公网明文 HTTP 选项”加回来一样~ 但问题是现在就算全新安装, 也必须强制证书二选一, 默认安装后只监听 127.0.0.1 并不再强制用户做选择是完全是可行的, 如果要监听 0.0.0.0 或其他外部地址则需要强制证书配置步骤, 目前流程完全是不经思考决定的
Author
Owner

@Kvinam commented on GitHub (Jun 2, 2026):

nginx无法反代3x-ui面板了吗

<!-- gh-comment-id:4603410813 --> @Kvinam commented on GitHub (Jun 2, 2026): nginx无法反代3x-ui面板了吗
Author
Owner

@hqylwrx commented on GitHub (Jun 29, 2026):

我3.x版本也存在这个问题,我是nginx无法反代3x-ui面板报错,最终也解决了

错误:写在server全局,不生效

proxy_set_header Upgrade $http_upgrade;
location / {
proxy_pass http://127.0.0.1:54321;
}

下面是正确的样例:

location / {
proxy_pass http://127.0.0.1:54321; # 你的3xui监听地址
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# WebSocket核心两行
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache_bypass $http_upgrade;
}

<!-- gh-comment-id:4832859542 --> @hqylwrx commented on GitHub (Jun 29, 2026): 我3.x版本也存在这个问题,我是nginx无法反代3x-ui面板报错,最终也解决了 # 错误:写在server全局,不生效 proxy_set_header Upgrade $http_upgrade; location / { proxy_pass http://127.0.0.1:54321; } 下面是正确的样例: location / { proxy_pass http://127.0.0.1:54321; # 你的3xui监听地址 proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # WebSocket核心两行 proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_cache_bypass $http_upgrade; }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2448
No description provided.