Skip to content

Bitwarden Unified with MariaDB leads to "SIGABRT (core dumped); not expected" #2718

@l4rm4nd

Description

@l4rm4nd

Steps To Reproduce

  1. Define the docker-compose.yml file as mentioned on https://bitwarden.com/help/install-and-deploy-unified-beta/
  2. Define settings.env from https://github.com/bitwarden/server/blob/master/docker-unified/settings.env
  3. Run docker compose up

docker-compose.yml:

version: "3.8"

services:
  bitwarden-unified:
    container_name: bitwarden_unified
    depends_on:
      - bitwarden-unified-db
    env_file:
      - settings.env
    image: bitwarden/self-host:beta
    restart: always
    ports:
      - "8888:8080"
    volumes:
      - ./bitwarden-unified/data:/etc/bitwarden

  bitwarden-unified-db:
    environment:
      MARIADB_USER: "bitwarden"
      MARIADB_PASSWORD: "Secure_MariaDB_Password1"
      MARIADB_DATABASE: "bitwarden_vault"
      MARIADB_RANDOM_ROOT_PASSWORD: "true"
    image: mariadb:10
    container_name: bitwarden_unified_db
    restart: always
    volumes:
      - ./bitwarden-unified/mariadb:/var/lib/mysql

setting.env:

#####################
# Required Settings #
#####################

# Server hostname
BW_DOMAIN=bitwarden.example.com

# Database
# Available providers are sqlserver, postgresql, or mysql/mariadb
BW_DB_PROVIDER=mysql
BW_DB_SERVER=bitwarden-unified-db
BW_DB_DATABASE=bitwarden_vault
BW_DB_USERNAME=bitwarden
BW_DB_PASSWORD=Secure_MariaDB_Password1

# Installation information
# Get your ID and key from https://bitwarden.com/host/
BW_INSTALLATION_ID=<ID> # masked for this issue
BW_INSTALLATION_KEY=<KEY> # masked for this issue

Expected Result

The Bitwarden Unified instance should be running and be available on http://127.0.0.1:8888

Actual Result

Recreating bitwarden_unified_db ... done
Recreating bitwarden_unified    ... done
Attaching to bitwarden_unified_db, bitwarden_unified
bitwarden_unified       | Adding group `bitwarden' (GID 1000) ...
bitwarden_unified_db    | 2023-02-19 18:25:25+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.2+maria~ubu2204 started.
bitwarden_unified       | Done.
bitwarden_unified_db    | 2023-02-19 18:25:25+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
bitwarden_unified_db    | 2023-02-19 18:25:25+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.2+maria~ubu2204 started.
bitwarden_unified_db    | 2023-02-19 18:25:25+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
bitwarden_unified       | Adding user `bitwarden' ...
bitwarden_unified       | Adding new user `bitwarden' (1000) with group `bitwarden' ...
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] Starting MariaDB 10.11.2-MariaDB-1:10.11.2+maria~ubu2204 source revision cafba8761af55ae16cc69c9b53a341340a845b36 as process 1
bitwarden_unified       | Not creating home directory `/home/bitwarden'.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Number of transaction pools: 1
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Using liburing
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Completed initialization of buffer pool
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=46702
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: 128 rollback segments are active.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: log sequence number 46918; transaction id 14
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] Plugin 'FEEDBACK' is disabled.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] InnoDB: Buffer pool(s) load completed at 230219 18:25:25
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] Server socket created on IP: '0.0.0.0'.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] Server socket created on IP: '::'.
bitwarden_unified_db    | 2023-02-19 18:25:25 0 [Note] mariadbd: ready for connections.
bitwarden_unified_db    | Version: '10.11.2-MariaDB-1:10.11.2+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/admin.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/api.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/events.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/icons.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/identity.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/nginx.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/notifications.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/scim.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,955 INFO Included extra file "/etc/supervisor.d/sso.ini" during parsing
bitwarden_unified       | 2023-02-19 18:25:27,957 INFO RPC interface 'supervisor' initialized
bitwarden_unified       | 2023-02-19 18:25:27,957 CRIT Server 'unix_http_server' running without any HTTP authentication checking
bitwarden_unified       | 2023-02-19 18:25:27,957 INFO supervisord started with pid 1
bitwarden_unified       | 2023-02-19 18:25:28,959 INFO spawned: 'identity' with pid 68
bitwarden_unified       | 2023-02-19 18:25:28,960 INFO spawned: 'admin' with pid 69
bitwarden_unified       | 2023-02-19 18:25:28,961 INFO spawned: 'api' with pid 70
bitwarden_unified       | 2023-02-19 18:25:28,961 INFO spawned: 'icons' with pid 71
bitwarden_unified       | 2023-02-19 18:25:28,962 INFO spawned: 'nginx' with pid 72
bitwarden_unified       | 2023-02-19 18:25:28,963 INFO spawned: 'notifications' with pid 73
bitwarden_unified       | 2023-02-19 18:25:29,164 INFO exited: icons (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:29,167 INFO exited: api (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:29,167 INFO exited: admin (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:29,184 INFO exited: identity (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:29,185 INFO exited: notifications (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:30,187 INFO spawned: 'identity' with pid 145
bitwarden_unified       | 2023-02-19 18:25:30,189 INFO spawned: 'admin' with pid 146
bitwarden_unified       | 2023-02-19 18:25:30,190 INFO spawned: 'api' with pid 147
bitwarden_unified       | 2023-02-19 18:25:30,191 INFO spawned: 'icons' with pid 148
bitwarden_unified       | 2023-02-19 18:25:30,192 INFO spawned: 'notifications' with pid 149
bitwarden_unified       | 2023-02-19 18:25:30,372 INFO exited: icons (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:30,385 INFO exited: notifications (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:30,420 INFO exited: identity (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:30,420 INFO exited: admin (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:30,421 INFO exited: api (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:32,424 INFO spawned: 'identity' with pid 215
bitwarden_unified       | 2023-02-19 18:25:32,425 INFO spawned: 'admin' with pid 216
bitwarden_unified       | 2023-02-19 18:25:32,426 INFO spawned: 'api' with pid 217
bitwarden_unified       | 2023-02-19 18:25:32,427 INFO spawned: 'icons' with pid 218
bitwarden_unified       | 2023-02-19 18:25:32,428 INFO spawned: 'notifications' with pid 219
bitwarden_unified       | 2023-02-19 18:25:32,592 INFO exited: icons (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:32,620 INFO exited: identity (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:32,620 INFO exited: admin (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:32,620 INFO exited: api (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:32,620 INFO exited: notifications (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:35,625 INFO spawned: 'identity' with pid 285
bitwarden_unified       | 2023-02-19 18:25:35,626 INFO spawned: 'admin' with pid 286
bitwarden_unified       | 2023-02-19 18:25:35,627 INFO spawned: 'api' with pid 287
bitwarden_unified       | 2023-02-19 18:25:35,628 INFO spawned: 'icons' with pid 288
bitwarden_unified       | 2023-02-19 18:25:35,629 INFO spawned: 'notifications' with pid 289
bitwarden_unified       | 2023-02-19 18:25:35,772 INFO exited: api (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:35,793 INFO gave up: api entered FATAL state, too many start retries too quickly
bitwarden_unified       | 2023-02-19 18:25:35,794 INFO exited: icons (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:35,804 INFO gave up: icons entered FATAL state, too many start retries too quickly
bitwarden_unified       | 2023-02-19 18:25:35,804 INFO exited: admin (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:35,824 INFO gave up: admin entered FATAL state, too many start retries too quickly
bitwarden_unified       | 2023-02-19 18:25:35,824 INFO exited: notifications (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:35,840 INFO gave up: notifications entered FATAL state, too many start retries too quickly
bitwarden_unified       | 2023-02-19 18:25:35,840 INFO exited: identity (terminated by SIGABRT (core dumped); not expected)
bitwarden_unified       | 2023-02-19 18:25:36,842 INFO gave up: identity entered FATAL state, too many start retries too quickly
bitwarden_unified       | 2023-02-19 18:25:44,852 INFO success: nginx entered RUNNING state, process has stayed up for > than 15 seconds (startsecs)

Screenshots or Videos

image

image

Additional Context

No response

Githash Version

502 Bad Gateway

Environment Details

  • Docker Compose version v2.15.1
  • Linux 5.19.0-kali2-amd64 Debian 5.19.11-1kali2 (2022-10-10) x86_64 GNU/Linux

Database Image

image: mariadb:10

Issue-Link

#2480

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

    bugbw-lite-deployAn Issue related to Bitwarden Lite deployment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions