DATABASE_URL is meant for MySQL or Postgres, while this server is meant for SQLite #608

Closed
opened 2026-02-04 21:47:11 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @mzch on GitHub (Feb 13, 2020).

Subject of the issue

Container can't access to PostgreSQL server.

Your environment

  • Bitwarden_rs version: latest
  • Install method: docker
  • Version of mysql/postgresql: PostgreSQL 11.6

Steps to reproduce

  • docker-compose up
    docker-compose.yml is as below:
version: '3.3'
services:
  application:
    image: bitwardenrs/server:latest
    container_name: bitwarden
    ports:
      - 8080:80
      - 3012:3012
    volumes:
      - /srv/bitwarden/data:/data
    environment:
      - DATABASE_URL=postgresql://bitwarden:password@192.168.207.11:5432/bitwarden?sslmode=disable
      - ENABLE_DB_WAL=false
      - WEBSOCKET_ENABLED=true
      - WEBSOCKET_ADDRESS=0.0.0.0
      - WEBSOCKET_PORT=3012
      - SIGNUPS_ALLOWED=true
      - SIGNUPS_VERIFY=true
      - SIGNUPS_VERIFY_RESEND_TIME=3600
      - SIGNUPS_VERIFY_RESEND_LIMIT=6
      - DOMAIN=https://bitsteward.com
      - SMTP_HOST=mx1.mail-services.net
      - SMTP_FROM=no-repky@bitsteward.com
      - SMTP_FROM_NAME=BitSteward
      - SMTP_PORT=465
      - SMTP_SSL=true
      - SMTP_USERNAME=admin@example.com
      - SMTP_PASSWORD=password
      - SMTP_AUTH_MECHANISM="Plain"
      - SMTP_TIMEOUT=15

Expected behaviour

Bitwarden_rs starts normally.

Actual behaviour

Abort.

Relevant logs

Feb 13 02:27:58 n21 docker-compose[15501]: #033[36mbitwarden      |#033[0m Error loading config:
Feb 13 02:27:58 n21 docker-compose[15501]: #033[36mbitwarden      |#033[0m #011`DATABASE_URL` is meant for MySQL or Postgres, while this server is meant for SQLite
Originally created by @mzch on GitHub (Feb 13, 2020). <!-- 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 unneccessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS adresses and especially passwords, if neccessary. --> ### Subject of the issue <!-- Describe your issue here.--> Container can't access to PostgreSQL server. ### Your environment <!-- The version number, obtained from the logs or the admin page --> * Bitwarden_rs version: latest * Install method: docker * Version of mysql/postgresql: PostgreSQL 11.6 ### 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? --> - docker-compose up docker-compose.yml is as below: ```yaml version: '3.3' services: application: image: bitwardenrs/server:latest container_name: bitwarden ports: - 8080:80 - 3012:3012 volumes: - /srv/bitwarden/data:/data environment: - DATABASE_URL=postgresql://bitwarden:password@192.168.207.11:5432/bitwarden?sslmode=disable - ENABLE_DB_WAL=false - WEBSOCKET_ENABLED=true - WEBSOCKET_ADDRESS=0.0.0.0 - WEBSOCKET_PORT=3012 - SIGNUPS_ALLOWED=true - SIGNUPS_VERIFY=true - SIGNUPS_VERIFY_RESEND_TIME=3600 - SIGNUPS_VERIFY_RESEND_LIMIT=6 - DOMAIN=https://bitsteward.com - SMTP_HOST=mx1.mail-services.net - SMTP_FROM=no-repky@bitsteward.com - SMTP_FROM_NAME=BitSteward - SMTP_PORT=465 - SMTP_SSL=true - SMTP_USERNAME=admin@example.com - SMTP_PASSWORD=password - SMTP_AUTH_MECHANISM="Plain" - SMTP_TIMEOUT=15 ``` ### Expected behaviour <!-- Tell us what should happen --> Bitwarden_rs starts normally. ### Actual behaviour <!-- Tell us what happens instead --> Abort. ### Relevant logs <!-- Share some logfiles, screenshots or output of relevant programs with us. --> ```log Feb 13 02:27:58 n21 docker-compose[15501]: #033[36mbitwarden |#033[0m Error loading config: Feb 13 02:27:58 n21 docker-compose[15501]: #033[36mbitwarden |#033[0m #011`DATABASE_URL` is meant for MySQL or Postgres, while this server is meant for SQLite ```
Author
Owner

@mzch commented on GitHub (Feb 13, 2020):

Sorry, I didn't notice it would need to rebuild a docker image.

@mzch commented on GitHub (Feb 13, 2020): Sorry, I didn't notice it would need to rebuild a docker image.
Author
Owner

@mprasil commented on GitHub (Feb 14, 2020):

You don't need to rebuild the image. You can just use the bitwardenrs/server-postgresql that is built with portgers support or bitwardenrs/server-mysql that is built with mysql support.

@mprasil commented on GitHub (Feb 14, 2020): You don't need to rebuild the image. You can just use the `bitwardenrs/server-postgresql` that is built with portgers support or `bitwardenrs/server-mysql` that is built with mysql support.
Author
Owner

@mzch commented on GitHub (Feb 14, 2020):

Oh, thanks!

@mzch commented on GitHub (Feb 14, 2020): Oh, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#608