Skip to content

[ bug] When accessing the /#/dashboard/server path, frequent log printing occurs causing the page to freeze. #1180

@everhopingandwaiting

Description

@everhopingandwaiting

Describe the bug
When accessing the /#/dashboard/server path, frequent log printing occurs causing the page to freeze.

To Reproduce
Steps to reproduce the behavior:

  1. Go to path : /#/dashboard/server
  2. docker logs -f nginxui

Expected behavior
logs:

nginx-ui  | 2025/06/26 09:51:55 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/list.go:99
nginx-ui  | [0.026ms] [rows:0] SELECT * FROM `environments` WHERE enabled = 1 AND `environments`.`deleted_at` IS NULL ORDER BY id desc
nginx-ui  | [GIN] 2025/06/26 - 09:51:55 | 200 |     394.287µs |   192.168.5.211 | GET      "/api/environments?page=2736&enabled=true"
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:45
nginx-ui  | [0.092ms] [rows:1] SELECT * FROM `auth_tokens` WHERE `auth_tokens`.`token` = ".eyJuYW1lIjoiYWRtaW4iLCJ1c2VyX2lkIjoxLCJpc3MiOiJOZ2lueCBVSSIsInN1YiI6ImFkbWluIiwiZXhwIjoxNzUwOTQ1NDM4LCJuYmYiOjE3NTA4NTkwMzgsImlhdCI6MTc1MDg1OTAzOCwianRpIjoiMSJ9.hJS0pWsBCuTrPHn28hvjRTxAiy_yfifKxH-WZj2Idic" ORDER BY `auth_tokens`.`user_id` LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/model/user.go:67
nginx-ui  | [0.019ms] [rows:0] SELECT * FROM `passkeys` WHERE `user_id` = 1 AND `passkeys`.`deleted_at` IS NULL LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:56
nginx-ui  | [0.076ms] [rows:1] SELECT * FROM `users` WHERE id=1  AND `users`.`deleted_at` IS NULL LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/list.go:99
nginx-ui  | [0.022ms] [rows:0] SELECT * FROM `environments` WHERE enabled = 1 AND `environments`.`deleted_at` IS NULL ORDER BY id desc
nginx-ui  | [GIN] 2025/06/26 - 09:51:55 | 200 |     377.153µs |   192.168.5.211 | GET      "/api/environments?page=2737&enabled=true"
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:45
nginx-ui  | [0.120ms] [rows:1] SELECT * FROM `auth_tokens` WHERE `auth_tokens`.`token` = ".eyJuYW1lIjoiYWRtaW4iLCJ1c2VyX2lkIjoxLCJpc3MiOiJOZ2lueCBVSSIsInN1YiI6ImFkbWluIiwiZXhwIjoxNzUwOTQ1NDM4LCJuYmYiOjE3NTA4NTkwMzgsImlhdCI6MTc1MDg1OTAzOCwianRpIjoiMSJ9.hJS0pWsBCuTrPHn28hvjRTxAiy_yfifKxH-WZj2Idic" ORDER BY `auth_tokens`.`user_id` LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/model/user.go:67
nginx-ui  | [0.018ms] [rows:0] SELECT * FROM `passkeys` WHERE `user_id` = 1 AND `passkeys`.`deleted_at` IS NULL LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:56
nginx-ui  | [0.094ms] [rows:1] SELECT * FROM `users` WHERE id=1  AND `users`.`deleted_at` IS NULL LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/list.go:99
nginx-ui  | [0.024ms] [rows:0] SELECT * FROM `environments` WHERE enabled = 1 AND `environments`.`deleted_at` IS NULL ORDER BY id desc
nginx-ui  | [GIN] 2025/06/26 - 09:51:55 | 200 |      460.09µs |   192.168.5.211 | GET      "/api/environments?page=2738&enabled=true"
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:45
nginx-ui  | [0.112ms] [rows:1] SELECT * FROM `auth_tokens` WHERE `auth_tokens`.`token` = ".eyJuYW1lIjoiYWRtaW4iLCJ1c2VyX2lkIjoxLCJpc3MiOiJOZ2lueCBVSSIsInN1YiI6ImFkbWluIiwiZXhwIjoxNzUwOTQ1NDM4LCJuYmYiOjE3NTA4NTkwMzgsImlhdCI6MTc1MDg1OTAzOCwianRpIjoiMSJ9.hJS0pWsBCuTrPHn28hvjRTxAiy_yfifKxH-WZj2Idic" ORDER BY `auth_tokens`.`user_id` LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/model/user.go:67
nginx-ui  | [0.016ms] [rows:0] SELECT * FROM `passkeys` WHERE `user_id` = 1 AND `passkeys`.`deleted_at` IS NULL LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/work/nginx-ui/nginx-ui/internal/user/user.go:56
nginx-ui  | [0.089ms] [rows:1] SELECT * FROM `users` WHERE id=1  AND `users`.`deleted_at` IS NULL LIMIT 1
nginx-ui  |
nginx-ui  | 2025/06/26 09:51:55 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.22.1/list.go:99
nginx-ui  | [0.027ms] [rows:0] SELECT * FROM `environments` WHERE enabled = 1 AND `environments`.`deleted_at` IS NULL ORDER BY id desc
nginx-ui  | [GIN] 2025/06/26 - 09:51:55 | 200 |     463.099µs |   192.168.5.211 | GET      "/api/environments?page=2739&enabled=true"

Screenshots

Image

Info (please complete the following information):

  • Server OS: [debian 12]
  • Server Arch: [ x86, ]
  • Nginx UI Version: [2.1.8]
  • Your Browser: [Edge 版本 137.0.3296.93 (正式版本) (64 位)]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions