[GH-ISSUE #1178] 【V2.1.6+】系统重启后,NginxUI启动无法访问且内存占用一直增加 #6416

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

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

原先是在线升级的 V2.1.6

重启后无法访问, 内存占用快速增加
才启动一会,内存占用18%
Image

1分钟左右后,内存占用50%
Image

后手动升级成 V2.1.8

重启后还是无法访问, 内存占用也一直在增加,但比较慢了

Image

10几分钟后,内存占用增加到10%
Image

系统版本:

cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

nginx -V信息

nginx -V
nginx version: openresty/1.27.1.1
built by gcc 13.2.0 (Ubuntu 13.2.0-23ubuntu4) 
built with OpenSSL 3.0.13 30 Jan 2024
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -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.27 --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.17 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.15 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=www --group=www --with-http_gzip_static_module --with-threads --with-http_ssl_module --with-http_image_filter_module --with-http_stub_status_module --with-http_v2_module --with-stream --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module

app.ini配置

[app]
PageSize  = 20
JwtSecret = 5106d6e6-fc3f-4f0b-a555-c0ssd0589e02df79

[server]
Host    = 
Port    = 9000
RunMode = debug
BaseUrl = 

[database]
Name = database

[auth]
IPWhiteList         = 
BanThresholdMinutes = 10
MaxAttempts         = 10

[casdoor]
Endpoint        = 
ClientId        = 
ClientSecret    = 
CertificatePath = 
Organization    = 
Application     = 
RedirectUri     = 
ExternalUrl     = 

[cert]
RecursiveNameservers = 
Email                = xxx@xxxx.net
CADir                = 
RenewalInterval      = 7
HTTPChallengePort    = 9180

[cluster]
Node = 

[crypto]
Secret = 677a2bcfe0dc94f53e2e77142ccd4081ac8efa76179b7d2e7fbc4cfb5d2d844c

[http]
GithubProxy        = https://ghfast.top/
InsecureSkipVerify = false

[logrotate]
Enabled  = false
CMD      = logrotate /etc/logrotate.d/nginx
Interval = 1440

[nginx]
AccessLogPath   = /usr/local/nginxUI/01-ng-logs/access.log
ErrorLogPath    = /usr/local/nginxUI/01-ng-logs/error.log
LogDirWhiteList = /usr/local/nginxUI/01-ng-logs/
ConfigDir       = /usr/local/nginxUI/00-ng-conf/
PIDPath         = /usr/local/openresty/nginx/logs/nginx.pid
TestConfigCmd   = /usr/local/openresty/bin/openresty -t
ReloadCmd       = /usr/local/openresty/bin/openresty -s reload
RestartCmd      = start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --pidfile /usr/local/openresty/nginx/logs/nginx.pid && nginx
ConfigPath      = /usr/local/nginxUI/00-ng-conf/nginx.conf

[node]
Name                 = 
Secret               = 512bff9e-a8c8-425a-abdc-23ssa6e13779a7
SkipInstallation     = false
Demo                 = false
ICPNumber            = 
PublicSecurityNumber = 

[openai]
BaseUrl = 
Token   = 
Proxy   = 
Model   = 
APIType = OPEN_AI

[terminal]
StartCmd = login

[webauthn]
RPDisplayName = 
RPID          = 
RPOrigins     = 

Originally created by @xhal on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1178 ### 原先是在线升级的 V2.1.6 重启后无法访问, 内存占用快速增加 才启动一会,内存占用18% <img width="688" alt="Image" src="https://github.com/user-attachments/assets/140d2571-d7e8-4837-a092-82898c7eb396" /> **1分钟左右后,内存占用50%** <img width="929" alt="Image" src="https://github.com/user-attachments/assets/b1fb5bf5-4705-4605-af6d-8c7293c298b3" /> ### 后手动升级成 V2.1.8 重启后还是无法访问, 内存占用也一直在增加,但比较慢了 <img width="927" alt="Image" src="https://github.com/user-attachments/assets/d41aaa81-733d-4384-8c67-da6873f94a66" /> **10几分钟后,内存占用增加到10%** ![Image](https://github.com/user-attachments/assets/7ddcbdad-f634-42fd-aa7d-dcc77f21115b) 系统版本: ```sh cat /etc/os-release PRETTY_NAME="Ubuntu 24.04.1 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.1 LTS (Noble Numbat)" VERSION_CODENAME=noble ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=noble LOGO=ubuntu-logo ``` nginx -V信息 ```sh nginx -V nginx version: openresty/1.27.1.1 built by gcc 13.2.0 (Ubuntu 13.2.0-23ubuntu4) built with OpenSSL 3.0.13 30 Jan 2024 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -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.27 --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.17 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.15 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=www --group=www --with-http_gzip_static_module --with-threads --with-http_ssl_module --with-http_image_filter_module --with-http_stub_status_module --with-http_v2_module --with-stream --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module ``` app.ini配置 ```ini [app] PageSize = 20 JwtSecret = 5106d6e6-fc3f-4f0b-a555-c0ssd0589e02df79 [server] Host = Port = 9000 RunMode = debug BaseUrl = [database] Name = database [auth] IPWhiteList = BanThresholdMinutes = 10 MaxAttempts = 10 [casdoor] Endpoint = ClientId = ClientSecret = CertificatePath = Organization = Application = RedirectUri = ExternalUrl = [cert] RecursiveNameservers = Email = xxx@xxxx.net CADir = RenewalInterval = 7 HTTPChallengePort = 9180 [cluster] Node = [crypto] Secret = 677a2bcfe0dc94f53e2e77142ccd4081ac8efa76179b7d2e7fbc4cfb5d2d844c [http] GithubProxy = https://ghfast.top/ InsecureSkipVerify = false [logrotate] Enabled = false CMD = logrotate /etc/logrotate.d/nginx Interval = 1440 [nginx] AccessLogPath = /usr/local/nginxUI/01-ng-logs/access.log ErrorLogPath = /usr/local/nginxUI/01-ng-logs/error.log LogDirWhiteList = /usr/local/nginxUI/01-ng-logs/ ConfigDir = /usr/local/nginxUI/00-ng-conf/ PIDPath = /usr/local/openresty/nginx/logs/nginx.pid TestConfigCmd = /usr/local/openresty/bin/openresty -t ReloadCmd = /usr/local/openresty/bin/openresty -s reload RestartCmd = start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --pidfile /usr/local/openresty/nginx/logs/nginx.pid && nginx ConfigPath = /usr/local/nginxUI/00-ng-conf/nginx.conf [node] Name = Secret = 512bff9e-a8c8-425a-abdc-23ssa6e13779a7 SkipInstallation = false Demo = false ICPNumber = PublicSecurityNumber = [openai] BaseUrl = Token = Proxy = Model = APIType = OPEN_AI [terminal] StartCmd = login [webauthn] RPDisplayName = RPID = RPOrigins = ```
kerem 2026-03-01 17:11:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

补充下进程信息, wget 访问一直在等待中...

Image

<!-- gh-comment-id:3005208469 --> @xhal commented on GitHub (Jun 25, 2025): 补充下进程信息, wget 访问一直在等待中... ![Image](https://github.com/user-attachments/assets/b21f65fd-f73d-416e-99be-12c22092ce38)
Author
Owner

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

可以看看 nginx-ui 的日志吗

<!-- gh-comment-id:3005221129 --> @0xJacky commented on GitHub (Jun 25, 2025): 可以看看 nginx-ui 的日志吗
Author
Owner

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

可以看看 nginx-ui 的日志吗

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)


2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:401
[0.178ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="migrations"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:412
[0.464ms] [rows:1] SELECT count(*) FROM `migrations` WHERE id = "202505120000001"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.038ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="config_backups"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.245ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "config_backups" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.066ms] [rows:-] SELECT * FROM `config_backups` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[2.399ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "config_backups" AND name = "idx_config_backups_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.015ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="users"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.091ms] [rows:3] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "users" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.079ms] [rows:-] SELECT * FROM `users` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.039ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "users" AND name = "idx_users_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="auth_tokens"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.083ms] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "auth_tokens" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.101ms] [rows:-] SELECT * FROM `auth_tokens` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.027ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="dns_credentials"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.643ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "dns_credentials" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.166ms] [rows:-] SELECT * FROM `dns_credentials` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "dns_credentials" AND name = "idx_dns_credentials_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="acme_users"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.069ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "acme_users" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.211ms] [rows:-] SELECT * FROM `acme_users` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.017ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "acme_users" AND name = "idx_acme_users_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="certs"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.166ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "certs" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.181ms] [rows:-] SELECT * FROM `certs` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.944ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "certs" AND name = "idx_certs_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="chat_gpt_logs"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.075ms] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "chat_gpt_logs" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.108ms] [rows:-] SELECT * FROM `chat_gpt_logs` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="env_groups"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.084ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "env_groups" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.105ms] [rows:-] SELECT * FROM `env_groups` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "env_groups" AND name = "idx_env_groups_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="sites"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.114ms] [rows:3] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "sites" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.099ms] [rows:-] SELECT * FROM `sites` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "sites" AND name = "idx_sites_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "sites" AND name = "idx_sites_path"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="streams"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.066ms] [rows:3] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "streams" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.065ms] [rows:-] SELECT * FROM `streams` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "streams" AND name = "idx_streams_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "streams" AND name = "idx_streams_path"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.005ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="environments"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.055ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "environments" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.120ms] [rows:-] SELECT * FROM `environments` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "environments" AND name = "idx_environments_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="notifications"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.070ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "notifications" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.073ms] [rows:-] SELECT * FROM `notifications` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "notifications" AND name = "idx_notifications_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="ban_ips"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.088ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "ban_ips" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.053ms] [rows:-] SELECT * FROM `ban_ips` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "ban_ips" AND name = "idx_ban_ips_expired_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="configs"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.073ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "configs" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.107ms] [rows:-] SELECT * FROM `configs` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.010ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "configs" AND name = "idx_configs_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="passkeys"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.110ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "passkeys" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.074ms] [rows:-] SELECT * FROM `passkeys` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "passkeys" AND name = "idx_passkeys_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="external_notifies"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.068ms] [rows:4] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "external_notifies" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.069ms] [rows:-] SELECT * FROM `external_notifies` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "external_notifies" AND name = "idx_external_notifies_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "external_notifies" AND name = "idx_external_notifies_type"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "external_notifies" AND name = "idx_external_notifies_language"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.005ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="auto_backups"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.118ms] [rows:5] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "auto_backups" AND sql IS NOT NULL order by type = "table" desc

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.120ms] [rows:-] SELECT * FROM `auto_backups` LIMIT 1

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.013ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_deleted_at"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.008ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_backup_type"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_storage_type"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76
[0.008ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_enabled"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:401
[0.005ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="migrations"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:412
[0.126ms] [rows:1] SELECT count(*) FROM `migrations` WHERE id = "20250405000001"

2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:412
[0.030ms] [rows:1] SELECT count(*) FROM `migrations` WHERE id = "20250405000002"

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/cert/register.go:26
[0.561ms] [rows:1] SELECT * FROM `acme_users` WHERE `acme_users`.`email` = "xx@xxx.net" AND `acme_users`.`ca_dir` = "https://acme-v02.api.letsencrypt.org/directory" AND `acme_users`.`deleted_at` IS NULL ORDER BY `acme_users`.`id` LIMIT 1

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/backup/auto_backup.go:310
[2.887ms] [rows:0] SELECT * FROM `auto_backups` WHERE `auto_backups`.`enabled` = true AND `auto_backups`.`deleted_at` IS NULL
2025-06-25 23:02:20	INFO	/home/runner/work/nginx-ui/nginx-ui/internal/analytic/node_record.go:117	RetrieveNodesStatus start

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/analytic/node_record.go:127
[0.510ms] [rows:0] SELECT * FROM `environments` WHERE `environments`.`enabled` = true AND `environments`.`deleted_at` IS NULL
2025-06-25 23:02:20	INFO	/home/runner/work/nginx-ui/nginx-ui/internal/analytic/node_record.go:165	RetrieveNodesStatus exited
2025-06-25 23:02:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/passkey/webauthn.go:18	WebAuthn settings are not configured

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/kernel/register_acme_user.go:12
[0.260ms] [rows:0] SELECT * FROM `acme_users` WHERE `acme_users`.`register_on_startup` = true AND `acme_users`.`deleted_at` IS NULL
2025-06-25 23:02:20	INFO	/home/runner/work/nginx-ui/nginx-ui/internal/cert/auto_cert.go:23	AutoCert Worker Started

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/model/cert.go:82
[0.450ms] [rows:0] SELECT * FROM `certs` WHERE `auto_cert` = 1 AND `certs`.`deleted_at` IS NULL
2025-06-25 23:02:20	INFO	/home/runner/work/nginx-ui/nginx-ui/internal/cert/auto_cert.go:28	AutoCert Worker End
2025-06-25 23:02:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16	clean expired auth tokens

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18
[0.347ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750863740

2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/cert/check_expired.go:14
[0.263ms] [rows:0] SELECT * FROM `certs` WHERE `certs`.`deleted_at` IS NULL
2025-06-25 23:07:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16	clean expired auth tokens

2025/06/25 23:07:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18
[0.760ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864040
2025-06-25 23:12:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16	clean expired auth tokens

2025/06/25 23:12:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18
[1.326ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864340
2025-06-25 23:17:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16	clean expired auth tokens

2025/06/25 23:17:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18
[0.631ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864640
2025-06-25 23:22:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16	clean expired auth tokens

2025/06/25 23:22:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18
[0.588ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864940
2025-06-25 23:27:20	DEBUG	/home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16	clean expired auth tokens

2025/06/25 23:27:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18
[0.485ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750865240

<!-- gh-comment-id:3006670160 --> @xhal commented on GitHub (Jun 26, 2025): > 可以看看 nginx-ui 的日志吗 ```log [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode) 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:401 [0.178ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="migrations" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:412 [0.464ms] [rows:1] SELECT count(*) FROM `migrations` WHERE id = "202505120000001" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.038ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="config_backups" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.245ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "config_backups" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.066ms] [rows:-] SELECT * FROM `config_backups` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [2.399ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "config_backups" AND name = "idx_config_backups_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.015ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="users" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.091ms] [rows:3] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "users" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.079ms] [rows:-] SELECT * FROM `users` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.039ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "users" AND name = "idx_users_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="auth_tokens" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.083ms] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "auth_tokens" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.101ms] [rows:-] SELECT * FROM `auth_tokens` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.027ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="dns_credentials" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.643ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "dns_credentials" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.166ms] [rows:-] SELECT * FROM `dns_credentials` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "dns_credentials" AND name = "idx_dns_credentials_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="acme_users" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.069ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "acme_users" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.211ms] [rows:-] SELECT * FROM `acme_users` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.017ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "acme_users" AND name = "idx_acme_users_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="certs" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.166ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "certs" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.181ms] [rows:-] SELECT * FROM `certs` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.944ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "certs" AND name = "idx_certs_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="chat_gpt_logs" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.075ms] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "chat_gpt_logs" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.108ms] [rows:-] SELECT * FROM `chat_gpt_logs` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="env_groups" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.084ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "env_groups" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.105ms] [rows:-] SELECT * FROM `env_groups` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "env_groups" AND name = "idx_env_groups_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="sites" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.114ms] [rows:3] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "sites" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.099ms] [rows:-] SELECT * FROM `sites` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "sites" AND name = "idx_sites_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "sites" AND name = "idx_sites_path" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="streams" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.066ms] [rows:3] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "streams" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.065ms] [rows:-] SELECT * FROM `streams` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "streams" AND name = "idx_streams_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "streams" AND name = "idx_streams_path" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.005ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="environments" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.055ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "environments" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.120ms] [rows:-] SELECT * FROM `environments` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "environments" AND name = "idx_environments_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="notifications" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.070ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "notifications" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.073ms] [rows:-] SELECT * FROM `notifications` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.009ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "notifications" AND name = "idx_notifications_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="ban_ips" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.088ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "ban_ips" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.053ms] [rows:-] SELECT * FROM `ban_ips` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "ban_ips" AND name = "idx_ban_ips_expired_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="configs" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.073ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "configs" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.107ms] [rows:-] SELECT * FROM `configs` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.010ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "configs" AND name = "idx_configs_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="passkeys" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.110ms] [rows:2] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "passkeys" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.074ms] [rows:-] SELECT * FROM `passkeys` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "passkeys" AND name = "idx_passkeys_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="external_notifies" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.068ms] [rows:4] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "external_notifies" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.069ms] [rows:-] SELECT * FROM `external_notifies` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.012ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "external_notifies" AND name = "idx_external_notifies_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "external_notifies" AND name = "idx_external_notifies_type" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.006ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "external_notifies" AND name = "idx_external_notifies_language" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.005ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="auto_backups" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.118ms] [rows:5] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "auto_backups" AND sql IS NOT NULL order by type = "table" desc 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.120ms] [rows:-] SELECT * FROM `auto_backups` LIMIT 1 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.013ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_deleted_at" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.008ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_backup_type" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.007ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_storage_type" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/model/model.go:76 [0.008ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type = "index" AND tbl_name = "auto_backups" AND name = "idx_auto_backups_enabled" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:401 [0.005ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="migrations" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:412 [0.126ms] [rows:1] SELECT count(*) FROM `migrations` WHERE id = "20250405000001" 2025/06/25 23:02:20 /home/runner/go/pkg/mod/github.com/go-gormigrate/gormigrate/v2@v2.1.4/gormigrate.go:412 [0.030ms] [rows:1] SELECT count(*) FROM `migrations` WHERE id = "20250405000002" 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/cert/register.go:26 [0.561ms] [rows:1] SELECT * FROM `acme_users` WHERE `acme_users`.`email` = "xx@xxx.net" AND `acme_users`.`ca_dir` = "https://acme-v02.api.letsencrypt.org/directory" AND `acme_users`.`deleted_at` IS NULL ORDER BY `acme_users`.`id` LIMIT 1 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/backup/auto_backup.go:310 [2.887ms] [rows:0] SELECT * FROM `auto_backups` WHERE `auto_backups`.`enabled` = true AND `auto_backups`.`deleted_at` IS NULL 2025-06-25 23:02:20 INFO /home/runner/work/nginx-ui/nginx-ui/internal/analytic/node_record.go:117 RetrieveNodesStatus start 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/analytic/node_record.go:127 [0.510ms] [rows:0] SELECT * FROM `environments` WHERE `environments`.`enabled` = true AND `environments`.`deleted_at` IS NULL 2025-06-25 23:02:20 INFO /home/runner/work/nginx-ui/nginx-ui/internal/analytic/node_record.go:165 RetrieveNodesStatus exited 2025-06-25 23:02:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/passkey/webauthn.go:18 WebAuthn settings are not configured 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/kernel/register_acme_user.go:12 [0.260ms] [rows:0] SELECT * FROM `acme_users` WHERE `acme_users`.`register_on_startup` = true AND `acme_users`.`deleted_at` IS NULL 2025-06-25 23:02:20 INFO /home/runner/work/nginx-ui/nginx-ui/internal/cert/auto_cert.go:23 AutoCert Worker Started 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/model/cert.go:82 [0.450ms] [rows:0] SELECT * FROM `certs` WHERE `auto_cert` = 1 AND `certs`.`deleted_at` IS NULL 2025-06-25 23:02:20 INFO /home/runner/work/nginx-ui/nginx-ui/internal/cert/auto_cert.go:28 AutoCert Worker End 2025-06-25 23:02:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16 clean expired auth tokens 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18 [0.347ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750863740 2025/06/25 23:02:20 /home/runner/work/nginx-ui/nginx-ui/internal/cert/check_expired.go:14 [0.263ms] [rows:0] SELECT * FROM `certs` WHERE `certs`.`deleted_at` IS NULL 2025-06-25 23:07:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16 clean expired auth tokens 2025/06/25 23:07:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18 [0.760ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864040 2025-06-25 23:12:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16 clean expired auth tokens 2025/06/25 23:12:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18 [1.326ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864340 2025-06-25 23:17:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16 clean expired auth tokens 2025/06/25 23:17:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18 [0.631ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864640 2025-06-25 23:22:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16 clean expired auth tokens 2025/06/25 23:22:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18 [0.588ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750864940 2025-06-25 23:27:20 DEBUG /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:16 clean expired auth tokens 2025/06/25 23:27:20 /home/runner/work/nginx-ui/nginx-ui/internal/cron/clear_token.go:18 [0.485ms] [rows:0] DELETE FROM `auth_tokens` WHERE `auth_tokens`.`expired_at` < 1750865240 ```
Author
Owner

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

以上是全部日志了吗

<!-- gh-comment-id:3006752755 --> @0xJacky commented on GitHub (Jun 26, 2025): 以上是全部日志了吗
Author
Owner

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

以上是全部日志了吗

是的,从启动开始 到 结束进程

<!-- gh-comment-id:3006855750 --> @xhal commented on GitHub (Jun 26, 2025): > 以上是全部日志了吗 是的,从启动开始 到 结束进程
Author
Owner

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

了解,我看一下

<!-- gh-comment-id:3006859990 --> @0xJacky commented on GitHub (Jun 26, 2025): 了解,我看一下
Author
Owner

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

可否私发一下 app.ini 和 database.db 给我 me@jackyu.cn 感谢

<!-- gh-comment-id:3006898633 --> @0xJacky commented on GitHub (Jun 26, 2025): 可否私发一下 app.ini 和 database.db 给我 me@jackyu.cn 感谢
Author
Owner

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

可否私发一下 app.ini 和 database.db 给我 me@jackyu.cn 感谢

已发送

<!-- gh-comment-id:3006913334 --> @xhal commented on GitHub (Jun 26, 2025): > 可否私发一下 app.ini 和 database.db 给我 [me@jackyu.cn](mailto:me@jackyu.cn) 感谢 已发送
Author
Owner

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

可否私发一下 app.ini 和 database.db 给我 me@jackyu.cn 感谢

已发送

收到

<!-- gh-comment-id:3006920910 --> @0xJacky commented on GitHub (Jun 26, 2025): > > 可否私发一下 app.ini 和 database.db 给我 [me@jackyu.cn](mailto:me@jackyu.cn) 感谢 > > 已发送 收到
Author
Owner

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

试试更新到开发版还会有同样的问题吗?

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev
<!-- gh-comment-id:3006953643 --> @0xJacky commented on GitHub (Jun 26, 2025): 试试更新到开发版还会有同样的问题吗? ```bash bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev ```
Author
Owner

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

我可能大概知道了

<!-- gh-comment-id:3006960696 --> @0xJacky commented on GitHub (Jun 26, 2025): 我可能大概知道了
Author
Owner

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

可以试试最新的开发版

<!-- gh-comment-id:3007018104 --> @0xJacky commented on GitHub (Jun 26, 2025): 可以试试最新的开发版
Author
Owner

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

可以试试最新的开发版

更新开发版本, streams菜单不见了; 内存占用10%,还是有点高
nginx 命令目录,已配置到 PATH

Image

Image

<!-- gh-comment-id:3007749682 --> @xhal commented on GitHub (Jun 26, 2025): > 可以试试最新的开发版 更新开发版本, streams菜单不见了; 内存占用10%,还是有点高 nginx 命令目录,已配置到 PATH ![Image](https://github.com/user-attachments/assets/05bc50b1-89c2-42e9-9079-faeefcd9ab34) ![Image](https://github.com/user-attachments/assets/9e5c014b-6795-41d3-99c6-028d592f9ad2)
Author
Owner

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

应该还是没读到环境变量,这两个版本没改过这个部分

<!-- gh-comment-id:3007760663 --> @0xJacky commented on GitHub (Jun 26, 2025): 应该还是没读到环境变量,这两个版本没改过这个部分
Author
Owner

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

如果您认为内存占用存在异常,可以切换到 debug 模式,然后提供您认为异常时的 pprof 信息

http://localhost:9001/api/debug/pprof/allocs?debug=1
http://localhost:9001/api/debug/pprof/goroutine?debug=1
http://localhost:9001/api/debug/pprof/heap?debug=1

通过压缩包上传

<!-- gh-comment-id:3007829916 --> @0xJacky commented on GitHub (Jun 26, 2025): 如果您认为内存占用存在异常,可以切换到 debug 模式,然后提供您认为异常时的 pprof 信息 http://localhost:9001/api/debug/pprof/allocs?debug=1 http://localhost:9001/api/debug/pprof/goroutine?debug=1 http://localhost:9001/api/debug/pprof/heap?debug=1 通过压缩包上传
Author
Owner

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

如果您认为内存占用存在异常,可以切换到 debug 模式,然后提供您认为异常时的 pprof 信息

http://localhost:9001/api/debug/pprof/allocs?debug=1 http://localhost:9001/api/debug/pprof/goroutine?debug=1 http://localhost:9001/api/debug/pprof/heap?debug=1

通过压缩包上传

nginx-ui-debuginfo.zip

<!-- gh-comment-id:3008531541 --> @xhal commented on GitHub (Jun 26, 2025): > 如果您认为内存占用存在异常,可以切换到 debug 模式,然后提供您认为异常时的 pprof 信息 > > http://localhost:9001/api/debug/pprof/allocs?debug=1 http://localhost:9001/api/debug/pprof/goroutine?debug=1 http://localhost:9001/api/debug/pprof/heap?debug=1 > > 通过压缩包上传 [nginx-ui-debuginfo.zip](https://github.com/user-attachments/files/20927302/nginx-ui-debuginfo.zip)
Author
Owner

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

可以,这个日志很关键

<!-- gh-comment-id:3008561792 --> @0xJacky commented on GitHub (Jun 26, 2025): 可以,这个日志很关键
Author
Owner

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

您可以更新至最新的开发版测试问题是否已经修复。

经过日志分析,应该是配置文件中出现了循环引用,我之前没有处理到这个边界情况,导致无限递归了。

<!-- gh-comment-id:3008821881 --> @0xJacky commented on GitHub (Jun 26, 2025): 您可以更新至最新的开发版测试问题是否已经修复。 经过日志分析,应该是配置文件中出现了循环引用,我之前没有处理到这个边界情况,导致无限递归了。
Author
Owner

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

您可以更新至最新的开发版测试问题是否已经修复。

经过日志分析,应该是配置文件中出现了循环引用,我之前没有处理到这个边界情况,导致无限递归了。

-rwxr-xr-x 1 root root 100947400 Jun 27 10:02 nginx-ui*

10点02分 更新后,内存占用还是会上到400多MB

Image

一晚上没关,监控CPU/内存, 一直都很高

Image

<!-- gh-comment-id:3011135180 --> @xhal commented on GitHub (Jun 27, 2025): > 您可以更新至最新的开发版测试问题是否已经修复。 > > 经过日志分析,应该是配置文件中出现了循环引用,我之前没有处理到这个边界情况,导致无限递归了。 `-rwxr-xr-x 1 root root 100947400 Jun 27 10:02 nginx-ui*` 10点02分 更新后,内存占用还是会上到400多MB ![Image](https://github.com/user-attachments/assets/6241e25e-dbef-4bea-831c-59062e63494c) 一晚上没关,监控CPU/内存, 一直都很高 ![Image](https://github.com/user-attachments/assets/7dbf0d7b-2ffb-4e33-b610-4ee5320859d0)
Author
Owner

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

麻烦 journalctl -fu nginx-ui 截图一下大量 ERROR 的报错

<!-- gh-comment-id:3011163377 --> @0xJacky commented on GitHub (Jun 27, 2025): 麻烦 `journalctl -fu nginx-ui` 截图一下大量 ERROR 的报错
Author
Owner

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

麻烦 journalctl -fu nginx-ui 截图一下大量 ERROR 的报错

Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
<!-- gh-comment-id:3011179204 --> @xhal commented on GitHub (Jun 27, 2025): > 麻烦 `journalctl -fu nginx-ui` 截图一下大量 ERROR 的报错 ```log Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 10:41:50 iv-ydjt3zpzpcwh2yo7flra nginx-ui[624090]: 2025-06-27 10:41:50 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 ```
Author
Owner

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

可以再更新一次到最新开发版本并测试。关于环境变量的问题还需要您进行正确的配置。

bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev
<!-- gh-comment-id:3011543363 --> @0xJacky commented on GitHub (Jun 27, 2025): 可以再更新一次到最新开发版本并测试。关于环境变量的问题还需要您进行正确的配置。 ``` bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev ```
Author
Owner

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

可以再更新一次到最新开发版本并测试。关于环境变量的问题还需要您进行正确的配置。

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

-rwxr-xr-x 1 root root 100947400 Jun 27 13:42 nginx-ui*

更新后,没什么变化; PATH环境变量正常 ,可正常执行

Image

错误日志

Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83        nginx.GetPrefix len(match) < 1
Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16        ERROR        /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46        exec: no command
<!-- gh-comment-id:3011776395 --> @xhal commented on GitHub (Jun 27, 2025): > 可以再更新一次到最新开发版本并测试。关于环境变量的问题还需要您进行正确的配置。 > > ``` > bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev > ``` ` -rwxr-xr-x 1 root root 100947400 Jun 27 13:42 nginx-ui* ` 更新后,没什么变化; PATH环境变量正常 ,可正常执行 ![Image](https://github.com/user-attachments/assets/bddd4537-6d5c-45c8-9e46-70df11a20cad) 错误日志 ```log Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:83 nginx.GetPrefix len(match) < 1 Jun 27 13:56:16 iv-ydjt3zpzpcwh2yo7flra nginx-ui[718739]: 2025-06-27 13:56:16 ERROR /home/runner/work/nginx-ui/nginx-ui/internal/nginx/config_args.go:46 exec: no command ```
Author
Owner

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

是不是因为用了 软链接的问题; 2.1.x 版本之前是没问题的

Image

<!-- gh-comment-id:3011781995 --> @xhal commented on GitHub (Jun 27, 2025): 是不是因为用了 软链接的问题; 2.1.x 版本之前是没问题的 ![Image](https://github.com/user-attachments/assets/8d841576-3203-43f4-9057-47cd22791b5d)
Author
Owner

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

nginx-ui -v 看一下输出?

<!-- gh-comment-id:3011912246 --> @0xJacky commented on GitHub (Jun 27, 2025): nginx-ui -v 看一下输出?
Author
Owner

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

nginx-ui -v 看一下输出?

用这命令更新的
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev

/usr/local/bin# ./nginx-ui -v
nginx-ui 2.1.8 2(442) 4217b459 (go1.24.4 linux/amd64)
Yet another Nginx Web UI
<!-- gh-comment-id:3011992155 --> @xhal commented on GitHub (Jun 27, 2025): > nginx-ui -v 看一下输出? 用这命令更新的 ` bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel dev ` ```sh /usr/local/bin# ./nginx-ui -v nginx-ui 2.1.8 2(442) 4217b459 (go1.24.4 linux/amd64) Yet another Nginx Web UI ```
Author
Owner

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

再用命令更新了次,版本是一样的

Image

<!-- gh-comment-id:3012007024 --> @xhal commented on GitHub (Jun 27, 2025): 再用命令更新了次,版本是一样的 ![Image](https://github.com/user-attachments/assets/86ac28a7-063e-4e7e-90b3-1adc641426cb)
Author
Owner

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

看了下 config_args.go 代码,好像是getNginxExePath 方法有问题,评估下能否这样改

var (
	nginxExePath     string
	commonNginxPaths = []string{
		"/usr/sbin/nginx",
		"/usr/local/bin/nginx",
		"/opt/nginx/sbin/nginx",
		"/usr/local/openresty/nginx/sbin/nginx",
	}
)

// Returns the path to the nginx executable
func getNginxExePath() string {
	if nginxExePath != "" {
		return nginxExePath
	}

	// 尝试从配置获取路径
	if settings.NginxSettings.ExePath != "" {
		path := settings.NginxSettings.ExePath
		if isValidExecutable(path) {
			nginxExePath = path
			return nginxExePath
		}
		logger.Error("Configured Nginx executable path is invalid")
	}

	// 尝试通过 LookPath 查找
	var path string
	var err error
	if runtime.GOOS == "windows" {
		path, err = exec.LookPath("nginx.exe")
	} else {
		path, err = exec.LookPath("nginx")
	}
	if err == nil {
		if absPath, err := filepath.Abs(path); err == nil {
			nginxExePath = absPath
			return nginxExePath
		}
		nginxExePath = path
		return nginxExePath
	}

	// 尝试常见安装路径
	for _, p := range commonNginxPaths {
		if isValidExecutable(p) {
			nginxExePath = p
			return nginxExePath
		}
	}

	logger.Error("Failed to find Nginx executable")
	return ""
}

// isValidExecutable 检查路径是否存在且是可执行文件
func isValidExecutable(path string) bool {
	info, err := os.Stat(path)
	if err != nil {
		return false
	}
	if info.IsDir() {
		return false
	}
	// 简单检查是否有执行权限(仅适用于 Unix)
	if runtime.GOOS != "windows" {
		if (info.Mode().Perm() & 0o111) == 0 {
			return false
		}
	}
	return true
}
<!-- gh-comment-id:3012530056 --> @xhal commented on GitHub (Jun 27, 2025): 看了下 `config_args.go `代码,好像是`getNginxExePath `方法有问题,评估下能否这样改 ```go var ( nginxExePath string commonNginxPaths = []string{ "/usr/sbin/nginx", "/usr/local/bin/nginx", "/opt/nginx/sbin/nginx", "/usr/local/openresty/nginx/sbin/nginx", } ) // Returns the path to the nginx executable func getNginxExePath() string { if nginxExePath != "" { return nginxExePath } // 尝试从配置获取路径 if settings.NginxSettings.ExePath != "" { path := settings.NginxSettings.ExePath if isValidExecutable(path) { nginxExePath = path return nginxExePath } logger.Error("Configured Nginx executable path is invalid") } // 尝试通过 LookPath 查找 var path string var err error if runtime.GOOS == "windows" { path, err = exec.LookPath("nginx.exe") } else { path, err = exec.LookPath("nginx") } if err == nil { if absPath, err := filepath.Abs(path); err == nil { nginxExePath = absPath return nginxExePath } nginxExePath = path return nginxExePath } // 尝试常见安装路径 for _, p := range commonNginxPaths { if isValidExecutable(p) { nginxExePath = p return nginxExePath } } logger.Error("Failed to find Nginx executable") return "" } // isValidExecutable 检查路径是否存在且是可执行文件 func isValidExecutable(path string) bool { info, err := os.Stat(path) if err != nil { return false } if info.IsDir() { return false } // 简单检查是否有执行权限(仅适用于 Unix) if runtime.GOOS != "windows" { if (info.Mode().Perm() & 0o111) == 0 { return false } } return true } ```
Author
Owner

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

新增了一个 SbinPath 的配置项,您可以手动指定一下 nginx 的执行路径以避免 $PATH 的问题

Image

<!-- gh-comment-id:3014790996 --> @0xJacky commented on GitHub (Jun 28, 2025): 新增了一个 SbinPath 的配置项,您可以手动指定一下 nginx 的执行路径以避免 $PATH 的问题 ![Image](https://github.com/user-attachments/assets/8ee3864f-fa22-4103-bb8d-b1126c5ec965)
Author
Owner

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

现在,您可以再次更新至最新开发版,测试问题是否得到了解决。

nginx-ui -v

应当输出 nginx-ui 2.1.9 版本

<!-- gh-comment-id:3014842941 --> @0xJacky commented on GitHub (Jun 28, 2025): 现在,您可以再次更新至最新开发版,测试问题是否得到了解决。 ``` nginx-ui -v ``` 应当输出 nginx-ui 2.1.9 版本
Author
Owner

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

现在,您可以再次更新至最新开发版,测试问题是否得到了解决。

nginx-ui -v

应当输出 nginx-ui 2.1.9 版本

更新后,服务启动报错, 重启也一样; 但用命令 /usr/local/bin/nginx-ui --config /usr/local/etc/nginx-ui/app.ini 可正常启动
Image

<!-- gh-comment-id:3014851375 --> @xhal commented on GitHub (Jun 28, 2025): > 现在,您可以再次更新至最新开发版,测试问题是否得到了解决。 > > ``` > nginx-ui -v > ``` > > 应当输出 nginx-ui 2.1.9 版本 更新后,服务启动报错, 重启也一样; 但用命令 `/usr/local/bin/nginx-ui --config /usr/local/etc/nginx-ui/app.ini` 可正常启动 ![Image](https://github.com/user-attachments/assets/b03bf0d9-c91c-4adf-af32-408557250e9b)
Author
Owner

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

看一下 journalctl -u nginx-ui.service 的具体报错

<!-- gh-comment-id:3014858067 --> @0xJacky commented on GitHub (Jun 28, 2025): 看一下 `journalctl -u nginx-ui.service` 的具体报错
Author
Owner

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

看一下 journalctl -u nginx-ui.service 的具体报错

Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Scheduled restart job, restart counter is at 3.
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: Started nginx-ui.service - Yet another WebUI for Nginx.
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: panic: runtime error: invalid memory address or nil pointer dereference
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe1f5c3]
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: goroutine 1 [running]:
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: go.uber.org/zap.(*SugaredLogger).logln(0x0, 0x2, {0xc0004d7d80, 0x1, 0x1}, {0x0, 0x0, 0x0})
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]:         /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:361 +0x43
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: go.uber.org/zap.(*SugaredLogger).Errorln(...)
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]:         /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:318
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/uozi-tech/cosy/logger.Error(...)
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]:         /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.2/logger/logger.go:133
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/0xJacky/Nginx-UI/internal/nginx.getNginxV()
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]:         /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_cmd.go:55 +0xb3
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/0xJacky/Nginx-UI/internal/nginx.GetPrefix()
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]:         /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_path.go:35 +0x17
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/0xJacky/Nginx-UI/internal/nginx_log.init.0()
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]:         /home/runner/work/nginx-ui/nginx-ui/internal/nginx_log/nginx_log.go:25 +0x13
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Failed with result 'exit-code'.
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Scheduled restart job, restart counter is at 4.
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: Started nginx-ui.service - Yet another WebUI for Nginx.
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: panic: runtime error: invalid memory address or nil pointer dereference
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe1f5c3]
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: goroutine 1 [running]:
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: go.uber.org/zap.(*SugaredLogger).logln(0x0, 0x2, {0xc000419d80, 0x1, 0x1}, {0x0, 0x0, 0x0})
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]:         /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:361 +0x43
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: go.uber.org/zap.(*SugaredLogger).Errorln(...)
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]:         /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:318
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/uozi-tech/cosy/logger.Error(...)
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]:         /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.2/logger/logger.go:133
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/0xJacky/Nginx-UI/internal/nginx.getNginxV()
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]:         /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_cmd.go:55 +0xb3
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/0xJacky/Nginx-UI/internal/nginx.GetPrefix()
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]:         /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_path.go:35 +0x17
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/0xJacky/Nginx-UI/internal/nginx_log.init.0()
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]:         /home/runner/work/nginx-ui/nginx-ui/internal/nginx_log/nginx_log.go:25 +0x13
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Failed with result 'exit-code'.
Jun 28 10:28:18 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Scheduled restart job, restart counter is at 5.
Jun 28 10:28:18 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Start request repeated too quickly.
Jun 28 10:28:18 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Failed with result 'exit-code'.
<!-- gh-comment-id:3014866661 --> @xhal commented on GitHub (Jun 28, 2025): > 看一下 `journalctl -u nginx-ui.service` 的具体报错 ```log Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Scheduled restart job, restart counter is at 3. Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: Started nginx-ui.service - Yet another WebUI for Nginx. Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: panic: runtime error: invalid memory address or nil pointer dereference Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe1f5c3] Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: goroutine 1 [running]: Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: go.uber.org/zap.(*SugaredLogger).logln(0x0, 0x2, {0xc0004d7d80, 0x1, 0x1}, {0x0, 0x0, 0x0}) Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:361 +0x43 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: go.uber.org/zap.(*SugaredLogger).Errorln(...) Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:318 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/uozi-tech/cosy/logger.Error(...) Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.2/logger/logger.go:133 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/0xJacky/Nginx-UI/internal/nginx.getNginxV() Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_cmd.go:55 +0xb3 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/0xJacky/Nginx-UI/internal/nginx.GetPrefix() Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_path.go:35 +0x17 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: github.com/0xJacky/Nginx-UI/internal/nginx_log.init.0() Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976368]: /home/runner/work/nginx-ui/nginx-ui/internal/nginx_log/nginx_log.go:25 +0x13 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Failed with result 'exit-code'. Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Scheduled restart job, restart counter is at 4. Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: Started nginx-ui.service - Yet another WebUI for Nginx. Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: panic: runtime error: invalid memory address or nil pointer dereference Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe1f5c3] Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: goroutine 1 [running]: Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: go.uber.org/zap.(*SugaredLogger).logln(0x0, 0x2, {0xc000419d80, 0x1, 0x1}, {0x0, 0x0, 0x0}) Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:361 +0x43 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: go.uber.org/zap.(*SugaredLogger).Errorln(...) Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: /home/runner/go/pkg/mod/go.uber.org/zap@v1.27.0/sugar.go:318 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/uozi-tech/cosy/logger.Error(...) Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.2/logger/logger.go:133 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/0xJacky/Nginx-UI/internal/nginx.getNginxV() Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_cmd.go:55 +0xb3 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/0xJacky/Nginx-UI/internal/nginx.GetPrefix() Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: /home/runner/work/nginx-ui/nginx-ui/internal/nginx/resolve_path.go:35 +0x17 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: github.com/0xJacky/Nginx-UI/internal/nginx_log.init.0() Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra nginx-ui[976376]: /home/runner/work/nginx-ui/nginx-ui/internal/nginx_log/nginx_log.go:25 +0x13 Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jun 28 10:28:17 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Failed with result 'exit-code'. Jun 28 10:28:18 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Scheduled restart job, restart counter is at 5. Jun 28 10:28:18 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Start request repeated too quickly. Jun 28 10:28:18 iv-ydjt3zpzpcwh2yo7flra systemd[1]: nginx-ui.service: Failed with result 'exit-code'. ```
Author
Owner

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

可以试试新的开发版,另外配置一下 SbinPath 为您的 nginx 可执行文件路径(而不是文件夹)

<!-- gh-comment-id:3014967857 --> @0xJacky commented on GitHub (Jun 28, 2025): 可以试试新的开发版,另外配置一下 SbinPath 为您的 nginx 可执行文件路径(而不是文件夹)
Author
Owner

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

可以试试新的开发版,另外配置一下 SbinPath 为您的 nginx 可执行文件路径(而不是文件夹)

更新后,服务状态正常, CPU内存占用都降了,赞!!!

Image

Image

<!-- gh-comment-id:3014992052 --> @xhal commented on GitHub (Jun 28, 2025): > 可以试试新的开发版,另外配置一下 SbinPath 为您的 nginx 可执行文件路径(而不是文件夹) 更新后,服务状态正常, CPU内存占用都降了,赞!!! ![Image](https://github.com/user-attachments/assets/720465eb-ea70-4481-b967-94be138da33b) ![Image](https://github.com/user-attachments/assets/8788325c-e973-4061-b7ff-26734ca2a79a)
Author
Owner

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

Good

<!-- gh-comment-id:3014994598 --> @0xJacky commented on GitHub (Jun 28, 2025): Good
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#6416
No description provided.