Skip to content
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

Migration[209]: Increase WebAuthentication CredentialID size to 410 #18759

Closed
azhai opened this issue Feb 14, 2022 · 3 comments · Fixed by #18760
Closed

Migration[209]: Increase WebAuthentication CredentialID size to 410 #18759

azhai opened this issue Feb 14, 2022 · 3 comments · Fixed by #18760
Milestone

Comments

@azhai
Copy link

azhai commented Feb 14, 2022

Gitea Version

1.17-dev-157

Git Version

2.34.1

Operating System

CentOS 7

How are you running Gitea?

gitea web

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

2022/02/14 10:30:51 routers/common/db.go:34:InitDBEngine() [I] Backing off for 3 seconds
2022/02/14 10:30:54 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #3/10...
2022/02/14 10:30:54 cmd/web.go:152:runWeb() [I] PING DATABASE mysql
2022/02/14 10:30:54 ...ations/migrations.go:467:Migrate() [I] Migration[209]: Increase WebAuthentication CredentialID size to 410
2022/02/14 10:30:54 routers/common/db.go:33:InitDBEngine() [E] ORM engine initialization attempt #3/10 failed. Error: migrate: migration[209]: Increase WebAuthentication CredentialID size to 410 failed: Error 1146: Table 'db_gitea.u2f_registration' doesn't exist

Screenshots

No response

@lunny
Copy link
Member

lunny commented Feb 14, 2022

I think we haven't drop the table. Why it's missed in your instance? Oh, right. It's possible.

@azhai
Copy link
Author

azhai commented Feb 14, 2022

git reset --hard 1b1658d8875e42f0c5130ddfe9c7339e10bf5c20
Then rebuild the project, the bug disapper.

@azhai
Copy link
Author

azhai commented Feb 14, 2022

I think we haven't drop the table. Why it's missed in your instance? Oh, right. It's possible.

Because I installed the gitea in v1.16-dev some monthes ago.

@lunny lunny added this to the 1.16.2 milestone Feb 14, 2022
@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