[GH-ISSUE #2246] Error while upgrading vaultwarden to 1.23.1 #1203

Closed
opened 2026-03-03 02:07:07 +03:00 by kerem · 1 comment
Owner

Originally created by @paulo-dc on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2246

Hello,

First, many thanks for this implementation. Really vaultwarden is really great !

But unfortunatly, I just faced a major issue, after upgrading to docker Image 1.23.1

I deployed vaultwarden in an Openshift environment.

After updating the release of the docker image and the pod creation, it crash loop at start, and in the log I got this error (in loop)

Running migration 20210830193501
Executing migration script 20210830193501/up.sql
[2022-01-20 10:16:32.061][vaultwarden::util][WARN] Can't connect to database, retrying: DieselMig.
[CAUSE] QueryError(
    DatabaseError(
        __Unknown,
        "Can't create table `<database_name>`.`emergency_access` (errno: 150 \"Foreign key constraint is incorrectly formed\")",
    ),
)

Deployment environment

  • vaultwarden version: 1.23.1
  • Install method: Docker image
  • MariaDB : 10.5.12

Please can you help me to solve this issue ?

BR

Paulo

Originally created by @paulo-dc on GitHub (Jan 20, 2022). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2246 Hello, First, many thanks for this implementation. Really vaultwarden is really great ! But unfortunatly, I just faced a major issue, after upgrading to docker Image 1.23.1 I deployed vaultwarden in an Openshift environment. After updating the release of the docker image and the pod creation, it crash loop at start, and in the log I got this error (in loop) ``` Running migration 20210830193501 Executing migration script 20210830193501/up.sql [2022-01-20 10:16:32.061][vaultwarden::util][WARN] Can't connect to database, retrying: DieselMig. [CAUSE] QueryError( DatabaseError( __Unknown, "Can't create table `<database_name>`.`emergency_access` (errno: 150 \"Foreign key constraint is incorrectly formed\")", ), ) ``` ### Deployment environment * vaultwarden version: 1.23.1 * Install method: Docker image * MariaDB : 10.5.12 Please can you help me to solve this issue ? BR Paulo
kerem closed this issue 2026-03-03 02:07:07 +03:00
Author
Owner

@BlackDex commented on GitHub (Jan 20, 2022):

Please search first before posting an issue.
https://github.com/dani-garcia/vaultwarden/wiki/Using-the-MariaDB-%28MySQL%29-Backend#foreign-key-errors-collation-and-charset

<!-- gh-comment-id:1017367434 --> @BlackDex commented on GitHub (Jan 20, 2022): Please search first before posting an issue. https://github.com/dani-garcia/vaultwarden/wiki/Using-the-MariaDB-%28MySQL%29-Backend#foreign-key-errors-collation-and-charset
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1203
No description provided.