bitwarden / bitwarden/self-host

Unified Deployment MySqlConnector.MySqlException

Open
#198 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
744
Forks
107
Avg merge
1d 9h
Merged PRs (30d)
7

Description

I get an MySqlConnector.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. error using the RUN method of the unified deployment.

Set up on: Debian 12
Docker version: 24.0.7
Created DB: Mysql/MariaDB

running via RUN `sudo docker run -d --name bitwarden -v /$(pwd)/bwdata/:/etc/bitwarden -p 443:8443 --env-file settings.env bitwarden/self-host:beta`

MariaDB is set up on the same host directly, without docker.

Logs & settings.env:
[admin.log](https://github.com/bitwarden/self-host/files/14019687/admin.log)
[api.log](https://github.com/bitwarden/self-host/files/14019688/api.log)
[identity.log](https://github.com/bitwarden/self-host/files/14019689/identity.log)
[notifications.log](https://github.com/bitwarden/self-host/files/14019690/notifications.log)
[settings.env.txt](https://github.com/bitwarden/self-host/files/14019691/settings.env.txt)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the documented `sudo docker run` command on Debian 12, then inspect `settings.env.txt` alongside `admin.log`, `api.log`, `identity.log`, and `notifications.log`. Done means the unified deployment can connect to the MariaDB/MySQL host without the reported MySqlConnector.MySqlException.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, mariadb, shell
Domain
databases, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.