-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Upgrade to 1.16.2 failed , due to database migration issue #18881
Comments
And I upgraded from 1.16.1 before (and all the way from 1.14.6) |
So, I guess what happened is that as I removed the keys (I have 2 u2f keys) last time (#18477 (comment)), they were still present in the DB. I have added the 2 same keys again after the upgrade, so the current status is that:
And so the migration do not seems to take that case in account. |
As I needed my forge to be working, the solution I used was to connect to Postgres, and run:
But the issue was related to having 2 entries in the u2f_registration table with the same exact name/user as the 2 webauthn entries. |
Sadly, I can confirm the issue. |
So there are also a same name key in the table but with different id from u2f table.
|
Gitea Version
1.16.2
Git Version
git-2.35.1-1.fc35.x86_64
Operating System
Fedora
How are you running Gitea?
I am using the upstream binary from github on amd64.
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
I just upgraded to 0.16.2 using a script. Upon restarting gitea, the following error message is in the log:
Screenshots
No response
The text was updated successfully, but these errors were encountered: