[GH-ISSUE #6541] Panic error: Error running migrations: QueryError after new update in testing image #2465

Closed
opened 2026-03-03 02:18:34 +03:00 by kerem · 2 comments
Owner

Originally created by @Matt0550 on GitHub (Dec 9, 2025).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/6541

Prerequisites

Vaultwarden Support String

Can't access to admin UI.

Vaultwarden Build Version

Version 1.34.3-b77c01b8

Deployment method

Official Container Image

Custom deployment method

No response

Reverse Proxy

nginx-proxy-manager 2.12.6

Host/Server Operating System

Linux

Operating System Version

Ubuntu server 24

Clients

Desktop

Client Version

No response

Steps To Reproduce

After updating the Docker image with the new testing version, I get these migrations errors and the container doesn't start. Previously, I was on a previous version of the testing branch.

Expected Result

The container starts correctly and migrations are performed automatically

Actual Result

Container fails to start with migrations errors:

/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|                      Version 1.34.3-b77c01b8                       |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/
[2025-12-09 09:06:23.255][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520
   0: vaultwarden::init_logging::{{closure}}
   1: std::panicking::panic_with_hook
   2: std::panicking::panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|                      Version 1.34.3-b77c01b8                       |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/
[2025-12-09 09:06:24.326][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520
   0: vaultwarden::init_logging::{{closure}}
   1: std::panicking::panic_with_hook
   2: std::panicking::panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|                      Version 1.34.3-b77c01b8                       |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/
[2025-12-09 09:06:26.228][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520
   0: vaultwarden::init_logging::{{closure}}
   1: std::panicking::panic_with_hook
   2: std::panicking::panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start

Logs

6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|                      Version 1.34.3-b77c01b8                       |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/
[2025-12-09 09:06:23.255][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520
   0: vaultwarden::init_logging::{{closure}}
   1: std::panicking::panic_with_hook
   2: std::panicking::panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|                      Version 1.34.3-b77c01b8                       |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/
[2025-12-09 09:06:24.326][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520
   0: vaultwarden::init_logging::{{closure}}
   1: std::panicking::panic_with_hook
   2: std::panicking::panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|                      Version 1.34.3-b77c01b8                       |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/
[2025-12-09 09:06:26.228][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520
   0: vaultwarden::init_logging::{{closure}}
   1: std::panicking::panic_with_hook
   2: std::panicking::panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: vaultwarden::db::DbPool::from_config
   8: vaultwarden::main::{{closure}}
   9: vaultwarden::main
  10: std::sys::backtrace::__rust_begin_short_backtrace
  11: main
  12: <unknown>
  13: __libc_start_main

  14: _start

Screenshots or Videos

No response

Additional Context

No response

Originally created by @Matt0550 on GitHub (Dec 9, 2025). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/6541 ### 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 Can't access to admin UI. ### Vaultwarden Build Version Version 1.34.3-b77c01b8 ### Deployment method Official Container Image ### Custom deployment method _No response_ ### Reverse Proxy nginx-proxy-manager 2.12.6 ### Host/Server Operating System Linux ### Operating System Version Ubuntu server 24 ### Clients Desktop ### Client Version _No response_ ### Steps To Reproduce After updating the Docker image with the new testing version, I get these migrations errors and the container doesn't start. Previously, I was on a previous version of the testing branch. ### Expected Result The container starts correctly and migrations are performed automatically ### Actual Result Container fails to start with migrations errors: ``` /--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.34.3-b77c01b8 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2025-12-09 09:06:23.255][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::panic_with_hook 2: std::panicking::panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start /--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.34.3-b77c01b8 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2025-12-09 09:06:24.326][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::panic_with_hook 2: std::panicking::panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start /--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.34.3-b77c01b8 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2025-12-09 09:06:26.228][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::panic_with_hook 2: std::panicking::panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start ``` ### Logs ```text 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start /--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.34.3-b77c01b8 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2025-12-09 09:06:23.255][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::panic_with_hook 2: std::panicking::panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start /--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.34.3-b77c01b8 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2025-12-09 09:06:24.326][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::panic_with_hook 2: std::panicking::panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start /--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.34.3-b77c01b8 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2025-12-09 09:06:26.228][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2025-08-20-120000_sso_nonce_to_auth", version: MigrationVersion("20250820120000") }, DatabaseError(Unknown, "must be owner of table sso_nonce"))': src/db/mod.rs:520 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::panic_with_hook 2: std::panicking::panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: __rustc::rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main  14: _start ``` ### Screenshots or Videos _No response_ ### Additional Context _No response_
kerem 2026-03-03 02:18:34 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@BlackDex commented on GitHub (Dec 9, 2025):

Which previous version/hash were you running?

<!-- gh-comment-id:3631216910 --> @BlackDex commented on GitHub (Dec 9, 2025): Which previous version/hash were you running?
Author
Owner

@BlackDex commented on GitHub (Dec 9, 2025):

I'm not able to reproduce this.
I think your database is not correctly configured.

You probably need to update it with something like this.

--- Adjust <your_vaultwarden_user> to the username you used without the <>
ALTER TABLE sso_nonce OWNER TO <your_vaultwarden_user>;
<!-- gh-comment-id:3631259279 --> @BlackDex commented on GitHub (Dec 9, 2025): I'm not able to reproduce this. I think your database is not correctly configured. You probably need to update it with something like this. ```sql --- Adjust <your_vaultwarden_user> to the username you used without the <> ALTER TABLE sso_nonce OWNER TO <your_vaultwarden_user>; ```
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#2465
No description provided.