[GH-ISSUE #537] [Bug] 终端页面, 提示"连接中断,请刷新页面。" #1620

Closed
opened 2026-02-27 12:12:05 +03:00 by kerem · 11 comments
Owner

Originally created by @zuilintan on GitHub (Sep 3, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/537

Describe the bug
进入终端页面, 提示"连接中断,请刷新页面。", 但刷新也是无效的,
此时systemctl status nginx-ui -l报错信息如下截图(很抱歉, 我没有找到咱们nginx-ui自身的日志文件)

To Reproduce
以在线升级的方式, 升级到v2.0.0-beta.32后,
进去终端页面,
问题必现

Expected behavior
正常显示终端

Screenshots
QQ_1725327506645
image

Info (please complete the following information):

  • Server OS: CentOS 7
  • Server Arch: X86_64
  • Nginx UI Version: 2.0.0-beta.32
  • Your Browser: Chrome

Additional context
None

Originally created by @zuilintan on GitHub (Sep 3, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/537 **Describe the bug** 进入终端页面, 提示"连接中断,请刷新页面。", 但刷新也是无效的, 此时systemctl status nginx-ui -l报错信息如下截图(很抱歉, 我没有找到咱们nginx-ui自身的日志文件) **To Reproduce** 以在线升级的方式, 升级到v2.0.0-beta.32后, 进去终端页面, 问题必现 **Expected behavior** 正常显示终端 **Screenshots** ![QQ_1725327506645](https://github.com/user-attachments/assets/e0c84ba7-03d1-4566-9a4f-c51f252b0901) ![image](https://github.com/user-attachments/assets/bd2708c8-bd0f-4097-80ad-fea9bb8b0466) **Info (please complete the following information):** - Server OS: CentOS 7 - Server Arch: X86_64 - Nginx UI Version: 2.0.0-beta.32 - Your Browser: Chrome **Additional context** None
kerem 2026-02-27 12:12:05 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Sep 3, 2024):

之前是从哪个版本升级上来的?因为最近一次更新 pty 依赖是 3 星期前

<!-- gh-comment-id:2325488551 --> @0xJacky commented on GitHub (Sep 3, 2024): 之前是从哪个版本升级上来的?因为最近一次更新 pty 依赖是 3 星期前
Author
Owner

@0xJacky commented on GitHub (Sep 3, 2024):

至少 beta.24 开始这个功能好像就不可用了

日志查看使用

 journalctl -fu nginx-ui
<!-- gh-comment-id:2325496471 --> @0xJacky commented on GitHub (Sep 3, 2024): 至少 beta.24 开始这个功能好像就不可用了 日志查看使用 ``` journalctl -fu nginx-ui ```
Author
Owner

@zuilintan commented on GitHub (Sep 3, 2024):

之前是从哪个版本升级上来的?因为最近一次更新 pty 依赖是 3 周前

很遗憾, 具体版本号我没有印象了,
不过应该是在2.0.0-beta.26或更早之前

<!-- gh-comment-id:2325517119 --> @zuilintan commented on GitHub (Sep 3, 2024): > 之前是从哪个版本升级上来的?因为最近一次更新 pty 依赖是 3 周前 很遗憾, 具体版本号我没有印象了, 不过应该是在2.0.0-beta.26或更早之前
Author
Owner

@0xJacky commented on GitHub (Sep 3, 2024):

是的这个应该是老问题了,目前我在 debian 和 Ubuntu (内核 5.x)都是正常使用的
https://github.com/creack/pty/issues/21

<!-- gh-comment-id:2325519538 --> @0xJacky commented on GitHub (Sep 3, 2024): 是的这个应该是老问题了,目前我在 debian 和 Ubuntu (内核 5.x)都是正常使用的 https://github.com/creack/pty/issues/21
Author
Owner

@0xJacky commented on GitHub (Sep 3, 2024):

所以很抱歉这个问题大概率我没法解决

<!-- gh-comment-id:2325519736 --> @0xJacky commented on GitHub (Sep 3, 2024): 所以很抱歉这个问题大概率我没法解决
Author
Owner

@zuilintan commented on GitHub (Sep 3, 2024):

通过数据库查询, 我可确认版本是从2.0.0-beta.25-patch.1升级上来:
QQ_1725332632673
QQ_1725332764855

<!-- gh-comment-id:2325525738 --> @zuilintan commented on GitHub (Sep 3, 2024): 通过数据库查询, 我可确认版本是从2.0.0-beta.25-patch.1升级上来: ![QQ_1725332632673](https://github.com/user-attachments/assets/1041c3cc-7dde-4b1c-8ae2-491bbe5c1b9f) ![QQ_1725332764855](https://github.com/user-attachments/assets/413b321b-da05-433b-a902-2811caaceafd)
Author
Owner

@zuilintan commented on GitHub (Sep 3, 2024):

所以很抱歉这个问题大概率我没法解决

好的, 这的确是个很复杂且无头绪的问题,
后面我会尝试重新安装

<!-- gh-comment-id:2325526438 --> @zuilintan commented on GitHub (Sep 3, 2024): > 所以很抱歉这个问题大概率我没法解决 好的, 这的确是个很复杂且无头绪的问题, 后面我会尝试重新安装
Author
Owner

@zuilintan commented on GitHub (Sep 3, 2024):

对了, 补充一下:
我这台主机, 手动更新过python版本,
从2.x->3.12

<!-- gh-comment-id:2325529259 --> @zuilintan commented on GitHub (Sep 3, 2024): 对了, 补充一下: 我这台主机, 手动更新过python版本, 从2.x->3.12
Author
Owner

@0xJacky commented on GitHub (Sep 3, 2024):

如果可以的话建议更新一下操作系统 centos7 上个月已经 EOL 了

<!-- gh-comment-id:2325531204 --> @0xJacky commented on GitHub (Sep 3, 2024): 如果可以的话建议更新一下操作系统 centos7 上个月已经 EOL 了
Author
Owner

@zuilintan commented on GitHub (Oct 2, 2024):

问题已定位:
我的NgiuxUI web端使用了nginx反代,不需要端口9000访问,
故将端口移出了防火墙白名单,

终端似乎依赖9000

对策:
9000加入防火墙白名单

<!-- gh-comment-id:2388875985 --> @zuilintan commented on GitHub (Oct 2, 2024): 问题已定位: 我的NgiuxUI web端使用了nginx反代,不需要端口9000访问, 故将端口移出了防火墙白名单, 而**终端似乎依赖9000** 对策: 9000加入防火墙白名单
Author
Owner

@0xJacky commented on GitHub (Oct 2, 2024):

错误的,9000 端口如果在 nginx 反向代理后面,是不需要暴露到防火墙外的

<!-- gh-comment-id:2388880947 --> @0xJacky commented on GitHub (Oct 2, 2024): 错误的,9000 端口如果在 nginx 反向代理后面,是不需要暴露到防火墙外的
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
starred/nginx-ui#1620
No description provided.