[Bug] 无法重置TOTP
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 22.6k
- Forks
- 1.5k
- Avg merge
- 4h 30m
- Merged PRs (30d)
- 11
Description
What happened?
docker exec safeline-mgt resetadmin
panic: failed to init models: AutoMigrate Error: ERROR: could not open file "base/16384/16416": No such file or directory (SQLSTATE 58P01)
goroutine 1 [running]:
main.main()
/work/main.go:45 +0x1cc
How we reproduce?
- ...
- ...
- ...
Expected behavior
No response
Error log
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the resetadmin entry point and /work/main.go:45, then trace the AutoMigrate initialization invoked by docker exec safeline-mgt resetadmin. Reproduce the failure in the project’s Docker setup and determine why the database path cannot be opened; done means TOTP reset completes without the reported migration panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go, postgresql
- Domain
- authentication, backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100