[GH-ISSUE #2500] Vault loading issues (attachments?) #38527

Closed
opened 2026-07-17 04:25:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @PeterRob on GitHub (May 25, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2500

Subject of the issue

After upgrading to version 1.25.0 the vault appears to be empty when opened in the web browser

This is similar to issue #2484 that was closed and subsequently 2 people reported the same problem after closure https://github.com/dani-garcia/vaultwarden/issues/2484

Deployment environment

Your environment (Generated via diagnostics page)

  • Vaultwarden version: v1.25.0
  • Web-vault version: v2.28.1
  • Running within Docker: false (Base: Debian)
  • Environment settings overridden: true
  • Uses a reverse proxy: true
  • IP Header check: false (X-Forwarded-For)
  • Internet access: true
  • Internet access via a proxy: false
  • DNS Check: true
  • Time Check: true
  • Domain Configuration Check: true
  • HTTPS Check: true
  • Database type: MySQL
  • Database version: 10.6.8-MariaDB-1:10.6.8+maria~focal-log
  • Clients used:
  • Reverse proxy and version:
  • Other relevant information:

Config (Generated via diagnostics page)

Show Running Config

Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, SIGNUPS_VERIFY, SIGNUPS_VERIFY_RESEND_TIME, SIGNUPS_VERIFY_RESEND_LIMIT, INVITATIONS_ALLOWED, SHOW_PASSWORD_HINT, ADMIN_TOKEN, DISABLE_ADMIN_TOKEN, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD, SMTP_TIMEOUT

{
  "_duo_akey": null,
  "_enable_duo": false,
  "_enable_email_2fa": true,
  "_enable_smtp": true,
  "_enable_yubico": true,
  "_ip_header_enabled": true,
  "admin_ratelimit_max_burst": 3,
  "admin_ratelimit_seconds": 300,
  "admin_token": "***",
  "allowed_iframe_ancestors": "",
  "attachments_folder": "data/attachments",
  "authenticator_disable_time_drift": false,
  "data_folder": "data",
  "database_conn_init": "",
  "database_max_conns": 10,
  "database_timeout": 30,
  "database_url": "*****://***********:***********@*********:****/***********",
  "db_connection_retries": 15,
  "disable_2fa_remember": false,
  "disable_admin_token": false,
  "disable_icon_download": false,
  "domain": "*****://*****.*****.*******.***",
  "domain_origin": "*****://*****.*****.*******.***",
  "domain_path": "",
  "domain_set": true,
  "duo_host": "api-fbb50db5.duosecurity.com",
  "duo_ikey": "DUO_IKEY=DIW8AE20XCDFP9LBDY69",
  "duo_skey": "***",
  "email_attempts_limit": 3,
  "email_expiration_time": 600,
  "email_token_size": 6,
  "emergency_access_allowed": true,
  "emergency_notification_reminder_schedule": "0 5 * * * *",
  "emergency_request_timeout_schedule": "0 5 * * * *",
  "enable_db_wal": false,
  "extended_logging": false,
  "helo_name": null,
  "hibp_api_key": null,
  "icon_blacklist_non_global_ips": true,
  "icon_blacklist_regex": null,
  "icon_cache_folder": "data/icon_cache",
  "icon_cache_negttl": 259200,
  "icon_cache_ttl": 2592000,
  "icon_download_timeout": 10,
  "icon_redirect_code": 302,
  "icon_service": "internal",
  "incomplete_2fa_schedule": "30 * * * * *",
  "incomplete_2fa_time_limit": 3,
  "invitation_org_name": "Vaultwarden",
  "invitations_allowed": true,
  "ip_header": "X-Real-IP",
  "job_poll_interval_ms": 30000,
  "log_file": "/var/log/vaultwarden/vaultwarden.log",
  "log_level": "warn",
  "log_timestamp_format": "%Y-%m-%d %H:%M:%S.%3f",
  "login_ratelimit_max_burst": 2,
  "login_ratelimit_seconds": 60,
  "org_attachment_limit": null,
  "org_creation_users": "",
  "password_iterations": 100000,
  "reload_templates": false,
  "require_device_email": false,
  "rsa_key_filename": "data/rsa_key",
  "send_purge_schedule": "0 5 * * * *",
  "sends_allowed": true,
  "sends_folder": "data/sends",
  "show_password_hint": true,
  "signups_allowed": true,
  "signups_domains_whitelist": "",
  "signups_verify": true,
  "signups_verify_resend_limit": 6,
  "signups_verify_resend_time": 3600,
  "smtp_accept_invalid_certs": false,
  "smtp_accept_invalid_hostnames": false,
  "smtp_auth_mechanism": null,
  "smtp_debug": false,
  "smtp_explicit_tls": null,
  "smtp_from": "****.*****@*****.***",
  "smtp_from_name": "Vaultwarden Secure Vault",
  "smtp_host": "****.*****.***",
  "smtp_password": "***",
  "smtp_port": 587,
  "smtp_security": "starttls",
  "smtp_ssl": null,
  "smtp_timeout": 15,
  "smtp_username": "****.*****",
  "templates_folder": "data/templates",
  "tmp_folder": "data/tmp",
  "trash_auto_delete_days": null,
  "trash_purge_schedule": "0 5 0 * * *",
  "use_syslog": false,
  "user_attachment_limit": null,
  "web_vault_enabled": true,
  "web_vault_folder": "web-vault",
  "websocket_address": "0.0.0.0",
  "websocket_enabled": true,
  "websocket_port": 3012,
  "yubico_client_id": null,
  "yubico_secret_key": null,
  "yubico_server": null
}
  • Install method:
    Built from source

  • Clients used:
    Browser

  • Reverse proxy and version:
    Caddy

  • MySQL/MariaDB or PostgreSQL version:
    Mariadb

  • Other relevant details:

Steps to reproduce

Expected behaviour

The vault appears to be empty

Actual behaviour

The vault to be available in the web browser

Troubleshooting data

Vaultwarden log:

thread 'rocket-worker-thread' panicked at 'Error loading attachments: DatabaseError(__Unknown, "Commands out of sync; you can't run this command now")': src/db/models/attachment.rs:196
0: backtrace::backtrace::trace
1: backtrace::capture::Backtrace::new
2: vaultwarden::init_logging::{{closure}}
3: std::panicking::rust_panic_with_hook
4: std::panicking::begin_panic_handler::{{closure}}
5: std::sys_common::backtrace::__rust_end_short_backtrace
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::result::unwrap_failed
9: tokio::runtime::enter::exit
10: tokio::runtime::thread_pool::worker::block_in_place
11: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
12: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
13: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
14: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
15: tokio::runtime::task::core::CoreStage::poll
16: tokio::runtime::task::harness::poll_future
17: tokio::runtime::task::harness::Harness<T,S>::poll
18: std::thread::local::LocalKey::with
19: tokio::runtime::thread_pool::worker::Context::run_task
20: tokio::runtime::thread_pool::worker::Context::run
21: tokio::macros::scoped_tls::ScopedKey::set
22: tokio::runtime::thread_pool::worker::run
23: <tokio::runtime::blocking::task::BlockingTask as core::future::future::Future>::poll
24: tokio::runtime::task::harness::Harness<T,S>::poll
25: tokio::runtime::blocking::pool::Inner::run
26: std::sys_common::backtrace::__rust_begin_short_backtrace
27: core::ops::function::FnOnce::call_once{{vtable.shim}}
28: std::sys::unix::thread::Thread::new::thread_start

Originally created by @PeterRob on GitHub (May 25, 2022). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2500 ### Subject of the issue After upgrading to version 1.25.0 the vault appears to be empty when opened in the web browser This is similar to issue #2484 that was closed and subsequently 2 people reported the same problem after closure [https://github.com/dani-garcia/vaultwarden/issues/2484](url) ### Deployment environment ### Your environment (Generated via diagnostics page) * Vaultwarden version: v1.25.0 * Web-vault version: v2.28.1 * Running within Docker: false (Base: Debian) * Environment settings overridden: true * Uses a reverse proxy: true * IP Header check: false (X-Forwarded-For) * Internet access: true * Internet access via a proxy: false * DNS Check: true * Time Check: true * Domain Configuration Check: true * HTTPS Check: true * Database type: MySQL * Database version: 10.6.8-MariaDB-1:10.6.8+maria~focal-log * Clients used: * Reverse proxy and version: * Other relevant information: ### Config (Generated via diagnostics page) <details><summary>Show Running Config</summary> **Environment settings which are overridden:** DOMAIN, SIGNUPS_ALLOWED, SIGNUPS_VERIFY, SIGNUPS_VERIFY_RESEND_TIME, SIGNUPS_VERIFY_RESEND_LIMIT, INVITATIONS_ALLOWED, SHOW_PASSWORD_HINT, ADMIN_TOKEN, DISABLE_ADMIN_TOKEN, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD, SMTP_TIMEOUT ```json { "_duo_akey": null, "_enable_duo": false, "_enable_email_2fa": true, "_enable_smtp": true, "_enable_yubico": true, "_ip_header_enabled": true, "admin_ratelimit_max_burst": 3, "admin_ratelimit_seconds": 300, "admin_token": "***", "allowed_iframe_ancestors": "", "attachments_folder": "data/attachments", "authenticator_disable_time_drift": false, "data_folder": "data", "database_conn_init": "", "database_max_conns": 10, "database_timeout": 30, "database_url": "*****://***********:***********@*********:****/***********", "db_connection_retries": 15, "disable_2fa_remember": false, "disable_admin_token": false, "disable_icon_download": false, "domain": "*****://*****.*****.*******.***", "domain_origin": "*****://*****.*****.*******.***", "domain_path": "", "domain_set": true, "duo_host": "api-fbb50db5.duosecurity.com", "duo_ikey": "DUO_IKEY=DIW8AE20XCDFP9LBDY69", "duo_skey": "***", "email_attempts_limit": 3, "email_expiration_time": 600, "email_token_size": 6, "emergency_access_allowed": true, "emergency_notification_reminder_schedule": "0 5 * * * *", "emergency_request_timeout_schedule": "0 5 * * * *", "enable_db_wal": false, "extended_logging": false, "helo_name": null, "hibp_api_key": null, "icon_blacklist_non_global_ips": true, "icon_blacklist_regex": null, "icon_cache_folder": "data/icon_cache", "icon_cache_negttl": 259200, "icon_cache_ttl": 2592000, "icon_download_timeout": 10, "icon_redirect_code": 302, "icon_service": "internal", "incomplete_2fa_schedule": "30 * * * * *", "incomplete_2fa_time_limit": 3, "invitation_org_name": "Vaultwarden", "invitations_allowed": true, "ip_header": "X-Real-IP", "job_poll_interval_ms": 30000, "log_file": "/var/log/vaultwarden/vaultwarden.log", "log_level": "warn", "log_timestamp_format": "%Y-%m-%d %H:%M:%S.%3f", "login_ratelimit_max_burst": 2, "login_ratelimit_seconds": 60, "org_attachment_limit": null, "org_creation_users": "", "password_iterations": 100000, "reload_templates": false, "require_device_email": false, "rsa_key_filename": "data/rsa_key", "send_purge_schedule": "0 5 * * * *", "sends_allowed": true, "sends_folder": "data/sends", "show_password_hint": true, "signups_allowed": true, "signups_domains_whitelist": "", "signups_verify": true, "signups_verify_resend_limit": 6, "signups_verify_resend_time": 3600, "smtp_accept_invalid_certs": false, "smtp_accept_invalid_hostnames": false, "smtp_auth_mechanism": null, "smtp_debug": false, "smtp_explicit_tls": null, "smtp_from": "****.*****@*****.***", "smtp_from_name": "Vaultwarden Secure Vault", "smtp_host": "****.*****.***", "smtp_password": "***", "smtp_port": 587, "smtp_security": "starttls", "smtp_ssl": null, "smtp_timeout": 15, "smtp_username": "****.*****", "templates_folder": "data/templates", "tmp_folder": "data/tmp", "trash_auto_delete_days": null, "trash_purge_schedule": "0 5 0 * * *", "use_syslog": false, "user_attachment_limit": null, "web_vault_enabled": true, "web_vault_folder": "web-vault", "websocket_address": "0.0.0.0", "websocket_enabled": true, "websocket_port": 3012, "yubico_client_id": null, "yubico_secret_key": null, "yubico_server": null } ``` </details> <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Built from source * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> Browser * Reverse proxy and version: <!-- if applicable --> Caddy * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> Mariadb * Other relevant details: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> ### Expected behaviour The vault appears to be empty ### Actual behaviour The vault to be available in the web browser ### Troubleshooting data Vaultwarden log: thread 'rocket-worker-thread' panicked at 'Error loading attachments: DatabaseError(__Unknown, "Commands out of sync; you can't run this command now")': src/db/models/attachment.rs:196 0: backtrace::backtrace::trace 1: backtrace::capture::Backtrace::new 2: vaultwarden::init_logging::{{closure}} 3: std::panicking::rust_panic_with_hook 4: std::panicking::begin_panic_handler::{{closure}} 5: std::sys_common::backtrace::__rust_end_short_backtrace 6: rust_begin_unwind 7: core::panicking::panic_fmt 8: core::result::unwrap_failed 9: tokio::runtime::enter::exit 10: tokio::runtime::thread_pool::worker::block_in_place 11: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 13: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 15: tokio::runtime::task::core::CoreStage<T>::poll 16: tokio::runtime::task::harness::poll_future 17: tokio::runtime::task::harness::Harness<T,S>::poll 18: std::thread::local::LocalKey<T>::with 19: tokio::runtime::thread_pool::worker::Context::run_task 20: tokio::runtime::thread_pool::worker::Context::run 21: tokio::macros::scoped_tls::ScopedKey<T>::set 22: tokio::runtime::thread_pool::worker::run 23: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll 24: tokio::runtime::task::harness::Harness<T,S>::poll 25: tokio::runtime::blocking::pool::Inner::run 26: std::sys_common::backtrace::__rust_begin_short_backtrace 27: core::ops::function::FnOnce::call_once{{vtable.shim}} 28: std::sys::unix::thread::Thread::new::thread_start
Author
Owner

@BlackDex commented on GitHub (May 25, 2022):

Closing this as a duplicate of #2484 (After re-opening it).
Please update that issue with the same information so that we can keep all together.

<!-- gh-comment-id:1137141656 --> @BlackDex commented on GitHub (May 25, 2022): Closing this as a duplicate of #2484 (After re-opening it). Please update that issue with the same information so that we can keep all together.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#38527