bitwarden / server

Bitwarden infrastructure/backend (API, database, Docker, etc).
https://bitwarden.com
Other
15.59k stars 1.31k forks source link

bitwarden/mssql:2024.3.0 fails to start on Ubuntu 20.04 LTS #3959

Open vat78 opened 7 months ago

vat78 commented 7 months ago

Steps To Reproduce

  1. Update previous version of bitwarden installation using ./bitwarden.sh update
  2. Start bitwarden

Expected Result

All docker containers are up and running

Actual Result

bitwarden-mssql goes to retries The only available error is:

This program has encountered a fatal error and cannot continue running at Sun Mar 31 07:45:42 2024
The following diagnostic information is available:

         Reason: 0x00000001
         Signal: SIGABRT - Aborted (6)
          Stack:
                 IP               Function
                 ---------------- --------------------------------------
                 000055618e3b48c1 std::__1::bad_function_call::~bad_function_call()+0x97191
                 000055618e3b4286 std::__1::bad_function_call::~bad_function_call()+0x96b56
                 000055618e3b380f std::__1::bad_function_call::~bad_function_call()+0x960df
                 00007fccafe9d520 __sigaction+0x50
                 00007fccafef19fc pthread_kill+0x12c
                 00007fccafe9d476 raise+0x16
                 00007fccafe837f3 abort+0xd3
                 000055618e34c09b std::__1::bad_function_call::~bad_function_call()+0x2e96b
                 000055618e3c1e6a std::__1::bad_function_call::~bad_function_call()+0xa473a
        Process: 44 - sqlservr
         Thread: 136 (application thread 0x188)
    Instance Id: d73ba732-8e4a-4005-9340-94523a584563
       Crash Id: 661b97fb-d467-43e5-aa1c-a2ae30ba5a32
    Build stamp: 898b74d73fbeb62236e2913211d39e505e9938e9a34516cd97cb9371b443f7a8
   Distribution: Ubuntu 22.04.4 LTS
     Processors: 2
   Total Memory: 4294967296 bytes
      Timestamp: Sun Mar 31 07:45:42 2024
     Last errno: 2
Last errno text: No such file or directory

Screenshots or Videos

No response

Additional Context

Switching to bitwarden/mssql:2024.2.0 has resolved the problem

Build Version

2023.3.0

Environment

Self-Hosted

Environment Details

Issue Tracking Info

Krychaz commented 7 months ago

Hello there,

Looks like this could be a memory related problem. First of all can you please confirm you ran both of these commands?

./bitwarden.sh updateself ./bitwarden.sh update

vat78 commented 7 months ago

Hello there,

Looks like this could be a memory related problem. First of all can you please confirm you ran both of these commands?

./bitwarden.sh updateself ./bitwarden.sh update

yes, sure It might be because of memory in theory. I use VM with 4GB only But error says about some file or directory. Unfortunately I was not able to find more details. I saw a discussion on Reddit (link). That's why my only idea is that there is something wrong with MS SQL

sincerelysaucy commented 3 months ago

Add some swap space? And definitely update to Ubuntu 22, if not to the current LTS release of Ubuntu 24.

phkrug commented 1 month ago

It seems to be the same with Ubuntu 22.04 LTS. I've recently updated to the latest version (2024.8.2) and I'm having the same issue. My Docker is running on a VPS where I cannot enable the swap space. The VM and Docker has 16GB of memory available, so memory or space should not be an issue.

As a workaround I manually changed the mssql image in the docker-compse.yml to 2024.2.0. With the changes made in 2024.2.2 this issue occurs.