Unable to migrate mariadb database from 1.34.3 to 1.35.x #196

Closed
opened 2026-04-05 20:37:06 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Polve on 12/30/2025

Prerequisites

Vaultwarden Support String

not relevant

Vaultwarden Build Version

1.35.1

Deployment method

Official Container Image

Custom deployment method

No response

Reverse Proxy

apache

Host/Server Operating System

Linux

Operating System Version

debian trixie

Clients

Web Vault

Client Version

No response

Steps To Reproduce

I'm trying to migrate VW from a debian install to latest docker image because the debian package is not up to date.
My database is mariadb, not sqlite3
If I run the docker container for version 1.34.3 telling it to connect to the db everything works correctly, but if I try running the latest docker image or 1.35.0 the app will not start with this error:

vaultwarden | [2025-12-30 17:04:09.415][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2024-03-06-170000_add_sso_users", version: MigrationVersion("20240306170000") }, DatabaseError(Unknown, "Can't create table vault.sso_users (errno: 150 "Foreign key constraint is incorrectly formed")"))': src/db/mod.rs:505

Is there something special I need to do or can I manually migrate the database?

Expected Result

migration succeed

Actual Result

DatabaseError(Unknown, "Can't create table vault.sso_users (errno: 150 "Foreign key constraint is incorrectly formed")"))':

Logs


Screenshots or Videos

No response

Additional Context

No response

*Originally created by @Polve on 12/30/2025* ### Prerequisites - [x] I have searched the existing **Closed _AND_ Open** [Issues](https://github.com/dani-garcia/vaultwarden/issues?q=is%3Aissue%20) **_AND_** [Discussions](https://github.com/dani-garcia/vaultwarden/discussions?discussions_q=) - [x] I have searched and read the [documentation](https://github.com/dani-garcia/vaultwarden/wiki/) ### Vaultwarden Support String not relevant ### Vaultwarden Build Version 1.35.1 ### Deployment method Official Container Image ### Custom deployment method _No response_ ### Reverse Proxy apache ### Host/Server Operating System Linux ### Operating System Version debian trixie ### Clients Web Vault ### Client Version _No response_ ### Steps To Reproduce I'm trying to migrate VW from a debian install to latest docker image because the debian package is not up to date. My database is mariadb, not sqlite3 If I run the docker container for version 1.34.3 telling it to connect to the db everything works correctly, but if I try running the latest docker image or 1.35.0 the app will not start with this error: > vaultwarden | [2025-12-30 17:04:09.415][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2024-03-06-170000_add_sso_users", version: MigrationVersion("20240306170000") }, DatabaseError(Unknown, "Can't create table `vault`.`sso_users` (errno: 150 \"Foreign key constraint is incorrectly formed\")"))': src/db/mod.rs:505 Is there something special I need to do or can I manually migrate the database? ### Expected Result migration succeed ### Actual Result DatabaseError(Unknown, "Can't create table `vault`.`sso_users` (errno: 150 \"Foreign key constraint is incorrectly formed\")"))': ### Logs ```text ``` ### Screenshots or Videos _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#196