chaitin / chaitin/SafeLine

[Bug] DB Migration Error

Open
#1,236 2 comments 0 reactions 0 assignees View on GitHub

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?

I'm using Safeline with docker.
I tried to upgrade from 9.0.0 to 9.1.0 and I got a "DB Migration Error" on mgt container.
Websites behind Safeline are still reachable.

How we reproduce?

No response

Expected behavior

No response

Error log
[ERROR] init work/main.go:43 DB Migrations Error: %v no migration found for version 2025030301: read down for version 2025030301 .: file does not exist
panic: no migration found for version 2025030301: read down for version 2025030301 .: file does not exist

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 at work/main.go:43 and inspect how the migration version 2025030301 is selected and loaded during a Docker upgrade from 9.0.0 to 9.1.0. Reproduce the upgrade and verify that the management container completes its database migrations without the missing down-migration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.