Cannot delete user from admin panel - foreign key constraint #8

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

Originally created by @FluffyDiscord on 3/31/2026

Prerequisites

Vaultwarden Support String

2026-03-31 09:10:43.787][error][ERROR] Error deleting user.
[CAUSE] DatabaseError(
ForeignKeyViolation,
"FOREIGN KEY constraint failed",
)

Vaultwarden Build Version

1.35.4

Deployment method

Official Container Image

Custom deployment method

No response

Reverse Proxy

nginx/1.26.3

Host/Server Operating System

Linux

Operating System Version

Debian 13 Trixie

Clients

Web Vault

Client Version

No response

Steps To Reproduce

  1. Go to '/admin/users/overview'
  2. Click on 'Delete User'
  3. See js dialog error
  4. See error in log

Expected Result

Work

Actual Result

Not work :D

Logs

[2026-03-31 09:10:43.787][error][ERROR] Error deleting user.
[CAUSE] DatabaseError(
    ForeignKeyViolation,
    "FOREIGN KEY constraint failed",
)

Screenshots or Videos

No response

Additional Context

No response

*Originally created by @FluffyDiscord on 3/31/2026* ### 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 2026-03-31 09:10:43.787][error][ERROR] Error deleting user. [CAUSE] DatabaseError( ForeignKeyViolation, "FOREIGN KEY constraint failed", ) ### Vaultwarden Build Version 1.35.4 ### Deployment method Official Container Image ### Custom deployment method _No response_ ### Reverse Proxy nginx/1.26.3 ### Host/Server Operating System Linux ### Operating System Version Debian 13 Trixie ### Clients Web Vault ### Client Version _No response_ ### Steps To Reproduce 1. Go to '/admin/users/overview' 2. Click on 'Delete User' 3. See js dialog error 4. See error in log ### Expected Result Work ### Actual Result Not work :D ### Logs ```text [2026-03-31 09:10:43.787][error][ERROR] Error deleting user. [CAUSE] DatabaseError( ForeignKeyViolation, "FOREIGN KEY constraint failed", ) ``` ### Screenshots or Videos _No response_ ### Additional Context _No response_
MrUnknownDE added the bugbug labels 2026-04-05 20:28:55 +02:00
Sign in to join this conversation.
No Label bug bug
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#8