[GH-ISSUE #1212] 更新2.0后检查不通过 #3763

Closed
opened 2026-02-28 11:57:36 +03:00 by kerem · 7 comments
Owner

Originally created by @zouchengli on GitHub (Jul 5, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1212

Image

nginx -V nginx version: nginx/1.22.1 built with OpenSSL 3.0.15 3 Sep 2024 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -ffile-prefix-map=/build/reproducible-path/nginx-1.22.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_secure_link_module --with-http_sub_module --with-mail_ssl_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-http_geoip_module=dynamic --with-http_image_filter_module=dynamic --with-http_perl_module=dynamic --with-http_xslt_module=dynamic --with-mail=dynamic --with-stream=dynamic --with-stream_geoip_module=dynamic

原始2.0读取nginx -V中的error-log-path
而我这边系统默认配置就是=stderr

Originally created by @zouchengli on GitHub (Jul 5, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1212 <img width="1218" height="372" alt="Image" src="https://github.com/user-attachments/assets/ac336d5d-c156-41cf-a8ae-afdc415435a5" /> ` nginx -V nginx version: nginx/1.22.1 built with OpenSSL 3.0.15 3 Sep 2024 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -ffile-prefix-map=/build/reproducible-path/nginx-1.22.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_secure_link_module --with-http_sub_module --with-mail_ssl_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-http_geoip_module=dynamic --with-http_image_filter_module=dynamic --with-http_perl_module=dynamic --with-http_xslt_module=dynamic --with-mail=dynamic --with-stream=dynamic --with-stream_geoip_module=dynamic ` 原始2.0读取nginx -V中的error-log-path 而我这边系统默认配置就是=stderr
kerem 2026-02-28 11:57:36 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Jul 5, 2025):

有尝试更新到 v2.1.12 吗

<!-- gh-comment-id:3037744714 --> @0xJacky commented on GitHub (Jul 5, 2025): 有尝试更新到 v2.1.12 吗
Author
Owner

@0xJacky commented on GitHub (Jul 5, 2025):

2.1.12 会尝试检查 nginx.conf 中的 error_log 指令,如果确实是没有的话,就手动改一下 nginx-ui 的配置文件,指定错误文件的路径 https://nginxui.com/zh_CN/guide/config-nginx.html#errorlogpath

<!-- gh-comment-id:3037745503 --> @0xJacky commented on GitHub (Jul 5, 2025): 2.1.12 会尝试检查 nginx.conf 中的 error_log 指令,如果确实是没有的话,就手动改一下 nginx-ui 的配置文件,指定错误文件的路径 https://nginxui.com/zh_CN/guide/config-nginx.html#errorlogpath
Author
Owner

@zouchengli commented on GitHub (Jul 5, 2025):

有尝试更新到 v2.1.12 吗

嗯嗯,最新版本

<!-- gh-comment-id:3037751080 --> @zouchengli commented on GitHub (Jul 5, 2025): > 有尝试更新到 v2.1.12 吗 嗯嗯,最新版本
Author
Owner

@0xJacky commented on GitHub (Jul 5, 2025):

嗯嗯,那在 nginx.conf 里指定一下 error_log 指令,或者修改 nginx-ui 的配置文件

修改后均需要重启 nginx-ui

<!-- gh-comment-id:3037754125 --> @0xJacky commented on GitHub (Jul 5, 2025): 嗯嗯,那在 nginx.conf 里指定一下 error_log 指令,或者修改 nginx-ui 的配置文件 修改后均需要重启 nginx-ui
Author
Owner

@zouchengli commented on GitHub (Jul 5, 2025):

2.1.12 会尝试检查 nginx.conf 中的 error_log 指令,如果确实是没有的话,就手动改一下 nginx-ui 的配置文件,指定错误文件的路径 https://nginxui.com/zh_CN/guide/config-nginx.html#errorlogpath

我手动改完重启就好了

Image

其实可以考虑如果是stderr的话转成/var/log/nginx/error.log

<!-- gh-comment-id:3037759792 --> @zouchengli commented on GitHub (Jul 5, 2025): > 2.1.12 会尝试检查 nginx.conf 中的 error_log 指令,如果确实是没有的话,就手动改一下 nginx-ui 的配置文件,指定错误文件的路径 https://nginxui.com/zh_CN/guide/config-nginx.html#errorlogpath 我手动改完重启就好了 <img width="1218" height="137" alt="Image" src="https://github.com/user-attachments/assets/dcf9d1de-2b9b-4ec4-9f34-2aec1d545273" /> 其实可以考虑如果是stderr的话转成/var/log/nginx/error.log
Author
Owner

@zouchengli commented on GitHub (Jul 5, 2025):

嗯嗯,那在 nginx.conf 里指定一下 error_log 指令,或者修改 nginx-ui 的配置文件

修改后均需要重启 nginx-ui
在 nginx.conf 里指定一下 error_log 指令?我一开始就尝试过,然后没反应,所以就来咨询下你了,另外你有飞书联系方式吗,以后有啥问题建议直接反馈给你

<!-- gh-comment-id:3037826028 --> @zouchengli commented on GitHub (Jul 5, 2025): > 嗯嗯,那在 nginx.conf 里指定一下 error_log 指令,或者修改 nginx-ui 的配置文件 > > 修改后均需要重启 nginx-ui 在 nginx.conf 里指定一下 error_log 指令?我一开始就尝试过,然后没反应,所以就来咨询下你了,另外你有飞书联系方式吗,以后有啥问题建议直接反馈给你
Author
Owner

@0xJacky commented on GitHub (Jul 5, 2025):

确实没有飞书,有问题请发 issue,不接受私信哦

<!-- gh-comment-id:3037860212 --> @0xJacky commented on GitHub (Jul 5, 2025): 确实没有飞书,有问题请发 issue,不接受私信哦
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#3763
No description provided.