Skip to content

Upgrading to 1.16.2 does not work #18889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kolaente opened this issue Feb 25, 2022 · 3 comments · Fixed by #18892
Closed

Upgrading to 1.16.2 does not work #18889

kolaente opened this issue Feb 25, 2022 · 3 comments · Fixed by #18892

Comments

@kolaente
Copy link
Member

kolaente commented Feb 25, 2022

Gitea Version

1.16.2

Git Version

No response

Operating System

Docker

How are you running Gitea?

Using the official docker image gitea/gitea:1.16.2.

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No - Not relevant I guess?

Log Gist

https://gist.github.com/kolaente/275fe9b431bc85feff1e42cc1a1fb40f

Description

Upgrading from gitea 1.16.1 to 1.16.2 fails with

[E] ORM engine initialization attempt #9/10 failed. Error: migrate: migration[210]: v208 was completely broken - remigrate failed: unable to (re)insert webauthn_credential[6]. Error: Error 1062: Duplicate entry 'fido-1' for key 'UQE_webauthn_credential_s'

Removing the key from the database would probably fix it, but I guess it would also require me to re-add the key to my account?

Screenshots

No response

@kolaente
Copy link
Member Author

Can confirm removing the key entry it complains about lets me upgrade properly.

@kolaente
Copy link
Member Author

kolaente commented Feb 25, 2022

Maybe duplicate of #18881

@mjanssens
Copy link

Just to confirm. 1.16.2 would not start, failed with this issue report.
Waited for 1.16.3, installed it and it's working now.
I did not do any manual modifications on the DB (Postgresql) in between these versions.
So thanks.

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants