database postgres ssl connection error on alpine image (works fine on debian image) #1982

Closed
opened 2026-02-05 02:27:24 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @bonjour-py on GitHub (Jul 30, 2024).

Subject of the issue

ssl connection to database posgres error on alpine image (but works fine on debian image)

Deployment environment

  • vaultwarden version:
    Version 1.31.0
  • Install method:
    Docker image
  • Clients used:
  • Reverse proxy and version:
  • MySQL/MariaDB or PostgreSQL version:
    PostgreSQL 16.3 on x86_64-pc-linux-musl in container behind taefik.
    taefik manages postgresql ssl cert
  • Other relevant details:

Steps to reproduce

use postgresql with ssl

Expected behaviour

Actual behaviour

it logs

[2024-07-30 10:16:53.507][vaultwarden::util][WARN] Can't connect to database, retrying: DieselCon.
[CAUSE] BadConnection(
    "SSL SYSCALL error: No error information\nexpected authentication request from server, but received H\n",
)

Troubleshooting data

debian image works good

Originally created by @bonjour-py on GitHub (Jul 30, 2024). <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- 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/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> ssl connection to database posgres error on alpine image (but works fine on debian image) ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: Version 1.31.0 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker image * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> -- * Reverse proxy and version: <!-- if applicable --> -- * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> PostgreSQL 16.3 on x86_64-pc-linux-musl in container behind taefik. taefik manages postgresql ssl cert * Other relevant details: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> use postgresql with ssl ### Expected behaviour <!-- Tell us what you expected to happen --> ### Actual behaviour <!-- Tell us what actually happened --> it logs ``` [2024-07-30 10:16:53.507][vaultwarden::util][WARN] Can't connect to database, retrying: DieselCon. [CAUSE] BadConnection( "SSL SYSCALL error: No error information\nexpected authentication request from server, but received H\n", ) ``` ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> debian image works good
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1982