[GH-ISSUE #539] centos7.9 /home/runner/work/nginx-ui/nginx-ui/internal/user/login.go:20 record not found #7395

Closed
opened 2026-03-12 20:26:42 +03:00 by kerem · 7 comments
Owner

Originally created by @seven54 on GitHub (Sep 5, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/539

centos7.9出现错误 /home/runner/work/nginx-ui/nginx-ui/internal/user/login.go:20 record not found

初始化无法正常。账号密码无法正常登陆

image

Originally created by @seven54 on GitHub (Sep 5, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/539 centos7.9出现错误 /home/runner/work/nginx-ui/nginx-ui/internal/user/login.go:20 record not found 初始化无法正常。账号密码无法正常登陆 ![image](https://github.com/user-attachments/assets/0129eef1-b389-4221-88a8-cdd49d7a70a9)
kerem closed this issue 2026-03-12 20:26:47 +03:00
Author
Owner

@0xJacky commented on GitHub (Sep 5, 2024):

安装后访问 ip:port/#/install 执行初始化了吗

<!-- gh-comment-id:2331040062 --> @0xJacky commented on GitHub (Sep 5, 2024): 安装后访问 ip:port/#/install 执行初始化了吗
Author
Owner

@seven54 commented on GitHub (Sep 5, 2024):

有的。用ubuntu20.04系统没有问题。

image

<!-- gh-comment-id:2331044834 --> @seven54 commented on GitHub (Sep 5, 2024): 有的。用ubuntu20.04系统没有问题。 ![image](https://github.com/user-attachments/assets/1ee03604-ffa9-43bb-ac9f-0e743fa5a692)
Author
Owner

@0xJacky commented on GitHub (Sep 5, 2024):

这个截图看起来还是centos7 的日志

然后就是,你可以用工具打开看一下 database.db 的 auths 表里有没有 admin 这个用户。

<!-- gh-comment-id:2331057712 --> @0xJacky commented on GitHub (Sep 5, 2024): 这个截图看起来还是centos7 的日志 然后就是,你可以用工具打开看一下 database.db 的 auths 表里有没有 admin 这个用户。
Author
Owner

@seven54 commented on GitHub (Sep 5, 2024):

image

<!-- gh-comment-id:2331140311 --> @seven54 commented on GitHub (Sep 5, 2024): ![image](https://github.com/user-attachments/assets/f4760f1b-c6e2-4eda-a06f-cbaea0483b60)
Author
Owner

@seven54 commented on GitHub (Sep 5, 2024):

我用ubuntu的配置db文件替换回centos的就可以了。

<!-- gh-comment-id:2331148163 --> @seven54 commented on GitHub (Sep 5, 2024): 我用ubuntu的配置db文件替换回centos的就可以了。
Author
Owner

@0xJacky commented on GitHub (Sep 5, 2024):

emm 不是,你进入 auths 表里看看内容(不要截图发上来),看一下有没有 name 为 admin 这一行

<!-- gh-comment-id:2331148266 --> @0xJacky commented on GitHub (Sep 5, 2024): emm 不是,你进入 auths 表里看看内容(不要截图发上来),看一下有没有 name 为 admin 这一行
Author
Owner

@0xJacky commented on GitHub (Sep 5, 2024):

ok

<!-- gh-comment-id:2331149412 --> @0xJacky commented on GitHub (Sep 5, 2024): ok
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#7395
No description provided.