[GH-ISSUE #1240] System got stuck after the docker container started #3779

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

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

Describe the bug
When I updated to the latest version,
about 1~5 min After the container started, the system CPU usage is 100% and cause everything stuck.

Info:

  • Server OS: Unraid OS 7.1.4
  • Server Arch: x86_64
  • Nginx UI Version: uozi/nginx-ui:latest
  • Docker Image Digest: sha256:8624f7eca70b77310711aad6df5e808a089578e18c3f3df8afc4e06d965c8426

What happened w/ Logs

  1. The first run after update, there are lots of error logs like this and repeat so many times:
2025-07-12T12:23:31.154874759Z 2025/07/12 20:23:31 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:69 record not found
2025-07-12T12:23:31.154880952Z [0.273ms] [rows:0] SELECT * FROM `auth_tokens` WHERE short_token = "undefined" ORDER BY `auth_tokens`.`user_id` LIMIT 1
2025-07-12T12:23:31.154919592Z [GIN] 2025/07/12 - 20:23:31 | 403 |     1.16668ms |   192.168.31.20 | GET      "/api/notifications/live"
2025-07-12T12:23:31.254055813Z 2025-07-12 20:23:31	INFO	kernel/server_factory.go:192	Server started successfully on [::]:8080, supporting: h1
2025-07-12T12:23:37.644295453Z 
2025-07-12T12:23:37.644325281Z 2025/07/12 20:23:37 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:69 record not found
2025-07-12T12:23:37.644332384Z [0.254ms] [rows:0] SELECT * FROM `auth_tokens` WHERE short_token = "undefined" ORDER BY `auth_tokens`.`user_id` LIMIT 1
2025-07-12T12:23:37.644337578Z [GIN] 2025/07/12 - 20:23:37 | 403 |    1.117516ms |   192.168.31.20 | GET      "/api/notifications/live"

# repeat many times

However the first run is pretty normal in terms of proxy functionality, and I access to the nginx web ui without problem.

  1. The other day when I access apps proxied by nginx, I found the unraid system get stuck, and all cpu cores is 100% usage.
    After a while, event the unraid web ui also crashed.
    I remember I'm uploading videos to the server that moment, but I'm not sure if it is related.

  2. Then I checked the logs:

...
2025-07-17T14:16:51.043167301Z TZ=Asia/Shanghai
2025-07-17T14:16:51.674992037Z 2025-07-17 22:16:51	INFO	analytic/node_record.go:118	RetrieveNodesStatus start
2025-07-17T14:16:51.676549388Z 2025-07-17 22:16:51	INFO	cron/upstream_availability.go:30	Upstream availability testing job started with 30s interval
2025-07-17T14:16:51.678798473Z 2025-07-17 22:16:51	INFO	cert/auto_cert.go:23	AutoCert Worker Started
2025-07-17T14:16:51.690254408Z 2025-07-17 22:16:51	INFO	analytic/node_record.go:166	RetrieveNodesStatus exited
2025-07-17T14:16:51.705350176Z 2025-07-17 22:16:51	INFO	cache/search.go:98	Creating new search index at: /tmp/nginx-ui-search-index-382911515
2025-07-17T14:16:51.732864291Z 2025-07-17 22:16:51	INFO	cert/auto_cert.go:28	AutoCert Worker End
2025-07-17T14:16:51.749472381Z 2025-07-17 22:16:51	INFO	cache/search.go:111	Search index initialized successfully
2025-07-17T14:17:58.083562315Z fatal error: runtime: out of memory
2025-07-17T14:17:58.086566291Z 
2025-07-17T14:17:58.086636314Z runtime stack:
2025-07-17T14:17:58.086644496Z runtime.throw({0x2f70a29?, 0x2031b2?})
2025-07-17T14:17:58.086706418Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/panic.go:1101 +0x48 fp=0x14c60e0ae878 sp=0x14c60e0ae848 pc=0x47a8c8
2025-07-17T14:17:58.086717152Z runtime.sysMapOS(0xc08c000000, 0x639c00000)
2025-07-17T14:17:58.086722147Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mem_linux.go:168 +0x11b fp=0x14c60e0ae8b8 sp=0x14c60e0ae878 pc=0x41e41b
2025-07-17T14:17:58.086727154Z runtime.sysMap(0xc08c000000, 0x639c00000, 0x5671208?)
2025-07-17T14:17:58.086731797Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mem.go:155 +0x34 fp=0x14c60e0ae8d8 sp=0x14c60e0ae8b8 pc=0x41ddf4
2025-07-17T14:17:58.086736787Z runtime.(*mheap).grow(0x5661000, 0x31cd43?)
2025-07-17T14:17:58.086741323Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:1547 +0x236 fp=0x14c60e0ae950 sp=0x14c60e0ae8d8 pc=0x4316d6
2025-07-17T14:17:58.086746115Z runtime.(*mheap).allocSpan(0x5661000, 0x31cd43, 0x0, 0x1)
2025-07-17T14:17:58.086751039Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:1252 +0x1ad fp=0x14c60e0ae9f8 sp=0x14c60e0ae950 pc=0x430d2d
2025-07-17T14:17:58.086755990Z runtime.(*mheap).alloc.func1()
2025-07-17T14:17:58.086760558Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:970 +0x5c fp=0x14c60e0aea40 sp=0x14c60e0ae9f8 pc=0x4307fc
2025-07-17T14:17:58.086767166Z runtime.systemstack(0x20000)
2025-07-17T14:17:58.086772201Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:514 +0x4a fp=0x14c60e0aea50 sp=0x14c60e0aea40 pc=0x480f0a
2025-07-17T14:17:58.086777346Z 
2025-07-17T14:17:58.086781810Z goroutine 43 gp=0xc000503c00 m=10 mp=0xc000cc2008 [running]:
2025-07-17T14:17:58.086786229Z runtime.systemstack_switch()
2025-07-17T14:17:58.086790994Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:479 +0x8 fp=0xc000706e60 sp=0xc000706e50 pc=0x480ea8
2025-07-17T14:17:58.086796050Z runtime.(*mheap).alloc(0x639a86000?, 0x31cd43?, 0xb0?)
2025-07-17T14:17:58.086800604Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:964 +0x5b fp=0xc000706ea8 sp=0xc000706e60 pc=0x43075b
2025-07-17T14:17:58.086805399Z runtime.(*mcache).allocLarge(0x3cf46c0?, 0x639a86000, 0x1)
2025-07-17T14:17:58.086809938Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mcache.go:235 +0x7d fp=0xc000706ef8 sp=0xc000706ea8 pc=0x41cf1d
2025-07-17T14:17:58.086814559Z runtime.mallocgcLarge(0x0?, 0x0, 0x0)
2025-07-17T14:17:58.086819112Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/malloc.go:1540 +0x79 fp=0xc000706f58 sp=0xc000706ef8 pc=0x41a0d9
2025-07-17T14:17:58.086824038Z runtime.mallocgc(0x639a86000, 0x0, 0x0)
2025-07-17T14:17:58.086828536Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/malloc.go:1063 +0xc5 fp=0xc000706f88 sp=0xc000706f58 pc=0x478145
2025-07-17T14:17:58.086839487Z runtime.growslice(0x0, 0xc000707060?, 0x419bb4?, 0x808080808080800b?, 0xc000cc2008?)
2025-07-17T14:17:58.086844727Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/slice.go:264 +0x5c9 fp=0xc000706ff8 sp=0xc000706f88 pc=0x47d8a9
2025-07-17T14:17:58.086876317Z bytes.growSlice({0x0, 0x0, 0x28?}, 0x2bf31e0?)
2025-07-17T14:17:58.086884724Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/bytes/buffer.go:249 +0x94 fp=0xc000707090 sp=0xc000706ff8 pc=0x4d12d4
2025-07-17T14:17:58.086890181Z bytes.(*Buffer).grow(0xc000d6dad0, 0x639a84295)
2025-07-17T14:17:58.086895238Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/bytes/buffer.go:151 +0x13d fp=0xc0007070c8 sp=0xc000707090 pc=0x4d0cfd
2025-07-17T14:17:58.087536400Z bytes.(*Buffer).Grow(...)
2025-07-17T14:17:58.087579172Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/bytes/buffer.go:168
2025-07-17T14:17:58.087689889Z github.com/blevesearch/zapx/v16.(*ZapPlugin).newWithChunkMode(0xc000707168?, {0xc0003a8830, 0x1, 0x1}, 0x402)
2025-07-17T14:17:58.087697670Z 	/home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.2.4/new.go:62 +0xe5 fp=0xc000707140 sp=0xc0007070c8 pc=0x16785a5
2025-07-17T14:17:58.087703111Z github.com/blevesearch/zapx/v16.(*ZapPlugin).New(0xc004606380?, {0xc0003a8830?, 0x5651f60?, 0x4?})
2025-07-17T14:17:58.087708189Z 	/home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.2.4/new.go:45 +0x1e fp=0xc000707178 sp=0xc000707140 pc=0x167847e
2025-07-17T14:17:58.087712931Z github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Batch(0xc000c90d88, 0xc000d74708)
2025-07-17T14:17:58.087717649Z 	/home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.5.2/index/scorch/scorch.go:465 +0x60d fp=0xc000707368 sp=0xc000707178 pc=0x16aac6d
2025-07-17T14:17:58.087723415Z github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Update(0xc000c90d88, {0x3d04000, 0xc000d4bae0})
2025-07-17T14:17:58.087728207Z 	/home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.5.2/index/scorch/scorch.go:383 +0xea fp=0xc0007073b0 sp=0xc000707368 pc=0x16aa52a
2025-07-17T14:17:58.087733303Z github.com/blevesearch/bleve/v2.(*indexImpl).Index(0xc00014a7e0, {0xc00027d290, 0x2d}, {0x2d16220, 0xc0046060e0})
2025-07-17T14:17:58.087864914Z 	/home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.5.2/index_impl.go:271 +0x1a6 fp=0xc000707418 sp=0xc0007073b0 pc=0x1738726
2025-07-17T14:17:58.087871516Z github.com/0xJacky/Nginx-UI/internal/cache.(*SearchIndexer).IndexDocument(0xc0000aa720, {{0xc00027d290, 0x2d}, {0x2f40061, 0x6}, {0xc00027d2b0, 0xd}, {0xc00027d290, 0x2d}, {0xc000d79200, ...}, ...})
2025-07-17T14:17:58.087877096Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/search.go:228 +0xbe fp=0xc000707480 sp=0xc000707418 pc=0x174805e
2025-07-17T14:17:58.087882312Z github.com/0xJacky/Nginx-UI/internal/cache.(*SearchIndexer).handleConfigScan(0xc0000aa720, {0xc00027d290, 0x2d}, {0xc0002fd800, 0x5a4, 0xc000d4b9f0?})
2025-07-17T14:17:58.087926172Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/search.go:199 +0x1e5 fp=0xc0007075a0 sp=0xc000707480 pc=0x1747e45
2025-07-17T14:17:58.087935429Z github.com/0xJacky/Nginx-UI/internal/cache.(*SearchIndexer).handleConfigScan-fm({0xc00027d290?, 0x2d?}, {0xc0002fd800?, 0x5a4?, 0x5a5?})
2025-07-17T14:17:58.087946814Z 	<autogenerated>:1 +0x3c fp=0xc0007075e0 sp=0xc0007075a0 pc=0x17511dc
2025-07-17T14:17:58.087952375Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).executeCallbacks(0xc00027d290?, {0xc00027d290, 0x2d}, {0xc0002fd800, 0x5a4, 0x5a5})
2025-07-17T14:17:58.088979202Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:247 +0x154 fp=0xc0007076b8 sp=0xc0007075e0 pc=0x1746734
2025-07-17T14:17:58.089009313Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).scanSingleFile(0xc000d52d80, {0xc00027d290, 0x2d})
2025-07-17T14:17:58.089014999Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:222 +0xce fp=0xc000707728 sp=0xc0007076b8 pc=0x17463ce
2025-07-17T14:17:58.089019768Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).ScanAllConfigs.func1({0xc00027d290, 0x2d}, {0x3cee5e8, 0xc000d5b2c0}, {0x0?, 0x0?})
2025-07-17T14:17:58.089024910Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:274 +0x116 fp=0xc0007077d0 sp=0xc000707728 pc=0x1746b76
2025-07-17T14:17:58.089029924Z path/filepath.walkDir({0xc00027d290, 0x2d}, {0x3cee5e8, 0xc000d5b2c0}, 0xc000707b80)
2025-07-17T14:17:58.089034687Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:310 +0x50 fp=0xc000707890 sp=0xc0007077d0 pc=0x6085b0
2025-07-17T14:17:58.089228300Z path/filepath.walkDir({0xc0006eef00, 0x1f}, {0x3cee5e8, 0xc000caeb00}, 0xc000707b80)
2025-07-17T14:17:58.089237825Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:332 +0x285 fp=0xc000707950 sp=0xc000707890 pc=0x6087e5
2025-07-17T14:17:58.089243146Z path/filepath.walkDir({0xc000cb8138, 0x15}, {0x3cee5e8, 0xc00067c700}, 0xc000707b80)
2025-07-17T14:17:58.089248011Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:332 +0x285 fp=0xc000707a10 sp=0xc000707950 pc=0x6087e5
2025-07-17T14:17:58.089253329Z path/filepath.walkDir({0xc0002d4401, 0xa}, {0x3cee620, 0xc000baa620}, 0xc000707b80)
2025-07-17T14:17:58.089261222Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:332 +0x285 fp=0xc000707ad0 sp=0xc000707a10 pc=0x6087e5
2025-07-17T14:17:58.089266506Z path/filepath.WalkDir({0xc0002d4401, 0xa}, 0xc000839b80)
2025-07-17T14:17:58.089271809Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:400 +0x75 fp=0xc000707b30 sp=0xc000707ad0 pc=0x608c35
2025-07-17T14:17:58.089277256Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).ScanAllConfigs(0xc000d52d80)
2025-07-17T14:17:58.089467501Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:262 +0xea fp=0xc000707bc8 sp=0xc000707b30 pc=0x17469ea
2025-07-17T14:17:58.089476059Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).Initialize(0xc000d52d80, {0x3cee100, 0xc000c21e50})
2025-07-17T14:17:58.089484402Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:78 +0x7f fp=0xc000707be8 sp=0xc000707bc8 pc=0x17452bf
2025-07-17T14:17:58.089489532Z github.com/0xJacky/Nginx-UI/internal/cache.InitScanner({0x3cee100, 0xc000c21e50})
2025-07-17T14:17:58.089494430Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:45 +0x51 fp=0xc000707c68 sp=0xc000707be8 pc=0x1744e91
2025-07-17T14:17:58.089499269Z github.com/0xJacky/Nginx-UI/internal/cache.Init({0x3cee100, 0xc000c21e50})
2025-07-17T14:17:58.089504113Z 	/home/runner/work/nginx-ui/nginx-ui/internal/cache/cache.go:33 +0x16f fp=0xc000707cf8 sp=0xc000707c68 pc=0x1744cef
2025-07-17T14:17:58.089580855Z github.com/0xJacky/Nginx-UI/internal/kernel.Boot.func1()
2025-07-17T14:17:58.089589576Z 	/home/runner/work/nginx-ui/nginx-ui/internal/kernel/boot.go:51 +0x34 fp=0xc000707d28 sp=0xc000707cf8 pc=0x234d814
2025-07-17T14:17:58.089594995Z github.com/0xJacky/Nginx-UI/internal/kernel.Boot({0x3cee100, 0xc000c21e50})
2025-07-17T14:17:58.089600774Z 	/home/runner/work/nginx-ui/nginx-ui/internal/kernel/boot.go:62 +0x138 fp=0xc000707dc8 sp=0xc000707d28 pc=0x234d678
2025-07-17T14:17:58.089605800Z main.main.Program.func2.1()
2025-07-17T14:17:58.089710788Z 	/home/runner/work/nginx-ui/nginx-ui/main.go:44 +0x1b fp=0xc000707de8 sp=0xc000707dc8 pc=0x25076bb
2025-07-17T14:17:58.089716291Z github.com/uozi-tech/cosy/kernel.Boot({0x3cee100, 0xc000c21e50})
2025-07-17T14:17:58.089720974Z 	/home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.24.0/kernel/boot.go:14 +0x63 fp=0xc000707e40 sp=0xc000707de8 pc=0x1422ec3
2025-07-17T14:17:58.089726694Z main.main.Program.func2({0xc0003a8100, 0x1, 0x0?})
2025-07-17T14:17:58.089731315Z 	/home/runner/work/nginx-ui/nginx-ui/main.go:63 +0x225 fp=0xc000707f88 sp=0xc000707e40 pc=0x2507025
2025-07-17T14:17:58.089735920Z code.pfad.fr/risefront.Config.runParent.func5()
2025-07-17T14:17:58.089741230Z 	/home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:223 +0x30 fp=0xc000707fe0 sp=0xc000707f88 pc=0x221db90
2025-07-17T14:17:58.089746770Z runtime.goexit({})
2025-07-17T14:17:58.089751445Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000707fe8 sp=0xc000707fe0 pc=0x482ec1
2025-07-17T14:17:58.089756367Z created by code.pfad.fr/risefront.Config.runParent in goroutine 1
2025-07-17T14:17:58.089875808Z 	/home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:222 +0xaab
2025-07-17T14:17:58.089881852Z 
2025-07-17T14:17:58.089886596Z goroutine 1 gp=0xc000002380 m=nil [IO wait, 1 minutes]:
2025-07-17T14:17:58.089891644Z runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2025-07-17T14:17:58.089896030Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/proc.go:435 +0xce fp=0xc000cc16c8 sp=0xc000cc16a8 pc=0x47a9ee
2025-07-17T14:17:58.089901040Z runtime.netpollblock(0x0?, 0x40f886?, 0x0?)
2025-07-17T14:17:58.090021526Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/netpoll.go:575 +0xf7 fp=0xc000cc1700 sp=0xc000cc16c8 pc=0x43dbd7
2025-07-17T14:17:58.090031237Z internal/poll.runtime_pollWait(0x14c654e35ee0, 0x72)
2025-07-17T14:17:58.090036862Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/netpoll.go:351 +0x85 fp=0xc000cc1720 sp=0xc000cc1700 pc=0x479c05
2025-07-17T14:17:58.090041914Z internal/poll.(*pollDesc).wait(0xc000184300?, 0x56792c0?, 0x0)
2025-07-17T14:17:58.090046867Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc000cc1748 sp=0xc000cc1720 pc=0x4e8fe7
2025-07-17T14:17:58.090051820Z internal/poll.(*pollDesc).waitRead(...)
2025-07-17T14:17:58.090056234Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/internal/poll/fd_poll_runtime.go:89
2025-07-17T14:17:58.090191717Z internal/poll.(*FD).Accept(0xc000184300)
2025-07-17T14:17:58.090202037Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/internal/poll/fd_unix.go:620 +0x295 fp=0xc000cc17f0 sp=0xc000cc1748 pc=0x4ee3b5
2025-07-17T14:17:58.090207657Z net.(*netFD).accept(0xc000184300)
2025-07-17T14:17:58.090212460Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/net/fd_unix.go:172 +0x29 fp=0xc000cc18a8 sp=0xc000cc17f0 pc=0x5d1e49
2025-07-17T14:17:58.090323352Z net.(*UnixListener).accept(0x44f100?)
2025-07-17T14:17:58.090332378Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/net/unixsock_posix.go:172 +0x16 fp=0xc000cc18d0 sp=0xc000cc18a8 pc=0x5f2616
2025-07-17T14:17:58.090337878Z net.(*UnixListener).Accept(0xc0003ac0f0)
2025-07-17T14:17:58.090342731Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/net/unixsock.go:260 +0x30 fp=0xc000cc1900 sp=0xc000cc18d0 pc=0x5f11b0
2025-07-17T14:17:58.090347656Z code.pfad.fr/risefront.Config.runParent({{0xc0003a80b0, 0x1, 0x1}, 0xc0003ac060, {0x2f46dc5, 0x8}, {0x3cd80d8, 0xc000450080}, {0x2f38303, 0x3}, ...}, ...)
2025-07-17T14:17:58.090352615Z 	/home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:231 +0xae2 fp=0xc000cc1bf0 sp=0xc000cc1900 pc=0x221d482
2025-07-17T14:17:58.090357703Z code.pfad.fr/risefront.New({0x3cee4b8, 0xc00046a400}, {{0xc0003a80b0, 0x1, 0x1}, 0xc0003ac060, {0x2f46dc5, 0x8}, {0x0, 0x0}, ...})
2025-07-17T14:17:58.090363062Z 	/home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:113 +0x593 fp=0xc000cc1d40 sp=0xc000cc1bf0 pc=0x221c4f3
2025-07-17T14:17:58.090368051Z main.main()
2025-07-17T14:17:58.090372956Z 	/home/runner/work/nginx-ui/nginx-ui/main.go:144 +0x3e8 fp=0xc000cc1f50 sp=0xc000cc1d40 pc=0x2506c88
2025-07-17T14:17:58.090479627Z runtime.main()
2025-07-17T14:17:58.090485697Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/proc.go:283 +0x28b fp=0xc000cc1fe0 sp=0xc000cc1f50 pc=0x44520b
2025-07-17T14:17:58.090490446Z runtime.goexit({})
2025-07-17T14:17:58.090497067Z 	/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000cc1fe8 sp=0xc000cc1fe0 pc=0x482ec1
2025-07-17T14:17:58.090502583Z 

# repeat many times

It says OOM but the system do have plenty of free memory.

The older version worked pretty well so I think this might be related to the update. Can you help with the problem, I can upload the full log if it helps, thank you.

Originally created by @iyinchao on GitHub (Jul 17, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1240 **Describe the bug** When I updated to the latest version, about 1~5 min After the container started, the system CPU usage is 100% and cause everything stuck. **Info:** - Server OS: Unraid OS 7.1.4 - Server Arch: x86_64 - Nginx UI Version: uozi/nginx-ui:latest - Docker Image Digest: `sha256:8624f7eca70b77310711aad6df5e808a089578e18c3f3df8afc4e06d965c8426` **What happened w/ Logs** 1. The first run after update, there are lots of error logs like this and repeat so many times: ``` 2025-07-12T12:23:31.154874759Z 2025/07/12 20:23:31 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:69 record not found 2025-07-12T12:23:31.154880952Z [0.273ms] [rows:0] SELECT * FROM `auth_tokens` WHERE short_token = "undefined" ORDER BY `auth_tokens`.`user_id` LIMIT 1 2025-07-12T12:23:31.154919592Z [GIN] 2025/07/12 - 20:23:31 | 403 | 1.16668ms | 192.168.31.20 | GET "/api/notifications/live" 2025-07-12T12:23:31.254055813Z 2025-07-12 20:23:31 INFO kernel/server_factory.go:192 Server started successfully on [::]:8080, supporting: h1 2025-07-12T12:23:37.644295453Z 2025-07-12T12:23:37.644325281Z 2025/07/12 20:23:37 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:69 record not found 2025-07-12T12:23:37.644332384Z [0.254ms] [rows:0] SELECT * FROM `auth_tokens` WHERE short_token = "undefined" ORDER BY `auth_tokens`.`user_id` LIMIT 1 2025-07-12T12:23:37.644337578Z [GIN] 2025/07/12 - 20:23:37 | 403 | 1.117516ms | 192.168.31.20 | GET "/api/notifications/live" # repeat many times ``` However the first run is pretty normal in terms of proxy functionality, and I access to the nginx web ui without problem. 2. The other day when I access apps proxied by nginx, I found the unraid system get stuck, and all cpu cores is 100% usage. After a while, event the unraid web ui also crashed. I remember I'm uploading videos to the server that moment, but I'm not sure if it is related. 3. Then I checked the logs: ``` ... 2025-07-17T14:16:51.043167301Z TZ=Asia/Shanghai 2025-07-17T14:16:51.674992037Z 2025-07-17 22:16:51 INFO analytic/node_record.go:118 RetrieveNodesStatus start 2025-07-17T14:16:51.676549388Z 2025-07-17 22:16:51 INFO cron/upstream_availability.go:30 Upstream availability testing job started with 30s interval 2025-07-17T14:16:51.678798473Z 2025-07-17 22:16:51 INFO cert/auto_cert.go:23 AutoCert Worker Started 2025-07-17T14:16:51.690254408Z 2025-07-17 22:16:51 INFO analytic/node_record.go:166 RetrieveNodesStatus exited 2025-07-17T14:16:51.705350176Z 2025-07-17 22:16:51 INFO cache/search.go:98 Creating new search index at: /tmp/nginx-ui-search-index-382911515 2025-07-17T14:16:51.732864291Z 2025-07-17 22:16:51 INFO cert/auto_cert.go:28 AutoCert Worker End 2025-07-17T14:16:51.749472381Z 2025-07-17 22:16:51 INFO cache/search.go:111 Search index initialized successfully 2025-07-17T14:17:58.083562315Z fatal error: runtime: out of memory 2025-07-17T14:17:58.086566291Z 2025-07-17T14:17:58.086636314Z runtime stack: 2025-07-17T14:17:58.086644496Z runtime.throw({0x2f70a29?, 0x2031b2?}) 2025-07-17T14:17:58.086706418Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/panic.go:1101 +0x48 fp=0x14c60e0ae878 sp=0x14c60e0ae848 pc=0x47a8c8 2025-07-17T14:17:58.086717152Z runtime.sysMapOS(0xc08c000000, 0x639c00000) 2025-07-17T14:17:58.086722147Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mem_linux.go:168 +0x11b fp=0x14c60e0ae8b8 sp=0x14c60e0ae878 pc=0x41e41b 2025-07-17T14:17:58.086727154Z runtime.sysMap(0xc08c000000, 0x639c00000, 0x5671208?) 2025-07-17T14:17:58.086731797Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mem.go:155 +0x34 fp=0x14c60e0ae8d8 sp=0x14c60e0ae8b8 pc=0x41ddf4 2025-07-17T14:17:58.086736787Z runtime.(*mheap).grow(0x5661000, 0x31cd43?) 2025-07-17T14:17:58.086741323Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:1547 +0x236 fp=0x14c60e0ae950 sp=0x14c60e0ae8d8 pc=0x4316d6 2025-07-17T14:17:58.086746115Z runtime.(*mheap).allocSpan(0x5661000, 0x31cd43, 0x0, 0x1) 2025-07-17T14:17:58.086751039Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:1252 +0x1ad fp=0x14c60e0ae9f8 sp=0x14c60e0ae950 pc=0x430d2d 2025-07-17T14:17:58.086755990Z runtime.(*mheap).alloc.func1() 2025-07-17T14:17:58.086760558Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:970 +0x5c fp=0x14c60e0aea40 sp=0x14c60e0ae9f8 pc=0x4307fc 2025-07-17T14:17:58.086767166Z runtime.systemstack(0x20000) 2025-07-17T14:17:58.086772201Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:514 +0x4a fp=0x14c60e0aea50 sp=0x14c60e0aea40 pc=0x480f0a 2025-07-17T14:17:58.086777346Z 2025-07-17T14:17:58.086781810Z goroutine 43 gp=0xc000503c00 m=10 mp=0xc000cc2008 [running]: 2025-07-17T14:17:58.086786229Z runtime.systemstack_switch() 2025-07-17T14:17:58.086790994Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:479 +0x8 fp=0xc000706e60 sp=0xc000706e50 pc=0x480ea8 2025-07-17T14:17:58.086796050Z runtime.(*mheap).alloc(0x639a86000?, 0x31cd43?, 0xb0?) 2025-07-17T14:17:58.086800604Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mheap.go:964 +0x5b fp=0xc000706ea8 sp=0xc000706e60 pc=0x43075b 2025-07-17T14:17:58.086805399Z runtime.(*mcache).allocLarge(0x3cf46c0?, 0x639a86000, 0x1) 2025-07-17T14:17:58.086809938Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/mcache.go:235 +0x7d fp=0xc000706ef8 sp=0xc000706ea8 pc=0x41cf1d 2025-07-17T14:17:58.086814559Z runtime.mallocgcLarge(0x0?, 0x0, 0x0) 2025-07-17T14:17:58.086819112Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/malloc.go:1540 +0x79 fp=0xc000706f58 sp=0xc000706ef8 pc=0x41a0d9 2025-07-17T14:17:58.086824038Z runtime.mallocgc(0x639a86000, 0x0, 0x0) 2025-07-17T14:17:58.086828536Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/malloc.go:1063 +0xc5 fp=0xc000706f88 sp=0xc000706f58 pc=0x478145 2025-07-17T14:17:58.086839487Z runtime.growslice(0x0, 0xc000707060?, 0x419bb4?, 0x808080808080800b?, 0xc000cc2008?) 2025-07-17T14:17:58.086844727Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/slice.go:264 +0x5c9 fp=0xc000706ff8 sp=0xc000706f88 pc=0x47d8a9 2025-07-17T14:17:58.086876317Z bytes.growSlice({0x0, 0x0, 0x28?}, 0x2bf31e0?) 2025-07-17T14:17:58.086884724Z /opt/hostedtoolcache/go/1.24.4/x64/src/bytes/buffer.go:249 +0x94 fp=0xc000707090 sp=0xc000706ff8 pc=0x4d12d4 2025-07-17T14:17:58.086890181Z bytes.(*Buffer).grow(0xc000d6dad0, 0x639a84295) 2025-07-17T14:17:58.086895238Z /opt/hostedtoolcache/go/1.24.4/x64/src/bytes/buffer.go:151 +0x13d fp=0xc0007070c8 sp=0xc000707090 pc=0x4d0cfd 2025-07-17T14:17:58.087536400Z bytes.(*Buffer).Grow(...) 2025-07-17T14:17:58.087579172Z /opt/hostedtoolcache/go/1.24.4/x64/src/bytes/buffer.go:168 2025-07-17T14:17:58.087689889Z github.com/blevesearch/zapx/v16.(*ZapPlugin).newWithChunkMode(0xc000707168?, {0xc0003a8830, 0x1, 0x1}, 0x402) 2025-07-17T14:17:58.087697670Z /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.2.4/new.go:62 +0xe5 fp=0xc000707140 sp=0xc0007070c8 pc=0x16785a5 2025-07-17T14:17:58.087703111Z github.com/blevesearch/zapx/v16.(*ZapPlugin).New(0xc004606380?, {0xc0003a8830?, 0x5651f60?, 0x4?}) 2025-07-17T14:17:58.087708189Z /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.2.4/new.go:45 +0x1e fp=0xc000707178 sp=0xc000707140 pc=0x167847e 2025-07-17T14:17:58.087712931Z github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Batch(0xc000c90d88, 0xc000d74708) 2025-07-17T14:17:58.087717649Z /home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.5.2/index/scorch/scorch.go:465 +0x60d fp=0xc000707368 sp=0xc000707178 pc=0x16aac6d 2025-07-17T14:17:58.087723415Z github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Update(0xc000c90d88, {0x3d04000, 0xc000d4bae0}) 2025-07-17T14:17:58.087728207Z /home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.5.2/index/scorch/scorch.go:383 +0xea fp=0xc0007073b0 sp=0xc000707368 pc=0x16aa52a 2025-07-17T14:17:58.087733303Z github.com/blevesearch/bleve/v2.(*indexImpl).Index(0xc00014a7e0, {0xc00027d290, 0x2d}, {0x2d16220, 0xc0046060e0}) 2025-07-17T14:17:58.087864914Z /home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.5.2/index_impl.go:271 +0x1a6 fp=0xc000707418 sp=0xc0007073b0 pc=0x1738726 2025-07-17T14:17:58.087871516Z github.com/0xJacky/Nginx-UI/internal/cache.(*SearchIndexer).IndexDocument(0xc0000aa720, {{0xc00027d290, 0x2d}, {0x2f40061, 0x6}, {0xc00027d2b0, 0xd}, {0xc00027d290, 0x2d}, {0xc000d79200, ...}, ...}) 2025-07-17T14:17:58.087877096Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/search.go:228 +0xbe fp=0xc000707480 sp=0xc000707418 pc=0x174805e 2025-07-17T14:17:58.087882312Z github.com/0xJacky/Nginx-UI/internal/cache.(*SearchIndexer).handleConfigScan(0xc0000aa720, {0xc00027d290, 0x2d}, {0xc0002fd800, 0x5a4, 0xc000d4b9f0?}) 2025-07-17T14:17:58.087926172Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/search.go:199 +0x1e5 fp=0xc0007075a0 sp=0xc000707480 pc=0x1747e45 2025-07-17T14:17:58.087935429Z github.com/0xJacky/Nginx-UI/internal/cache.(*SearchIndexer).handleConfigScan-fm({0xc00027d290?, 0x2d?}, {0xc0002fd800?, 0x5a4?, 0x5a5?}) 2025-07-17T14:17:58.087946814Z <autogenerated>:1 +0x3c fp=0xc0007075e0 sp=0xc0007075a0 pc=0x17511dc 2025-07-17T14:17:58.087952375Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).executeCallbacks(0xc00027d290?, {0xc00027d290, 0x2d}, {0xc0002fd800, 0x5a4, 0x5a5}) 2025-07-17T14:17:58.088979202Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:247 +0x154 fp=0xc0007076b8 sp=0xc0007075e0 pc=0x1746734 2025-07-17T14:17:58.089009313Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).scanSingleFile(0xc000d52d80, {0xc00027d290, 0x2d}) 2025-07-17T14:17:58.089014999Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:222 +0xce fp=0xc000707728 sp=0xc0007076b8 pc=0x17463ce 2025-07-17T14:17:58.089019768Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).ScanAllConfigs.func1({0xc00027d290, 0x2d}, {0x3cee5e8, 0xc000d5b2c0}, {0x0?, 0x0?}) 2025-07-17T14:17:58.089024910Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:274 +0x116 fp=0xc0007077d0 sp=0xc000707728 pc=0x1746b76 2025-07-17T14:17:58.089029924Z path/filepath.walkDir({0xc00027d290, 0x2d}, {0x3cee5e8, 0xc000d5b2c0}, 0xc000707b80) 2025-07-17T14:17:58.089034687Z /opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:310 +0x50 fp=0xc000707890 sp=0xc0007077d0 pc=0x6085b0 2025-07-17T14:17:58.089228300Z path/filepath.walkDir({0xc0006eef00, 0x1f}, {0x3cee5e8, 0xc000caeb00}, 0xc000707b80) 2025-07-17T14:17:58.089237825Z /opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:332 +0x285 fp=0xc000707950 sp=0xc000707890 pc=0x6087e5 2025-07-17T14:17:58.089243146Z path/filepath.walkDir({0xc000cb8138, 0x15}, {0x3cee5e8, 0xc00067c700}, 0xc000707b80) 2025-07-17T14:17:58.089248011Z /opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:332 +0x285 fp=0xc000707a10 sp=0xc000707950 pc=0x6087e5 2025-07-17T14:17:58.089253329Z path/filepath.walkDir({0xc0002d4401, 0xa}, {0x3cee620, 0xc000baa620}, 0xc000707b80) 2025-07-17T14:17:58.089261222Z /opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:332 +0x285 fp=0xc000707ad0 sp=0xc000707a10 pc=0x6087e5 2025-07-17T14:17:58.089266506Z path/filepath.WalkDir({0xc0002d4401, 0xa}, 0xc000839b80) 2025-07-17T14:17:58.089271809Z /opt/hostedtoolcache/go/1.24.4/x64/src/path/filepath/path.go:400 +0x75 fp=0xc000707b30 sp=0xc000707ad0 pc=0x608c35 2025-07-17T14:17:58.089277256Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).ScanAllConfigs(0xc000d52d80) 2025-07-17T14:17:58.089467501Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:262 +0xea fp=0xc000707bc8 sp=0xc000707b30 pc=0x17469ea 2025-07-17T14:17:58.089476059Z github.com/0xJacky/Nginx-UI/internal/cache.(*Scanner).Initialize(0xc000d52d80, {0x3cee100, 0xc000c21e50}) 2025-07-17T14:17:58.089484402Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:78 +0x7f fp=0xc000707be8 sp=0xc000707bc8 pc=0x17452bf 2025-07-17T14:17:58.089489532Z github.com/0xJacky/Nginx-UI/internal/cache.InitScanner({0x3cee100, 0xc000c21e50}) 2025-07-17T14:17:58.089494430Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/index.go:45 +0x51 fp=0xc000707c68 sp=0xc000707be8 pc=0x1744e91 2025-07-17T14:17:58.089499269Z github.com/0xJacky/Nginx-UI/internal/cache.Init({0x3cee100, 0xc000c21e50}) 2025-07-17T14:17:58.089504113Z /home/runner/work/nginx-ui/nginx-ui/internal/cache/cache.go:33 +0x16f fp=0xc000707cf8 sp=0xc000707c68 pc=0x1744cef 2025-07-17T14:17:58.089580855Z github.com/0xJacky/Nginx-UI/internal/kernel.Boot.func1() 2025-07-17T14:17:58.089589576Z /home/runner/work/nginx-ui/nginx-ui/internal/kernel/boot.go:51 +0x34 fp=0xc000707d28 sp=0xc000707cf8 pc=0x234d814 2025-07-17T14:17:58.089594995Z github.com/0xJacky/Nginx-UI/internal/kernel.Boot({0x3cee100, 0xc000c21e50}) 2025-07-17T14:17:58.089600774Z /home/runner/work/nginx-ui/nginx-ui/internal/kernel/boot.go:62 +0x138 fp=0xc000707dc8 sp=0xc000707d28 pc=0x234d678 2025-07-17T14:17:58.089605800Z main.main.Program.func2.1() 2025-07-17T14:17:58.089710788Z /home/runner/work/nginx-ui/nginx-ui/main.go:44 +0x1b fp=0xc000707de8 sp=0xc000707dc8 pc=0x25076bb 2025-07-17T14:17:58.089716291Z github.com/uozi-tech/cosy/kernel.Boot({0x3cee100, 0xc000c21e50}) 2025-07-17T14:17:58.089720974Z /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.24.0/kernel/boot.go:14 +0x63 fp=0xc000707e40 sp=0xc000707de8 pc=0x1422ec3 2025-07-17T14:17:58.089726694Z main.main.Program.func2({0xc0003a8100, 0x1, 0x0?}) 2025-07-17T14:17:58.089731315Z /home/runner/work/nginx-ui/nginx-ui/main.go:63 +0x225 fp=0xc000707f88 sp=0xc000707e40 pc=0x2507025 2025-07-17T14:17:58.089735920Z code.pfad.fr/risefront.Config.runParent.func5() 2025-07-17T14:17:58.089741230Z /home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:223 +0x30 fp=0xc000707fe0 sp=0xc000707f88 pc=0x221db90 2025-07-17T14:17:58.089746770Z runtime.goexit({}) 2025-07-17T14:17:58.089751445Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000707fe8 sp=0xc000707fe0 pc=0x482ec1 2025-07-17T14:17:58.089756367Z created by code.pfad.fr/risefront.Config.runParent in goroutine 1 2025-07-17T14:17:58.089875808Z /home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:222 +0xaab 2025-07-17T14:17:58.089881852Z 2025-07-17T14:17:58.089886596Z goroutine 1 gp=0xc000002380 m=nil [IO wait, 1 minutes]: 2025-07-17T14:17:58.089891644Z runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) 2025-07-17T14:17:58.089896030Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/proc.go:435 +0xce fp=0xc000cc16c8 sp=0xc000cc16a8 pc=0x47a9ee 2025-07-17T14:17:58.089901040Z runtime.netpollblock(0x0?, 0x40f886?, 0x0?) 2025-07-17T14:17:58.090021526Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/netpoll.go:575 +0xf7 fp=0xc000cc1700 sp=0xc000cc16c8 pc=0x43dbd7 2025-07-17T14:17:58.090031237Z internal/poll.runtime_pollWait(0x14c654e35ee0, 0x72) 2025-07-17T14:17:58.090036862Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/netpoll.go:351 +0x85 fp=0xc000cc1720 sp=0xc000cc1700 pc=0x479c05 2025-07-17T14:17:58.090041914Z internal/poll.(*pollDesc).wait(0xc000184300?, 0x56792c0?, 0x0) 2025-07-17T14:17:58.090046867Z /opt/hostedtoolcache/go/1.24.4/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc000cc1748 sp=0xc000cc1720 pc=0x4e8fe7 2025-07-17T14:17:58.090051820Z internal/poll.(*pollDesc).waitRead(...) 2025-07-17T14:17:58.090056234Z /opt/hostedtoolcache/go/1.24.4/x64/src/internal/poll/fd_poll_runtime.go:89 2025-07-17T14:17:58.090191717Z internal/poll.(*FD).Accept(0xc000184300) 2025-07-17T14:17:58.090202037Z /opt/hostedtoolcache/go/1.24.4/x64/src/internal/poll/fd_unix.go:620 +0x295 fp=0xc000cc17f0 sp=0xc000cc1748 pc=0x4ee3b5 2025-07-17T14:17:58.090207657Z net.(*netFD).accept(0xc000184300) 2025-07-17T14:17:58.090212460Z /opt/hostedtoolcache/go/1.24.4/x64/src/net/fd_unix.go:172 +0x29 fp=0xc000cc18a8 sp=0xc000cc17f0 pc=0x5d1e49 2025-07-17T14:17:58.090323352Z net.(*UnixListener).accept(0x44f100?) 2025-07-17T14:17:58.090332378Z /opt/hostedtoolcache/go/1.24.4/x64/src/net/unixsock_posix.go:172 +0x16 fp=0xc000cc18d0 sp=0xc000cc18a8 pc=0x5f2616 2025-07-17T14:17:58.090337878Z net.(*UnixListener).Accept(0xc0003ac0f0) 2025-07-17T14:17:58.090342731Z /opt/hostedtoolcache/go/1.24.4/x64/src/net/unixsock.go:260 +0x30 fp=0xc000cc1900 sp=0xc000cc18d0 pc=0x5f11b0 2025-07-17T14:17:58.090347656Z code.pfad.fr/risefront.Config.runParent({{0xc0003a80b0, 0x1, 0x1}, 0xc0003ac060, {0x2f46dc5, 0x8}, {0x3cd80d8, 0xc000450080}, {0x2f38303, 0x3}, ...}, ...) 2025-07-17T14:17:58.090352615Z /home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:231 +0xae2 fp=0xc000cc1bf0 sp=0xc000cc1900 pc=0x221d482 2025-07-17T14:17:58.090357703Z code.pfad.fr/risefront.New({0x3cee4b8, 0xc00046a400}, {{0xc0003a80b0, 0x1, 0x1}, 0xc0003ac060, {0x2f46dc5, 0x8}, {0x0, 0x0}, ...}) 2025-07-17T14:17:58.090363062Z /home/runner/go/pkg/mod/github.com/nginxui/risefront@v1.2.3/risefront.go:113 +0x593 fp=0xc000cc1d40 sp=0xc000cc1bf0 pc=0x221c4f3 2025-07-17T14:17:58.090368051Z main.main() 2025-07-17T14:17:58.090372956Z /home/runner/work/nginx-ui/nginx-ui/main.go:144 +0x3e8 fp=0xc000cc1f50 sp=0xc000cc1d40 pc=0x2506c88 2025-07-17T14:17:58.090479627Z runtime.main() 2025-07-17T14:17:58.090485697Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/proc.go:283 +0x28b fp=0xc000cc1fe0 sp=0xc000cc1f50 pc=0x44520b 2025-07-17T14:17:58.090490446Z runtime.goexit({}) 2025-07-17T14:17:58.090497067Z /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000cc1fe8 sp=0xc000cc1fe0 pc=0x482ec1 2025-07-17T14:17:58.090502583Z # repeat many times ``` It says OOM but the system do have plenty of free memory. The older version worked pretty well so I think this might be related to the update. Can you help with the problem, I can upload the full log if it helps, thank you.
kerem 2026-02-28 11:57:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Thank you for the feedback.

Based on the error log you provided, I have modified the code for the configuration file indexing function. You can use the image with the dev tag (uozi/nginx-ui:dev) to test if the problem has been resolved.

Also, regarding the errors in the first part, you can resolve them by logging into your account again.

If the CPU usage still reaches 100% and the OOM issue persists after the update, please provide the parameters used for container startup and logs.

<!-- gh-comment-id:3086131288 --> @0xJacky commented on GitHub (Jul 18, 2025): Thank you for the feedback. Based on the error log you provided, I have modified the code for the configuration file indexing function. You can use the image with the `dev` tag (`uozi/nginx-ui:dev`) to test if the problem has been resolved. Also, regarding the errors in the first part, you can resolve them by logging into your account again. If the CPU usage still reaches 100% and the OOM issue persists after the update, please provide the parameters used for container startup and logs.
Author
Owner

@iyinchao commented on GitHub (Jul 18, 2025):

@0xJacky Thank you for the quick response ❤️

I tried the dev image, but unfortunately, the issue still persists.

It seems the problem might be related to uploading large images and videos through the proxy.
I monitored the memory usage during the upload process this time and noticed that it rapidly increases, eventually consuming all available system memory. 🤕

Image

Docker Paramters:
-v /var/run/docker.sock:/var/run/docker.sock, wtih port & volume mapping, and custom network.
Image

Log:
The warning added in b8e017e is present in log:

...

2025-07-18T14:50:47.285605948Z TZ=Asia/Shanghai
2025-07-18T14:50:47.290809992Z s6-rc: info: service fix-attrs successfully started
2025-07-18T14:50:47.291089976Z s6-rc: info: service legacy-cont-init: starting
2025-07-18T14:50:47.292813343Z s6-rc: info: service init-config successfully started
2025-07-18T14:50:47.292908615Z s6-rc: info: service nginx: starting
2025-07-18T14:50:47.294269690Z s6-rc: info: service nginx successfully started
2025-07-18T14:50:47.295052834Z Timezone: Asia/Shanghai
2025-07-18T14:50:47.295751475Z s6-rc: info: service legacy-cont-init successfully started
2025-07-18T14:50:47.295831774Z s6-rc: info: service legacy-services: starting
2025-07-18T14:50:47.301265473Z s6-rc: info: service legacy-services successfully started
2025-07-18T14:50:47.437194188Z 2025-07-18 22:50:47	INFO	analytic/node_record.go:415	RetrieveNodesStatus start
2025-07-18T14:50:47.440377504Z 2025-07-18 22:50:47	INFO	cron/upstream_availability.go:30	Upstream availability testing job started with 30s interval
2025-07-18T14:50:47.440640250Z 2025-07-18 22:50:47	INFO	cache/search.go:98	Creating new search index at: /tmp/nginx-ui-search-index-3124821592
2025-07-18T14:50:47.440656049Z 2025-07-18 22:50:47	INFO	cert/auto_cert.go:23	AutoCert Worker Started
2025-07-18T14:50:47.464728220Z 2025-07-18 22:50:47	INFO	cache/search.go:111	Search index initialized successfully
2025-07-18T14:50:47.487009704Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/0/91/e14a0f2b3650018d3d5a267503589910
2025-07-18T14:50:47.487378241Z 2025-07-18 22:50:47	INFO	cert/auto_cert.go:28	AutoCert Worker End
2025-07-18T14:50:47.523241184Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/1/9a/3a2eee5cccb9fd21d959a9da4f8029a1
2025-07-18T14:50:47.538219016Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/2/07/c85653d87a3dc91ebccf85f15f767072
2025-07-18T14:50:47.558217929Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/2/c5/43773f5b26599278edf8f49d7579bc52
2025-07-18T14:50:47.657489977Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/6/0d/2d7500a5c28e018c9ca0e785424ec0d6
2025-07-18T14:50:47.747795072Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/7/ef/c181b452b217eea9d6f6e7c989680ef7
2025-07-18T14:50:47.840776980Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/9/35/69c8d30371b358b9437c9bf0d82a2359
2025-07-18T14:50:47.926508991Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/b/56/3d93cbff631b0c050c123913a915656b
2025-07-18T14:50:47.943945180Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/b/de/5f564709ef2503626891d1308c818deb
2025-07-18T14:50:47.955365212Z 2025-07-18 22:50:47	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/c/37/0f392674867941fa5bb975c7cc9fc37c
2025-07-18T14:50:48.030662012Z 2025-07-18 22:50:48	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/e/67/512776997c324aa229be876a6867467e
2025-07-18T14:50:48.061237775Z 2025-07-18 22:50:48	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/f/38/f7eba77b5c357d7f5a6addf0c700338f
2025-07-18T14:50:48.070700414Z 2025-07-18 22:50:48	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/f/58/fecbae02808eb3a617fcc40fcd75358f
2025-07-18T14:50:48.111707238Z 2025-07-18 22:50:48	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/public/f/fc/cf448f1e4a0699d35d78af1c2ed21fcf
2025-07-18T14:50:48.491823174Z 2025-07-18 22:50:48	ERROR	cache/index.go:275	Failed to scan config: /etc/nginx/modules read /etc/nginx/modules: is a directory
2025-07-18T14:50:51.043195278Z 2025-07-18 22:50:51	INFO	analytic/analytic.go:53	RecordServerAnalytic Started
2025-07-18T14:50:51.043233177Z 2025-07-18 22:50:51	INFO	event/init.go:11	Initializing event system...
2025-07-18T14:50:51.043241170Z 2025-07-18 22:50:51	INFO	event/init.go:16	Event system initialized successfully
2025-07-18T14:50:51.143617731Z 2025-07-18 22:50:51	INFO	kernel/server_factory.go:204	Server started successfully on [::]:8080, supporting: h1
2025-07-18T14:54:32.678386845Z 2025-07-18 22:54:32	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:32.821412122Z 2025-07-18 22:54:32	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:33.011508892Z 2025-07-18 22:54:33	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:33.265176359Z 2025-07-18 22:54:33	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:33.586178027Z 2025-07-18 22:54:33	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:34.007104849Z 2025-07-18 22:54:34	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:34.580566184Z 2025-07-18 22:54:34	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:35.378478798Z 2025-07-18 22:54:35	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:36.445012519Z 2025-07-18 22:54:36	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000001
2025-07-18T14:54:37.850927025Z 2025-07-18 22:54:37	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 10534912 limit 10485760
2025-07-18T14:54:39.856877464Z 2025-07-18 22:54:39	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 15384576 limit 10485760
2025-07-18T14:54:42.780184321Z 2025-07-18 22:54:42	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 22708224 limit 10485760
2025-07-18T14:54:46.622491380Z 2025-07-18 22:54:46	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 30392320 limit 10485760
2025-07-18T14:54:51.872765230Z 2025-07-18 22:54:51	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 41746432 limit 10485760
2025-07-18T14:55:00.170817789Z 2025-07-18 22:55:00	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 65634304 limit 10485760
2025-07-18T14:55:11.696727701Z 2025-07-18 22:55:11	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 92635136 limit 10485760
2025-07-18T14:55:19.957731693Z 

# repeat many times

2025-07-18T15:10:49.979054742Z 2025-07-18 23:10:49	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000002
2025-07-18T15:10:50.799234446Z 2025-07-18 23:10:50	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000002
2025-07-18T15:10:53.275153704Z 2025-07-18 23:10:53	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 18169856 limit 10485760
2025-07-18T15:11:00.897140044Z 2025-07-18 23:11:00	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 58064896 limit 10485760
2025-07-18T15:11:13.886628880Z [GIN] 2025/07/18 - 23:11:13 | 200 |         1m41s |   192.168.31.81 | GET      "/api/analytic?token=i2-7i53Pf1s7vQNm"
2025-07-18T15:11:24.195496704Z 2025-07-18 23:11:24	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 177438720 limit 10485760
2025-07-18T15:12:35.096358672Z 2025-07-18 23:12:35	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 544669696 limit 10485760
2025-07-18T15:14:33.609311079Z 2025-07-18 23:14:33	ERROR	cache/index.go:275	Failed to scan config: /etc/nginx/modules read /etc/nginx/modules: is a directory
2025-07-18T15:15:10.255840909Z [GIN] 2025/07/18 - 23:15:10 | 200 |     2.45547ms |   192.168.31.81 | GET      "/api/analytic/init"
2025-07-18T15:15:57.141549623Z 2025-07-18 23:15:57	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 1649803264 limit 10485760
2025-07-18T15:16:13.865019533Z [GIN] 2025/07/18 - 23:16:13 | 200 |          6m3s |   192.168.31.81 | GET      "/api/analytic?token=i2-7i53Pf1s7vQNm"
2025-07-18T15:17:13.865154630Z 2025-07-18 23:17:13	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000007
2025-07-18T15:17:14.800748305Z 2025-07-18 23:17:14	WARN	cache/search.go:208	Skipping non-text file path /etc/nginx/cache/private/0000000007
2025-07-18T15:17:19.732733613Z 2025-07-18 23:17:19	WARN	cache/search.go:197	Skipping file due to size limit path /etc/nginx/cache/private/0000000007 size 35946496 limit 10485760
<!-- gh-comment-id:3089875440 --> @iyinchao commented on GitHub (Jul 18, 2025): @0xJacky Thank you for the quick response ❤️ I tried the `dev` image, but unfortunately, the issue still persists. It seems the problem might be related to uploading large images and videos through the proxy. I monitored the memory usage during the upload process this time and noticed that it rapidly increases, eventually consuming all available system memory. 🤕 <img width="1022" height="104" alt="Image" src="https://github.com/user-attachments/assets/c2991ee0-0378-430c-bd78-3d131f1cd0bf" /> **Docker Paramters:** `-v /var/run/docker.sock:/var/run/docker.sock`, wtih port & volume mapping, and custom network. <img width="558" height="540" alt="Image" src="https://github.com/user-attachments/assets/3c4868d7-cf20-4580-9662-4c8d117ef9d8" /> **Log:** The warning added in b8e017e is present in log: ``` ... 2025-07-18T14:50:47.285605948Z TZ=Asia/Shanghai 2025-07-18T14:50:47.290809992Z s6-rc: info: service fix-attrs successfully started 2025-07-18T14:50:47.291089976Z s6-rc: info: service legacy-cont-init: starting 2025-07-18T14:50:47.292813343Z s6-rc: info: service init-config successfully started 2025-07-18T14:50:47.292908615Z s6-rc: info: service nginx: starting 2025-07-18T14:50:47.294269690Z s6-rc: info: service nginx successfully started 2025-07-18T14:50:47.295052834Z Timezone: Asia/Shanghai 2025-07-18T14:50:47.295751475Z s6-rc: info: service legacy-cont-init successfully started 2025-07-18T14:50:47.295831774Z s6-rc: info: service legacy-services: starting 2025-07-18T14:50:47.301265473Z s6-rc: info: service legacy-services successfully started 2025-07-18T14:50:47.437194188Z 2025-07-18 22:50:47 INFO analytic/node_record.go:415 RetrieveNodesStatus start 2025-07-18T14:50:47.440377504Z 2025-07-18 22:50:47 INFO cron/upstream_availability.go:30 Upstream availability testing job started with 30s interval 2025-07-18T14:50:47.440640250Z 2025-07-18 22:50:47 INFO cache/search.go:98 Creating new search index at: /tmp/nginx-ui-search-index-3124821592 2025-07-18T14:50:47.440656049Z 2025-07-18 22:50:47 INFO cert/auto_cert.go:23 AutoCert Worker Started 2025-07-18T14:50:47.464728220Z 2025-07-18 22:50:47 INFO cache/search.go:111 Search index initialized successfully 2025-07-18T14:50:47.487009704Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/0/91/e14a0f2b3650018d3d5a267503589910 2025-07-18T14:50:47.487378241Z 2025-07-18 22:50:47 INFO cert/auto_cert.go:28 AutoCert Worker End 2025-07-18T14:50:47.523241184Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/1/9a/3a2eee5cccb9fd21d959a9da4f8029a1 2025-07-18T14:50:47.538219016Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/2/07/c85653d87a3dc91ebccf85f15f767072 2025-07-18T14:50:47.558217929Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/2/c5/43773f5b26599278edf8f49d7579bc52 2025-07-18T14:50:47.657489977Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/6/0d/2d7500a5c28e018c9ca0e785424ec0d6 2025-07-18T14:50:47.747795072Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/7/ef/c181b452b217eea9d6f6e7c989680ef7 2025-07-18T14:50:47.840776980Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/9/35/69c8d30371b358b9437c9bf0d82a2359 2025-07-18T14:50:47.926508991Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/b/56/3d93cbff631b0c050c123913a915656b 2025-07-18T14:50:47.943945180Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/b/de/5f564709ef2503626891d1308c818deb 2025-07-18T14:50:47.955365212Z 2025-07-18 22:50:47 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/c/37/0f392674867941fa5bb975c7cc9fc37c 2025-07-18T14:50:48.030662012Z 2025-07-18 22:50:48 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/e/67/512776997c324aa229be876a6867467e 2025-07-18T14:50:48.061237775Z 2025-07-18 22:50:48 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/f/38/f7eba77b5c357d7f5a6addf0c700338f 2025-07-18T14:50:48.070700414Z 2025-07-18 22:50:48 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/f/58/fecbae02808eb3a617fcc40fcd75358f 2025-07-18T14:50:48.111707238Z 2025-07-18 22:50:48 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/public/f/fc/cf448f1e4a0699d35d78af1c2ed21fcf 2025-07-18T14:50:48.491823174Z 2025-07-18 22:50:48 ERROR cache/index.go:275 Failed to scan config: /etc/nginx/modules read /etc/nginx/modules: is a directory 2025-07-18T14:50:51.043195278Z 2025-07-18 22:50:51 INFO analytic/analytic.go:53 RecordServerAnalytic Started 2025-07-18T14:50:51.043233177Z 2025-07-18 22:50:51 INFO event/init.go:11 Initializing event system... 2025-07-18T14:50:51.043241170Z 2025-07-18 22:50:51 INFO event/init.go:16 Event system initialized successfully 2025-07-18T14:50:51.143617731Z 2025-07-18 22:50:51 INFO kernel/server_factory.go:204 Server started successfully on [::]:8080, supporting: h1 2025-07-18T14:54:32.678386845Z 2025-07-18 22:54:32 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:32.821412122Z 2025-07-18 22:54:32 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:33.011508892Z 2025-07-18 22:54:33 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:33.265176359Z 2025-07-18 22:54:33 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:33.586178027Z 2025-07-18 22:54:33 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:34.007104849Z 2025-07-18 22:54:34 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:34.580566184Z 2025-07-18 22:54:34 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:35.378478798Z 2025-07-18 22:54:35 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:36.445012519Z 2025-07-18 22:54:36 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000001 2025-07-18T14:54:37.850927025Z 2025-07-18 22:54:37 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 10534912 limit 10485760 2025-07-18T14:54:39.856877464Z 2025-07-18 22:54:39 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 15384576 limit 10485760 2025-07-18T14:54:42.780184321Z 2025-07-18 22:54:42 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 22708224 limit 10485760 2025-07-18T14:54:46.622491380Z 2025-07-18 22:54:46 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 30392320 limit 10485760 2025-07-18T14:54:51.872765230Z 2025-07-18 22:54:51 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 41746432 limit 10485760 2025-07-18T14:55:00.170817789Z 2025-07-18 22:55:00 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 65634304 limit 10485760 2025-07-18T14:55:11.696727701Z 2025-07-18 22:55:11 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000001 size 92635136 limit 10485760 2025-07-18T14:55:19.957731693Z # repeat many times 2025-07-18T15:10:49.979054742Z 2025-07-18 23:10:49 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000002 2025-07-18T15:10:50.799234446Z 2025-07-18 23:10:50 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000002 2025-07-18T15:10:53.275153704Z 2025-07-18 23:10:53 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 18169856 limit 10485760 2025-07-18T15:11:00.897140044Z 2025-07-18 23:11:00 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 58064896 limit 10485760 2025-07-18T15:11:13.886628880Z [GIN] 2025/07/18 - 23:11:13 | 200 | 1m41s | 192.168.31.81 | GET "/api/analytic?token=i2-7i53Pf1s7vQNm" 2025-07-18T15:11:24.195496704Z 2025-07-18 23:11:24 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 177438720 limit 10485760 2025-07-18T15:12:35.096358672Z 2025-07-18 23:12:35 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 544669696 limit 10485760 2025-07-18T15:14:33.609311079Z 2025-07-18 23:14:33 ERROR cache/index.go:275 Failed to scan config: /etc/nginx/modules read /etc/nginx/modules: is a directory 2025-07-18T15:15:10.255840909Z [GIN] 2025/07/18 - 23:15:10 | 200 | 2.45547ms | 192.168.31.81 | GET "/api/analytic/init" 2025-07-18T15:15:57.141549623Z 2025-07-18 23:15:57 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000002 size 1649803264 limit 10485760 2025-07-18T15:16:13.865019533Z [GIN] 2025/07/18 - 23:16:13 | 200 | 6m3s | 192.168.31.81 | GET "/api/analytic?token=i2-7i53Pf1s7vQNm" 2025-07-18T15:17:13.865154630Z 2025-07-18 23:17:13 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000007 2025-07-18T15:17:14.800748305Z 2025-07-18 23:17:14 WARN cache/search.go:208 Skipping non-text file path /etc/nginx/cache/private/0000000007 2025-07-18T15:17:19.732733613Z 2025-07-18 23:17:19 WARN cache/search.go:197 Skipping file due to size limit path /etc/nginx/cache/private/0000000007 size 35946496 limit 10485760 ```
Author
Owner

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

It seems that the cache indexer mistakenly cached the nginx cache. I will solve this problem tomorrow. For now, perhaps you can modify the configuration to move the cache out of /etc/nginx, for example, to /tmp.

<!-- gh-comment-id:3089888932 --> @0xJacky commented on GitHub (Jul 18, 2025): It seems that the cache indexer mistakenly cached the nginx cache. I will solve this problem tomorrow. For now, perhaps you can modify the configuration to move the cache out of /etc/nginx, for example, to /tmp.
Author
Owner

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

I have updated the memory usage limit of the indexer, and at the same time we have ignored some common cache folder names. Now, the problem of excessive CPU and memory usage of the indexer should be resolved. You can use the newer dev image uozi/nginx-ui:dev to test whether the issue has been resolved.

<!-- gh-comment-id:3092215302 --> @0xJacky commented on GitHub (Jul 19, 2025): I have updated the memory usage limit of the indexer, and at the same time we have ignored some common cache folder names. Now, the problem of excessive CPU and memory usage of the indexer should be resolved. You can use the newer dev image `uozi/nginx-ui:dev` to test whether the issue has been resolved.
Author
Owner

@iyinchao commented on GitHub (Jul 19, 2025):

I have updated the memory usage limit of the indexer, and at the same time we have ignored some common cache folder names. Now, the problem of excessive CPU and memory usage of the indexer should be resolved. You can use the newer dev image uozi/nginx-ui:dev to test whether the issue has been resolved.

I tried the dev version and the issue is resolved, Thank you! ❤️

<!-- gh-comment-id:3092325793 --> @iyinchao commented on GitHub (Jul 19, 2025): > I have updated the memory usage limit of the indexer, and at the same time we have ignored some common cache folder names. Now, the problem of excessive CPU and memory usage of the indexer should be resolved. You can use the newer dev image `uozi/nginx-ui:dev` to test whether the issue has been resolved. I tried the `dev` version and the issue is resolved, Thank you! ❤️
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#3779
No description provided.