mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #1815] server:1.22.1-alpine not starting #1067
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#1067
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 @vincentchu37 on GitHub (Jul 1, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1815
Subject of the issue
Upgrading to server:1.22.1-alpine from server:1.21.0-alpine unable to start
Deployment environment
Docker in Docker Swarm
vaultwarden version: 1.22.1
Install method: Docker in Docker Swarm
Steps to reproduce.
Bumped docker image version in docker-compose.yml ran docker stack deploy. Unable to start with this error.
Reverting back to server:1.21.0-alpine it starts fine with no warnings or errors.
@BlackDex commented on GitHub (Jul 1, 2021):
Seems to be something with the webauthn migration.
Not sure what it could be to cause this.
@vincentchu37 commented on GitHub (Jul 1, 2021):
I have another instance that uses docker (non-swarm) that i just upgraded to server:1.22.1-alpine and it started up fine. I'm not sure if this is relevant, but
Here are the two docker-composes
Non-Working (Swarm)
Working (Non-Swarm)
@BlackDex commented on GitHub (Jul 2, 2021):
It has something to do with the two factor authentication. So something in the database of there falling server is causing it to fall
@NorthernLightsDevel commented on GitHub (Jul 5, 2021):
I have the same issue with Kubernetes deployment, works if I set vaultwarden/server:1.21.0 for 1.22.x it seems to freeze somewhere between trying to load the .env file and launching Rocket.
deployment file:
Config-map
@BlackDex commented on GitHub (Jul 5, 2021):
@vincentchu37, i think it has to do with some data stored within the database.
Within the
twofactortable, there is a field calleddatawhich holds a json including data of your key, including theid.For some reason that
idfield is missing from the json string, which is causing an issue during the migration to webauthn.If you are able to see which user has this
idfield missing within the json data within thedatafield in the database, then i would suggest to contact that user, remove his 2FA tokens via the/admin/users/overviewpage, and let him re-register his tokens.You could first remove his 2FA tokens, update Vaultwarden, and then let that user re-register his tokens, that way the user goes through the new webauthn path already instead of it being migrated.
@vincentchu37 commented on GitHub (Jul 6, 2021):
@BlackDex
Looking at the
datafield in thetwofactortable, I don't even see any keys namedid.Here is all the json I dumped from the twofactor table. I have removed a lot of data, but the structure is here
@vincentchu37 commented on GitHub (Jul 23, 2021):
I managed to workaround this by deleting all user's yubikeys.
@BlackDex commented on GitHub (Jul 26, 2021):
Strange, as i do not see any former U2F token there in your example.
That work-around is a solution indeed, but it is still strange.
I'm at least glad you could update. Also, there has been released a new version yesterday/today which also has some fixes regarding WebAuthn.