mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-16 08:54:01 -05:00
Cannot update from 1.22.2 to 1.23.0 due to database migration error #1146
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FrankelJb on GitHub (Nov 6, 2021).
Subject of the issue
Updating from 1.22.2 to 1.23.0 fails with a database error:
Deployment environment
Your environment (Generated via diagnostics page)
Steps to reproduce
When upgrading the container image to use
vaultwarden/server:1.23.0, the database migration fails with the error. I have made no changes to the database or the connection string. I can also rollback from the failed 1.23.0 to 1.22.2 without any trouble:Expected behaviour
Expected migrations to run and database to be updated.
Actual behaviour
Cannot start Vaultwarden and rollback to 1.22.2 is required.
Troubleshooting data
@BlackDex commented on GitHub (Nov 6, 2021):
Already fixed via #2080
@jjlin commented on GitHub (Nov 6, 2021):
This one is actually more like #2054.
@BlackDex commented on GitHub (Nov 6, 2021):
Ah indeed, sorry for the quick mistake
@FrankelJb commented on GitHub (Nov 6, 2021):
Thanks for the amazingly quick response. Incredible work on this project!
@MurzNN commented on GitHub (Dec 2, 2021):
Hmm, I've got this problem on upgrading from legacy bitwardenrs/server:1.17.0 to 1.23 and even 1.22.2 version (but with other tables) using mysql (mariadb), and with 1.21.0 too.
Also with
testingdocker tag (Version 1.23.0-ead2f02c) - the error is:@BlackDex commented on GitHub (Dec 2, 2021):
@MurzNN this is the same issue as the OP, which has the same solution: See https://github.com/dani-garcia/vaultwarden/discussions/1559#discussioncomment-544070
@MurzNN commented on GitHub (Dec 2, 2021):
Yeah, sorry for noise, have found this issue first and decided that I have the same situation, that comment fixes all for me!