[GH-ISSUE #1159] 升级2.1.6 Streams模块不见了 #6405

Closed
opened 2026-03-01 17:11:50 +03:00 by kerem · 16 comments
Owner

Originally created by @xhal on GitHub (Jun 20, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1159

已升级最新的 2.1.6 (435) 版本,但同 #1136 一样,菜单不见了

连检查里的检查项都没了;
因为是内网 Centos7.9 系统,下载的 https://github.com/0xJacky/nginx-ui/releases/download/v2.1.6/nginx-ui-linux-64.tar.gz 离线包升级的

PS: 另外一台外网Ubuntu的,使用在线升级的正常

以下是有问题的检查页面截图:
Image

Originally created by @xhal on GitHub (Jun 20, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1159 已升级最新的 2.1.6 (435) 版本,但同 #1136 一样,菜单不见了 连检查里的检查项都没了; 因为是内网 Centos7.9 系统,下载的 https://github.com/0xJacky/nginx-ui/releases/download/v2.1.6/nginx-ui-linux-64.tar.gz 离线包升级的 **PS: 另外一台外网Ubuntu的,使用在线升级的正常** 以下是有问题的检查页面截图: <img width="1047" alt="Image" src="https://github.com/user-attachments/assets/69798f1c-c728-45f7-b5a1-f6b317915797" />
kerem closed this issue 2026-03-01 17:11:50 +03:00
Author
Owner

@0xJacky commented on GitHub (Jun 20, 2025):

与升级方式无关,

麻烦提供一下 nginx -V 和 nginx -T | grep stream 的输出,谢谢!

<!-- gh-comment-id:2991940687 --> @0xJacky commented on GitHub (Jun 20, 2025): 与升级方式无关, 麻烦提供一下 nginx -V 和 nginx -T | grep stream 的输出,谢谢!
Author
Owner

@xhal commented on GitHub (Jun 20, 2025):

nginx version: openresty/1.25.3.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.3 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.33 --add-module=../ngx_lua-0.10.26 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.37 --add-module=../array-var-nginx-module-0.06 --add-module=../memc-nginx-module-0.20 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../rds-json-nginx-module-0.16 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.14 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-stream --without-pcre2 --with-stream_ssl_module --with-stream_ssl_preread_module
nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test is successful
stream {
    log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_received|$session_time|$upstream_addr|$upstream_bytes_sent|$upstream_bytes_received|$upstream_connect_time';
    include /usr/local/openresty/nginx/conf/streams-enabled/*.conf;
    default_type  application/octet-stream;
                      '$upstream_addr - $upstream_response_time';
    add_header RealServerAddr   $upstream_addr;
    add_header RealServerStatus $upstream_status;
# configuration file /usr/local/openresty/nginx/conf/streams-enabled/6001_sshd.conf:
upstream sshd_63_stream {
    proxy_pass sshd_63_stream;
# configuration file /usr/local/openresty/nginx/conf/streams-enabled/6002_windows.conf:
upstream windows_3389_stream {
    proxy_pass windows_3389_stream;
# configuration file /usr/local/openresty/nginx/conf/streams-enabled/oracle.conf:
  upstream oracle_sshd_stream {
    proxy_pass oracle_sshd_stream;

<!-- gh-comment-id:2992123198 --> @xhal commented on GitHub (Jun 20, 2025): ```shell nginx version: openresty/1.25.3.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.3 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.33 --add-module=../ngx_lua-0.10.26 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.37 --add-module=../array-var-nginx-module-0.06 --add-module=../memc-nginx-module-0.20 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../rds-json-nginx-module-0.16 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.14 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-stream --without-pcre2 --with-stream_ssl_module --with-stream_ssl_preread_module ``` ```sh nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test is successful stream { log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_received|$session_time|$upstream_addr|$upstream_bytes_sent|$upstream_bytes_received|$upstream_connect_time'; include /usr/local/openresty/nginx/conf/streams-enabled/*.conf; default_type application/octet-stream; '$upstream_addr - $upstream_response_time'; add_header RealServerAddr $upstream_addr; add_header RealServerStatus $upstream_status; # configuration file /usr/local/openresty/nginx/conf/streams-enabled/6001_sshd.conf: upstream sshd_63_stream { proxy_pass sshd_63_stream; # configuration file /usr/local/openresty/nginx/conf/streams-enabled/6002_windows.conf: upstream windows_3389_stream { proxy_pass windows_3389_stream; # configuration file /usr/local/openresty/nginx/conf/streams-enabled/oracle.conf: upstream oracle_sshd_stream { proxy_pass oracle_sshd_stream; ```
Author
Owner

@0xJacky commented on GitHub (Jun 23, 2025):

请问有试过重启 nginx ui 吗

<!-- gh-comment-id:2996777636 --> @0xJacky commented on GitHub (Jun 23, 2025): 请问有试过重启 nginx ui 吗
Author
Owner

@0xJacky commented on GitHub (Jun 23, 2025):

麻烦看一下这个页面中 stream 模块的加载状态

Image

<!-- gh-comment-id:2996785882 --> @0xJacky commented on GitHub (Jun 23, 2025): 麻烦看一下这个页面中 stream 模块的加载状态 ![Image](https://github.com/user-attachments/assets/6a22e5ab-f2b0-479b-ab72-b7abf7951e50)
Author
Owner

@xhal commented on GitHub (Jun 24, 2025):

请问有试过重启 nginx ui 吗

有重启过,一样的

<!-- gh-comment-id:2998448580 --> @xhal commented on GitHub (Jun 24, 2025): > 请问有试过重启 nginx ui 吗 有重启过,一样的
Author
Owner

@0xJacky commented on GitHub (Jun 24, 2025):

可以帮我试试更新至最新的开发版本,测试是否已经修复

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev -r https://cloud.nginxui.com/
<!-- gh-comment-id:2998449580 --> @0xJacky commented on GitHub (Jun 24, 2025): 可以帮我试试更新至最新的开发版本,测试是否已经修复 ``` bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev -r https://cloud.nginxui.com/ ```
Author
Owner

@xhal commented on GitHub (Jun 24, 2025):

麻烦看一下这个页面中 stream 模块的加载状态

Image

没启用 stub_status 模块
Image

<!-- gh-comment-id:2998450133 --> @xhal commented on GitHub (Jun 24, 2025): > 麻烦看一下这个页面中 stream 模块的加载状态 > > ![Image](https://github.com/user-attachments/assets/6a22e5ab-f2b0-479b-ab72-b7abf7951e50) 没启用 stub_status 模块 ![Image](https://github.com/user-attachments/assets/e3246d69-1e56-42c8-8c10-9ce65a38911f)
Author
Owner

@xhal commented on GitHub (Jun 24, 2025):

可以帮我试试更新至最新的开发版本,测试是否已经修复

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev -r https://cloud.nginxui.com/

有直接下载的链接不? 这个执行报错了,试了好几次

Image

<!-- gh-comment-id:2998558078 --> @xhal commented on GitHub (Jun 24, 2025): > 可以帮我试试更新至最新的开发版本,测试是否已经修复 > > ``` > bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev -r https://cloud.nginxui.com/ > ``` 有直接下载的链接不? 这个执行报错了,试了好几次 ![Image](https://github.com/user-attachments/assets/0326a9b4-37b6-4e78-86a5-c1da910b32cc)
Author
Owner

@0xJacky commented on GitHub (Jun 24, 2025):

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev 

换这个试试

<!-- gh-comment-id:2998559731 --> @0xJacky commented on GitHub (Jun 24, 2025): ``` bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev ``` 换这个试试
Author
Owner

@xhal commented on GitHub (Jun 24, 2025):

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev 

换这个试试

不行,换了这个还会有自动切换回英文的问题; 登陆的切换中文,登陆后又是英文

Image

<!-- gh-comment-id:2998585160 --> @xhal commented on GitHub (Jun 24, 2025): > ``` > bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev > ``` > > 换这个试试 不行,换了这个还会有自动切换回英文的问题; 登陆的切换中文,登陆后又是英文 ![Image](https://github.com/user-attachments/assets/51951ccd-8edc-4e9a-904c-eb153df5b0e1)
Author
Owner

@0xJacky commented on GitHub (Jun 24, 2025):

您再试一下安装新的 dev 开发版,查看 Dashboard > Nginx 页面显示的报错信息,麻烦提供整个页面的截图。如果有显示模块信息也可以看看 stream 模块的加载状态。

另外问一下,同一台机器内有安装多个 Nginx 吗?

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev 
<!-- gh-comment-id:2999590118 --> @0xJacky commented on GitHub (Jun 24, 2025): 您再试一下安装新的 dev 开发版,查看 Dashboard > Nginx 页面显示的报错信息,麻烦提供整个页面的截图。如果有显示模块信息也可以看看 stream 模块的加载状态。 另外问一下,同一台机器内有安装多个 Nginx 吗? ``` bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev ```
Author
Owner

@xhal commented on GitHub (Jun 25, 2025):

您再试一下安装新的 dev 开发版,查看 Dashboard > Nginx 页面显示的报错信息,麻烦提供整个页面的截图。如果有显示模块信息也可以看看 stream 模块的加载状态。

另外问一下,同一台机器内有安装多个 Nginx 吗?

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev 

更新了这个开发版,和最新的2.1.7; 还是不能显示; 没有多个nginx , 一台就这个

Image

Image

另外提一个优化, 配置文件如果没配置 ConfigPath ;检查目录是否包含 xx 都是显示读取 nginx.conf 失败

Image

<!-- gh-comment-id:3004179435 --> @xhal commented on GitHub (Jun 25, 2025): > 您再试一下安装新的 dev 开发版,查看 Dashboard > Nginx 页面显示的报错信息,麻烦提供整个页面的截图。如果有显示模块信息也可以看看 stream 模块的加载状态。 > > 另外问一下,同一台机器内有安装多个 Nginx 吗? > > ``` > bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev > ``` 更新了这个开发版,和最新的2.1.7; 还是不能显示; 没有多个nginx , 一台就这个 ![Image](https://github.com/user-attachments/assets/adba6c79-d507-45fd-a829-ef748d4596eb) ![Image](https://github.com/user-attachments/assets/7e31b0a2-4080-4f58-acef-effbe5deeab1) 另外提一个优化, 配置文件如果没配置 ConfigPath ;检查目录是否包含 xx 都是显示读取 nginx.conf 失败 ![Image](https://github.com/user-attachments/assets/c4ff7117-1d7f-47c4-afa3-5185521aaf72)
Author
Owner

@xhal commented on GitHub (Jun 25, 2025):

app.ini Nginx部分配置

Image

<!-- gh-comment-id:3004195758 --> @xhal commented on GitHub (Jun 25, 2025): app.ini Nginx部分配置 ![Image](https://github.com/user-attachments/assets/8135643c-fb26-48f4-a872-019d8d903577)
Author
Owner

@0xJacky commented on GitHub (Jun 25, 2025):

可以试试把 nginx 的执行目录加到 PATH 里,我现在判断是这个问题导致的

<!-- gh-comment-id:3004238771 --> @0xJacky commented on GitHub (Jun 25, 2025): 可以试试把 nginx 的执行目录加到 PATH 里,我现在判断是这个问题导致的
Author
Owner

@xhal commented on GitHub (Jun 25, 2025):

可以试试把 nginx 的执行目录加到 PATH 里,我现在判断是这个问题导致的

可以了!加到 PATH 后,重启后就出来了

Image

<!-- gh-comment-id:3005076670 --> @xhal commented on GitHub (Jun 25, 2025): > 可以试试把 nginx 的执行目录加到 PATH 里,我现在判断是这个问题导致的 可以了!加到 PATH 后,重启后就出来了 ![Image](https://github.com/user-attachments/assets/6fb9e70b-ff8d-4d12-a7cc-f31cc2174bdc)
Author
Owner

@0xJacky commented on GitHub (Jun 25, 2025):

好的

<!-- gh-comment-id:3005102135 --> @0xJacky commented on GitHub (Jun 25, 2025): 好的
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#6405
No description provided.