mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #2085] Cannot update from 1.22.2 to 1.23.0 due to database migration error #1150
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2085
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!