Skip to content

bitwarden-mssql 2026.6.1 container crashes immediately on startup (2026.6.0 works) #7877

Description

@puni2k

Steps To Reproduce

Description

After upgrading Bitwarden self-hosted stack to 2026.6.1, the MSSQL container (ghcr.io/bitwarden/mssql:2026.6.1) fails to start and enters a restart loop.

Downgrading to 2026.6.0 resolves the issue immediately with no changes to data.

Steps to reproduce
Run Bitwarden self-hosted installation (Docker-based)
Update to version 2026.6.1
Start stack:
./bitwarden.sh start
Observe MSSQL container:
docker ps -a | grep mssql

Result:

Container constantly restarts (Restarting (1))

errorlog

2026-06-28 00:00:01.03 Backup Database backed up. Database: vault, creation date(time): 

2022/08/30(08:25:55), pages dumped: 1211, first LSN: 53:18294:1, last LSN: 53:18297:1, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'/etc/bitwarden/mssql/backups/vault_FULL_20260628_000000.BAK'}). This is an informational message only. No user action is required. 

2026-06-28 00:00:01.07 Backup BACKUP DATABASE successfully processed 1201 pages in 0.230 seconds (40.767 MB/sec). 2026-06-28 02:00:04.62 spid13s Always On: The availability replica manager is going offline because SQL Server is shutting down. This is an informational message only. No user action is required. 

2026-06-28 02:00:04.62 spid13s SQL Server is terminating in response to a 'stop' request from Service Control Manager. This is an informational message only. No user action is required. 

2026-06-28 02:00:04.63 spid13s .NET Framework runtime has been stopped. 

2026-06-28 02:00:04.76 spid13s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
<EOF>
Ubuntu 24.04.4 LTS
Capture info: Processor topology
Capture info: Process mounts
Capture info: Process statistics
Capture info: Process status
Capture info: Process memory maps
Capture info: Process memory maps (detailed)
Capture info: Core Dump filter
Capture info: Process CGroup information
Capture info: Process scheduler information
Capture info: Process list
Capture info: Process handle information
Capture info: Process environment variables
Capture info: System package list (dpkg)
Capture info: Current application configuration
Sun Jun 28 05:41:24 UTC 2026 Capturing program information
Sun Jun 28 05:41:25 UTC 2026 Attempting to capture a dump with paldumper for pid 43
WARNING: Capture attempt failure detected
Attempting to capture a filtered dump with paldumper for pid 43
WARNING: Attempt to capture dump failed.  Reference /var/opt/mssql/log/core.sqlservr.43.temp/log/paldumper-debug.log for details
Sun Jun 28 05:41:25 UTC 2026 Attempting to capture a dump with gdb
WARNING: Unable to capture crash dump with GDB. You may need to
allow ptrace debugging, enable the CAP_SYS_PTRACE capability, or
run as root. See log in: /var/opt/mssql/log/core.sqlservr.43.temp/log/gdb.log
Sun Jun 28 05:41:26 UTC 2026 Capturing program binaries
Sun Jun 28 05:41:26 UTC 2026 Not compressing the dump files, moving instead to: /var/opt/mssql/log/core.sqlservr.06_28_2026_05_41_23.43.d
Executing: /opt/mssql/bin/handle-crash.sh with parameters
     handle-crash.sh
     /opt/mssql/bin/sqlservr
     39
     /opt/mssql/bin
     /var/opt/mssql/log/
     
     764625d2-e5b1-4857-858c-d68550f3b72e
     8a7ae74c-e68c-42f7-b9c3-6a99d5087594
bitwarden@bitwarden:/opt/bitwarden/bwdata/logs/mssql$ less core.sqlservr.6_28_2026_6_43_56.39.log
06/28/2026 06:43:56.133329547 Info [paldumper] <0000000040/0x00000000> Executing PalDumper against PID: 39
06/28/2026 06:43:56.133372218 Info [paldumper] <0000000040/0x00000000>                       Dump type: miniplus
06/28/2026 06:43:56.133380634 Info [paldumper] <0000000040/0x00000000> Stopping target
06/28/2026 06:43:56.133393097 Info [paldumper] <0000000040/0x00000000> Target stopped
06/28/2026 06:43:56.133399650 Info [paldumper] <0000000040/0x00000000> Attaching to target threads
06/28/2026 06:43:56.133469071 Warning [paldumper] <0000000040/0x00000000> Yama PTRACE mode: 1-Restricted
06/28/2026 06:43:56.133644863 Info [paldumper] <0000000040/0x00000000>   Ptrace command for pid 39: succeeded
06/28/2026 06:43:56.133694587 Info [paldumper] <0000000040/0x00000000>   Ptrace command for pid 42: succeeded
06/28/2026 06:43:56.133737447 Info [paldumper] <0000000040/0x00000000>   Ptrace command for pid 43: succeeded
06/28/2026 06:43:56.133779116 Info [paldumper] <0000000040/0x00000000>   Ptrace command for pid 44: succeeded
06/28/2026 06:43:56.133796499 Info [paldumper] <0000000040/0x00000000> Parsing /proc/39/smaps for region coverage
06/28/2026 06:43:56.152994690 Info [paldumper] <0000000040/0x00000000> Virtual memory region count: 300
06/28/2026 06:43:56.153017193 Info [paldumper] <0000000040/0x00000000>     Using ThreadInfo::m_Head at: 0x000064483B784788
06/28/2026 06:43:56.153021311 Info [paldumper] <0000000040/0x00000000>     Using ProcessList at: 0x00003FFF9CDD16B0
06/28/2026 06:43:56.153024887 Info [paldumper] <0000000040/0x00000000>      Using m_ProtocolVersion at: 0x000064483B783310
06/28/2026 06:43:56.153028274 Info [paldumper] <0000000040/0x00000000>      Using sm_SOSNodeManager at: 0x00003FFF9CD90340
06/28/2026 06:43:56.153031630 Info [paldumper] <0000000040/0x00000000>   Using sm_MemoryNodeManager at: 0x00003FFF9CD905F0
06/28/2026 06:43:56.153035036 Info [paldumper] <0000000040/0x00000000> Using sm_GlobalSchedulerList at: 0x00003FFF9CD905C0
06/28/2026 06:43:56.153038453 Info [paldumper] <0000000040/0x00000000>        Using ELF module list at: 0x00007D8F7559F2E0
BEGIN IMAGE LIST
linux-vdso.so.1
/lib/x86_64-linux-gnu/libnuma.so.1
/lib/x86_64-linux-gnu/libgssapi_krb5.so.2
/lib/x86_64-linux-gnu/libkrb5.so.3
/lib/x86_64-linux-gnu/libk5crypto.so.3
/lib/x86_64-linux-gnu/libcom_err.so.2
/lib/x86_64-linux-gnu/libsss_nss_idmap.so.0
/lib/x86_64-linux-gnu/libuuid.so.1
/lib/x86_64-linux-gnu/libpam.so.0
/lib/x86_64-linux-gnu/libm.so.6
/lib/x86_64-linux-gnu/liblber.so.2
/lib/x86_64-linux-gnu/libldap.so.2
/lib/x86_64-linux-gnu/libudev.so.1
/lib/x86_64-linux-gnu/libssl.so.3
/lib/x86_64-linux-gnu/libcrypto.so.3
/opt/mssql/lib/libc++.so.1
/opt/mssql/lib/libc++abi.so.1
/lib/x86_64-linux-gnu/libgcc_s.so.1
/lib/x86_64-linux-gnu/libc.so.6
/lib64/ld-linux-x86-64.so.2
bitwarden@bitwarden:/opt/bitwarden/bwdata/logs/mssql$ 


itwarden@bitwarden:/opt/bitwarden/bwdata/logs/mssql/core.sqlservr.06_28_2026_06_43_56.39.d$ less crash.txt 
This program has encountered a fatal error and cannot continue running at Sun Jun 28 06:43:56 2026
The following diagnostic information is available:

         Reason: 0x00000004
        Message: ASSERT: Expression=(NT_SUCCESS(status)) File=LibOS\Windows\Kernel\DRtl\sqlpalstubs.cpp Line=887
    Stack Trace:
                 file://package6/windows/system32/sqlpal.dll+0x000000000000A5D6
                 file://package6/windows/system32/sqlpal.dll+0x0000000000009909
                 file://package6/windows/system32/sqlpal.dll+0x00000000000055D4
                 file://package6/windows/system32/sqlpal.dll+0x0000000000005465
                 file://package6/windows/system32/sqlpal.dll+0x00000000000E8F54
                 file://package6/windows/system32/sqlpal.dll+0x00000000000AB031
                 file://package6/windows/system32/sqlpal.dll+0x00000000000AB6E4
                 file://package6/windows/system32/sqlpal.dll+0x00000000000AAC2A
                 file://package6/windows/system32/sqlpal.dll+0x00000000000AD050
                 file://package6/windows/system32/sqlpal.dll+0x0000000000006FCC
                 file://package6/windows/system32/sqlpal.dll+0x00000000000065CE
                 file://package6/windows/system32/sqlpal.dll+0x0000000000006A59
                 file://package6/windows/system32/sqlpal.dll+0x0000000000122651
        Process: 39 - sqlservr
         Thread: 44 (application thread 0x8)
    Instance Id: 3b567007-9e95-444b-adc0-d17ed827ff38
       Crash Id: 85b15a91-2576-4974-b2fe-7b7e155f7224
    Build stamp: a9417035daf3b2a89a07f56779392396b49edc6d655162ab6d7ffb0aa99e12d9
   Distribution: Ubuntu 24.04.4 LTS
     Processors: 2
   Total Memory: 134904156160 bytes
      Timestamp: Sun Jun 28 06:43:56 2026
     Last errno: 22
Last errno text: Invalid argument

Expected Result

MSSQL container starts successfully
SQL Server initializes normally
Bitwarden services connect to database
No restart loop

Actual Result

MSSQL container exits immediately on startup
No login possible, browser addon cannot connect to vault
No usable SQL Server ERRORLOG is generated
Only crash dump / paldumper logs appear
Container never reaches normal SQL initialization

Screenshots or Videos

No response

Additional Context

No response

Build Version

2026.6.1

Environment

Self-Hosted

Environment Details

Proxmox PVE 8.4.19 LXC container
Linux bitwarden 6.8.12-30-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-30 (2026-06-11T10:10Z) x86_64 GNU/Linux
Docker version 29.6.1, build 8900f1d

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions