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
Error with MySQL DB when migrating to v4.35.0 #2840
Comments
Hmm... It's pretty weird. gitbucket/src/test/scala/gitbucket/core/GitBucketCoreModuleSpec.scala Lines 29 to 50 in cf0f896
|
This happened to me just today. It failed on the statement
In my case it was due to migration of gitbucket to a newer server, and the database there having a different set of COLLATE defaults that resulted in a column definition mismatch between the WEB_HOOK and REPOSITORY tables
and
My fix (bit of a hack, but quick and worked !!) was to
Trying to recover with the existing database, sorry, can't help you there. |
Ah, I see... That makes sense. But do you think if we should do something on GitBucket side to cover such cases? |
Issue
Impacted version: 4.35.0
Deployment mode: Docker image : gitbucket/gitbucket:4.35.0 with MySQL driver
Problem description:
MySQL Error when migrating to v4.35.0, table engine
ENGINE=InnoDB
.v4.34.0 was working very well.
Above error occured with this line of migration script:
https://github.com/gitbucket/gitbucket/blob/master/src/main/resources/update/gitbucket-core_4.35.xml#L27
Running other migration scripts with
referencedTableName
also failed.The text was updated successfully, but these errors were encountered: