[GH-ISSUE #352] ERROR nginx/config_args.go:26 nginx.GetConfPath len(match) < 1 #199

Closed
opened 2026-02-26 12:07:36 +03:00 by kerem · 3 comments
Owner

Originally created by @orangejx on GitHub (Apr 10, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/352

Describe the bug
can not read config path dir when I start the ngx-ui,
ERROR nginx/config_args.go:26 nginx.GetConfPath len(match) < 1

Logs

2024-04-10 22:50:08	ERROR	nginx/config_args.go:26	nginx.GetConfPath len(match) < 1
2024-04-10 22:50:08	INFO	nginx-ui/main.go:22	Nginx configuration directory:
2024-04-10 22:50:08	INFO	logrotate/logrotate.go:15	logrotate start
2024-04-10 22:50:08	INFO	analytic/analytic.go:52	RecordServerAnalytic Started
2024-04-10 22:50:08	INFO	cert/auto_cert.go:21	AutoCert Worker Started
2024-04-10 22:50:08	INFO	logrotate/logrotate.go:45	logrotate end
2024-04-10 22:50:08	ERROR	nginx/config_args.go:26	nginx.GetConfPath len(match) < 1
2024-04-10 22:50:08	INFO	cert/auto_cert.go:27	AutoCert Worker End

Info (please complete the following information):

  • Server OS: alpine 3.19
  • Server Arch: x86_x64, arm64
  • Nginx UI Version: v2.0.0-beta.18-patch.2
  • Your Browser: Chrome, Safari
Originally created by @orangejx on GitHub (Apr 10, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/352 **Describe the bug** can not read config path dir when I start the ngx-ui, ERROR nginx/config_args.go:26 nginx.GetConfPath len(match) < 1 **Logs** ``` 2024-04-10 22:50:08 ERROR nginx/config_args.go:26 nginx.GetConfPath len(match) < 1 2024-04-10 22:50:08 INFO nginx-ui/main.go:22 Nginx configuration directory: 2024-04-10 22:50:08 INFO logrotate/logrotate.go:15 logrotate start 2024-04-10 22:50:08 INFO analytic/analytic.go:52 RecordServerAnalytic Started 2024-04-10 22:50:08 INFO cert/auto_cert.go:21 AutoCert Worker Started 2024-04-10 22:50:08 INFO logrotate/logrotate.go:45 logrotate end 2024-04-10 22:50:08 ERROR nginx/config_args.go:26 nginx.GetConfPath len(match) < 1 2024-04-10 22:50:08 INFO cert/auto_cert.go:27 AutoCert Worker End ``` **Info (please complete the following information):** - Server OS: `alpine 3.19` - Server Arch: `x86_x64, arm64` - Nginx UI Version: `v2.0.0-beta.18-patch.2` - Your Browser: Chrome, Safari
kerem closed this issue 2026-02-26 12:07:36 +03:00
Author
Owner

@0xJacky commented on GitHub (Apr 11, 2024):

Can you execuate nginx -V in your server and submit the output?

<!-- gh-comment-id:2048672701 --> @0xJacky commented on GitHub (Apr 11, 2024): Can you execuate `nginx -V` in your server and submit the output?
Author
Owner

@orangejx commented on GitHub (Apr 12, 2024):

nginx -V

yep, of course. here is configure argument:

nginx version: openresty/1.25.3.1
built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014)
built with OpenSSL 1.1.1w  11 Sep 2023
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl/include' --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 -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib' --with-pcre --with-compat --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-threads --with-pcre-jit --add-module=/tmp/ngx-fancyindex --add-module=/tmp/ngx_cache_purge --add-module=/tmp/nginx-dav-ext-module --with-stream --without-pcre2 --with-stream_ssl_preread_module
<!-- gh-comment-id:2052458783 --> @orangejx commented on GitHub (Apr 12, 2024): > nginx -V yep, of course. here is configure argument: ``` nginx version: openresty/1.25.3.1 built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014) built with OpenSSL 1.1.1w 11 Sep 2023 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl/include' --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 -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib' --with-pcre --with-compat --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-threads --with-pcre-jit --add-module=/tmp/ngx-fancyindex --add-module=/tmp/ngx_cache_purge --add-module=/tmp/nginx-dav-ext-module --with-stream --without-pcre2 --with-stream_ssl_preread_module ```
Author
Owner

@0xJacky commented on GitHub (Apr 13, 2024):

Sadly, nginxui can't retrieve the config directory of nginx in your environment. Please set it manually by modifying the app.ini, you can check this documentation for more information https://nginxui.com/guide/config-nginx.html#configdir.

<!-- gh-comment-id:2053601582 --> @0xJacky commented on GitHub (Apr 13, 2024): Sadly, nginxui can't retrieve the config directory of nginx in your environment. Please set it manually by modifying the app.ini, you can check this documentation for more information https://nginxui.com/guide/config-nginx.html#configdir.
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#199
No description provided.