Skip to content

[Bug] Docker log keeps showing record not found #1398

@LimLLL

Description

@LimLLL

Describe the bug
docker logs一直显示这个错误

nginx-ui  | 2025/10/18 10:58:14 github.com/0xJacky/Nginx-UI/api/notification/notification.go:18 record not found
nginx-ui  | [0.127ms] [rows:0] SELECT * FROM `notifications` WHERE id=0  AND `notifications`.`deleted_at` IS NULL LIMIT 1
nginx-ui  | 2025-10-18 10:58:14.300     ERROR   github.com/0xJacky/Nginx-UI/api/notification/notification.go:21 record not found
nginx-ui  | [GIN] 2025/10/18 - 10:58:14 | 404 |     479.167µs |       127.0.0.1 | GET      "/api/notifications/live"
nginx-ui  | [GIN] 2025/10/18 - 10:58:20 | 404 |      98.648µs |       127.0.0.1 | GET      "/api/system/processing"
nginx-ui  | 
nginx-ui  | 2025/10/18 10:58:20 github.com/0xJacky/Nginx-UI/api/notification/notification.go:18 record not found
nginx-ui  | [0.146ms] [rows:0] SELECT * FROM `notifications` WHERE id=0  AND `notifications`.`deleted_at` IS NULL LIMIT 1
nginx-ui  | 2025-10-18 10:58:20.332     ERROR   github.com/0xJacky/Nginx-UI/api/notification/notification.go:21 record not found
nginx-ui  | [GIN] 2025/10/18 - 10:58:20 | 404 |     531.702µs |       127.0.0.1 | GET      "/api/notifications/live"
nginx-ui  | [GIN] 2025/10/18 - 10:58:26 | 404 |      89.412µs |       127.0.0.1 | GET      "/api/system/processing"
nginx-ui  | 

我是从老版本v2.0.0-rc.7直接升级到目前最新的2.2.0版本,是不是因为这个原因导致的?只要在nginxui的前端ui界面,就会一直提示这个错误。似乎是和消息提醒有关?

To Reproduce
Steps to reproduce the behavior:

  1. Docker imploy v2.0.0-rc.7
  2. Login to Nginx-UI
  3. Shut down Nginx-UI and pull newest image and restart
  4. go to Nginx-UI frontend
  5. docker compose logs -f and See error

Info (please complete the following information):

  • Server OS: Ubuntu 22.04
  • Server Arch: amd64
  • Nginx UI Version: 2.2.0
  • Your Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions