chaitin / chaitin/SafeLine

[Bug] 无法重置TOTP

Open
#1,317 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

invalid
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?
  1. ...
  2. ...
  3. ...
Expected behavior

No response

Error log

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.