Skip to content

Migrate 1.13.7 to 1.14.1 failed, need help #15505

@yusiwen

Description

@yusiwen

The error output of gitea-1.14.1-linux-amd64 doctor --all is shown below:

[2] Check Database Version
 - [C] Error: migrate: Current database version 156 is not equal to the expected version 178. Please run "gitea [--config /path/to/app.ini] migrate" to update the database version during ensure up to date
ERROR
[3] Check consistency of database
 - [C] Model version on the database does not match the current Gitea version. Model consistency will not be checked until the database is upgraded
ERROR

The output of gitea-1.14.1-linux-amd64 migrate is shown below:

...
2021/04/16 15:26:55 ...ations/migrations.go:397:Migrate() [I] [SQL] ROLLBACK [] - 353.864µs
2021/04/16 15:26:55 cmd/migrate.go:38:runMigrate() [F] Failed to initialize ORM engine: migrate: do migrate: GetTagCommit: object does not exist [id: f1beee0c8b030aec9c2863ebf884f8eb88d9ed6c, rel_path: ]

It seems something in the database is missing, anyone can help? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugtype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions