Remote MySQL Connection drops and never comes back #2740

Closed
opened 2026-04-06 04:02:06 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @misilot on 10/28/2020

Subject of the issue

Connection to remote mysql just drops for some reason and never comes back

Your environment

  • Bitwarden_rs version:
  • Install method: Docker Compose
  • Reverse proxy and version: Apache 2.4.29
  • Version of mysql/postgresql:
  • Other relevant information:

Steps to reproduce

My connection string in docker-compose.yml
DATABASE_URL: "mysql://bitwarden_rs:password@mysql.example.net:53306/bitwarden_rs"

Expected behaviour

Connect all happy as can be?

Actual behaviour

Eventually runs if I do docker compose down; docker compose up -d

Relevant logs

bitwardenrs | [2020-10-28 09:40:17.254][r2d2][ERROR] Unknown MySQL server host 'mysql.server.net' (-3)

After restarting I see this. I have to do a complete down and up to get bitwarden_rs working again.
bitwardenrs | [2020-10-28 12:55:10.450][bitwarden_rs::util][WARN] Can't connect to database, retrying: DieselConError.
bitwardenrs | [CAUSE] BadConnection(
bitwardenrs | "Unknown MySQL server host 'mysql.server.net' (-3)",
bitwardenrs | )

*Originally created by @misilot on 10/28/2020* <!-- # ### NOTE: Please update to the latest version of bitwarden_rs before reporting an issue! This saves you and us a lot of time and troubleshooting. See: https://github.com/dani-garcia/bitwarden_rs/issues/1180 # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS addresses and especially passwords, if necessary. --> ### Subject of the issue Connection to remote mysql just drops for some reason and never comes back ### Your environment <!-- The version number, obtained from the logs or the admin diagnostics page --> <!-- Remember to check your issue on the latest version first! --> * Bitwarden_rs version: <!-- How the server was installed: Docker image / package / built from source --> * Install method: Docker Compose * Reverse proxy and version: Apache 2.4.29 * Version of mysql/postgresql: * Other relevant information: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start bitwarden_rs? --> My connection string in docker-compose.yml DATABASE_URL: "mysql://bitwarden_rs:password@mysql.example.net:53306/bitwarden_rs" ### Expected behaviour <!-- Tell us what should happen --> Connect all happy as can be? ### Actual behaviour <!-- Tell us what happens instead --> Eventually runs if I do docker compose down; docker compose up -d ### Relevant logs <!-- Share some logfiles, screenshots or output of relevant programs with us. --> bitwardenrs | [2020-10-28 09:40:17.254][r2d2][ERROR] Unknown MySQL server host 'mysql.server.net' (-3) After restarting I see this. I have to do a complete down and up to get bitwarden_rs working again. bitwardenrs | [2020-10-28 12:55:10.450][bitwarden_rs::util][WARN] Can't connect to database, retrying: DieselConError. bitwardenrs | [CAUSE] BadConnection( bitwardenrs | "Unknown MySQL server host \'mysql.server.net\' (-3)", bitwardenrs | )
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#2740