Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新最新版后启动错误,无法进入UI #691

Closed
chung1912 opened this issue Nov 1, 2024 · 8 comments
Closed

更新最新版后启动错误,无法进入UI #691

chung1912 opened this issue Nov 1, 2024 · 8 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@chung1912
Copy link

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

  • using env: export GIN_MODE=release

2024-11-01 13:49:42 FATAL /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.9.12/model/model.go:61 malformed database schema (idx_sites_path) - invalid rootpage

  • using code: gin.SetMode(gin.ReleaseMode)

2024/11/01 13:49:42 /home/runner/go/pkg/mod/github.com/uozi-tech/cosy@v1.9.12/model/model.go:51

[error] failed to initialize database, got error malformed database schema (idx_sites_path) - invalid rootpage

@chung1912 chung1912 added the bug Something isn't working label Nov 1, 2024
@0xJacky
Copy link
Owner

0xJacky commented Nov 1, 2024

参考这个解决:#673

@0xJacky 0xJacky added the duplicate This issue or pull request already exists label Nov 1, 2024
@chung1912
Copy link
Author

chung1912 commented Nov 1, 2024

参考这个解决:#673

先是出现错误:UNIQUE constraint failed: sites.path
我参照这个方法https://github.com/0xJacky/nginx-ui/issues/673, 在database.db里面清空 了sites 表,结果就报我发出来的那个错误

@0xJacky
Copy link
Owner

0xJacky commented Nov 1, 2024

那可能 sqlite 文件损坏了,重新安装吧

@chung1912
Copy link
Author

那可能 sqlite 文件损坏了,重新安装吧

我里面十几个站点,会需要重新配置?

@chung1912
Copy link
Author

那可能 sqlite 文件损坏了,重新安装吧

重新安装进不去,用户名密码不正确,admin/admin进不去,原来的用户名密码也进不去

@0xJacky
Copy link
Owner

0xJacky commented Nov 1, 2024

删掉原来的db

@chung1912
Copy link
Author

chung1912 commented Nov 1, 2024

删掉原来的db

我直接删除了原来的db,其他配置参数不变,然后重新部署,会创建一个新的db,但使用admin/admin登录,提示用户名密码不正确,然后错误日志2024/11/01 14:24:18 /home/runner/work/nginx-ui/nginx-ui/internal/user/login.go:38 record not found
打开数据库查看,发现auths表是空的

@chung1912
Copy link
Author

删掉原来的db

解决了,要把那个app.ini文件也一并删除才行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
Status: Done
Development

No branches or pull requests

2 participants