[GH-ISSUE #1488] Upgrade to new version 2.19 #981

Closed
opened 2026-03-03 02:05:16 +03:00 by kerem · 4 comments
Owner

Originally created by @gkl1368 on GitHub (Mar 15, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1488

Running migration 20210311190243
BitWarden | Executing migration script 20210311190243/up.sql
BitWarden | [2021-03-15 10:39:46.977][bitwarden_rs::util][WARN] Can't connect to database, retrying: DieselMigError.
BitWarden | [CAUSE] QueryError(
BitWarden | DatabaseError(
BitWarden | __Unknown,
BitWarden | "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NOT NULL,\n password_hash BLOB,\n password_salt BLOB,\n password_iter...' at line 11",

I have this problem when I upgrade to 2.19,I use docker with MySQL. It work ok before update.

Originally created by @gkl1368 on GitHub (Mar 15, 2021). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1488 Running migration 20210311190243 BitWarden | Executing migration script 20210311190243/up.sql BitWarden | [2021-03-15 10:39:46.977][bitwarden_rs::util][WARN] Can't connect to database, retrying: DieselMigError. BitWarden | [CAUSE] QueryError( BitWarden | DatabaseError( BitWarden | __Unknown, BitWarden | "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'NOT NULL,\n password_hash BLOB,\n password_salt BLOB,\n password_iter...\' at line 11", I have this problem when I upgrade to 2.19,I use docker with MySQL. It work ok before update.
kerem closed this issue 2026-03-03 02:05:16 +03:00
Author
Owner

@BlackDex commented on GitHub (Mar 15, 2021):

Please check your database Collation.
See: https://github.com/dani-garcia/bitwarden_rs/issues/1305#issuecomment-774558466 for some info.
This could cause some strange issues when it has a different collation, it could very well be this issue.

<!-- gh-comment-id:799336783 --> @BlackDex commented on GitHub (Mar 15, 2021): Please check your database Collation. See: https://github.com/dani-garcia/bitwarden_rs/issues/1305#issuecomment-774558466 for some info. This could cause some strange issues when it has a different collation, it could very well be this issue.
Author
Owner

@dani-garcia commented on GitHub (Mar 15, 2021):

I think MySQL doesn’t allow using key as a column name, might need to rename it to akey like with the user table.

We’ll need to modify the existing MySQL migration and create two new ones for the other two.

<!-- gh-comment-id:799339166 --> @dani-garcia commented on GitHub (Mar 15, 2021): I think MySQL doesn’t allow using key as a column name, might need to rename it to akey like with the user table. We’ll need to modify the existing MySQL migration and create two new ones for the other two.
Author
Owner

@gkl1368 commented on GitHub (Mar 15, 2021):

I think MySQL doesn’t allow using key as a column name, might need to rename it to akey like with the user table.

We’ll need to modify the existing MySQL migration and create two new ones for the other two.

OK. I will wait for your modify. Thanks

<!-- gh-comment-id:799349174 --> @gkl1368 commented on GitHub (Mar 15, 2021): > I think MySQL doesn’t allow using key as a column name, might need to rename it to akey like with the user table. > > > > We’ll need to modify the existing MySQL migration and create two new ones for the other two. OK. I will wait for your modify. Thanks
Author
Owner

@gkl1368 commented on GitHub (Mar 16, 2021):

After upgrade to new docker image, it works. Thanks.

<!-- gh-comment-id:799929743 --> @gkl1368 commented on GitHub (Mar 16, 2021): After upgrade to new docker image, it works. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#981
No description provided.