mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Update to 1.25.0 fails #1289
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 @angelbarrera92 on GitHub (May 30, 2022).
Subject of the issue
Running vaultwarden 1.24.0, then, trying to update to 1.25.0 (just changing the container tag image). It fails during container startup.
Seems like the migration sql sentences are not working fine in my setup.
Deployment environment
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_SSL, SMTP_EXPLICIT_TLS, SMTP_PORT, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD, SMTP_AUTH_MECHANISM
Steps to reproduce
I'm updating stopping the 1.24.0 and then starting 1.25.0 with the same configuration.
Expected behaviour
It updates :)
Actual behaviour
It fails with the following error:
Troubleshooting data
Non-default config:
1.25.0 start logs
@BlackDex commented on GitHub (May 30, 2022):
Strange, there seems to be something invalid already with your current
devicestable.Best solution here would be to stop Vaultwarden, make a copy of the database as backup.
Then open the database using a sqlite editor (GUI is the most easy for this one).
And then look at the devices table which has nothing filled in at the
updated_attable.Then you could add a custom date there and try to rerun the the upgrade.
An other option would be (if that works) is to remove all sessions for all users via the admin interface.
That should clear that table, but also forces you to do a re-login on all devices for all users.
@angelbarrera92 commented on GitHub (May 30, 2022):
Added a dummy date in those row where were null; new errors appear in the same table while re-running the upgrade:
@BlackDex commented on GitHub (May 30, 2022):
Well, there are just two fields/columns which may be empty, and those are
push_tokenandtwofactor_rememberall other fields should be filled.If you have a records which do not have a
user_uuidi would remove those records and try again