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

更改用户时出现 database is locked #324

Closed
Sokwva opened this issue Mar 7, 2024 · 7 comments
Closed

更改用户时出现 database is locked #324

Sokwva opened this issue Mar 7, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Sokwva
Copy link

Sokwva commented Mar 7, 2024

从文档 https://github.com/go-sigma/demo-server/blob/main/sigma/config.yaml 复制配置内容直接粘贴到config.yaml后启动:

 ERR users/users_put.go:97 Delete role for user failed error="database is locked"
@Sokwva Sokwva closed this as completed Mar 7, 2024
@Sokwva Sokwva changed the title startup: users: illegal base64 data at input byte 28 更改用户时出现 database is locked Mar 7, 2024
@Sokwva Sokwva reopened this Mar 7, 2024
@tosone
Copy link
Contributor

tosone commented Mar 7, 2024

确实是一个问题,在数据库为 sqlite3 的时候会出现,我想一下怎么修复。

@tosone tosone added the bug Something isn't working label Mar 8, 2024
@tosone
Copy link
Contributor

tosone commented Mar 8, 2024

@Sokwva 你再试一下 docker pull tosone/sigma:nightly-alpine 这个最新的镜像试试?问题应该已经解决了。

@Sokwva
Copy link
Author

Sokwva commented Mar 8, 2024

@Sokwva 你再试一下 docker pull tosone/sigma:nightly-alpine 这个最新的镜像试试?问题应该已经解决了。

这个问题已经恢复了,但是在push的时候明明已经login过了,但是还是显示 authentification required ,然后网页控制台进入repository,右上角弹出invalid request body,然后看日志是说

repositories/repositories_list.go:73 Bind and validate request body failed error="code=400, message=strconv.ParseInt: parsing \"null\": invalid syntax, internal=strconv.ParseInt: parsing \"null\": invalid syntax"

@tosone
Copy link
Contributor

tosone commented Mar 8, 2024

push 镜像提示登录的时候 sigma 里有什么日志么?

@tosone
Copy link
Contributor

tosone commented Mar 8, 2024

@Sokwva 你可以加我的联系方式,在主页的 readme 下方,你说的这个问题没有能复现出来。

@Sokwva
Copy link
Author

Sokwva commented Mar 8, 2024

@Sokwva 你可以加我的联系方式,在主页的 readme 下方,你说的这个问题没有能复现出来。

好的

@tosone
Copy link
Contributor

tosone commented Mar 12, 2024

或许问题已经得到解决,如果还有问题欢迎重新打开。

@tosone tosone closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants