DB migration still broken #8645

Closed
opened 2025-11-02 08:13:16 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @podkilla on GitHub (Mar 3, 2022).

Gitea Version

1.16.3

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker stack with mysql db

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

The error that occurred with version 1.16.2 is still present. DB migration still broken.

2022/03/03 08:03:17 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2022/03/03 08:03:17 cmd/web.go:153:runWeb() [I] PING DATABASE mysql
2022/03/03 08:03:17 ...ations/migrations.go:469:Migrate() [I] Migration[210]: v208 was completely broken - remigrate
2022/03/03 08:03:17 routers/common/db.go:33:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: migrate: migration[210]: v208 was completely broken - remigrate failed: unable to (re)insert webauthn_credential[1]. Error: Error 1062: Duplicate entry 'yubikey-1' for key 'webauthn_credential.UQE_webauthn_credential_s'
2022/03/03 08:03:17 routers/common/db.go:34:InitDBEngine() [I] Backing off for 3 seconds
2022/03/03 08:03:20 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #2/10...
2022/03/03 08:03:20 cmd/web.go:153:runWeb() [I] PING DATABASE mysql

Screenshots

No response

Originally created by @podkilla on GitHub (Mar 3, 2022). ### Gitea Version 1.16.3 ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker stack with mysql db ### Database MySQL ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Description The error that occurred with version 1.16.2 is still present. DB migration still broken. 2022/03/03 08:03:17 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #1/10... 2022/03/03 08:03:17 cmd/web.go:153:runWeb() [I] PING DATABASE mysql 2022/03/03 08:03:17 ...ations/migrations.go:469:Migrate() [I] Migration[210]: v208 was completely broken - remigrate 2022/03/03 08:03:17 routers/common/db.go:33:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: migrate: migration[210]: v208 was completely broken - remigrate failed: unable to (re)insert webauthn_credential[1]. Error: Error 1062: Duplicate entry 'yubikey-1' for key 'webauthn_credential.UQE_webauthn_credential_s' 2022/03/03 08:03:17 routers/common/db.go:34:InitDBEngine() [I] Backing off for 3 seconds 2022/03/03 08:03:20 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #2/10... 2022/03/03 08:03:20 cmd/web.go:153:runWeb() [I] PING DATABASE mysql ### Screenshots _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8645