bitwarden / self-host

Bitwarden's self-hosted release repository
GNU General Public License v3.0
307 stars 54 forks source link

unable to install - mariadb/postgresql db doesn't change anything #200

Closed lukaszzyla closed 5 months ago

lukaszzyla commented 5 months ago

INFO exited: admin (terminated by SIGABRT (core dumped); not expected) Clicking CREATE ACCOUNT on startup page doesn't do anything.

It doesnt matter if I choose to install mariadb or postgres. my portainer compose and stack.env below:

---
version: "3.8"

services:
  bitwarden:
    depends_on:
      - db
    env_file:
      - stack.env
    image: ${REGISTRY:-bitwarden}/self-host:${TAG:-latest}
    restart: always
    ports:
      - "7080:8080"
      - "7443:8443"
    volumes:
      - bitwarden:/etc/bitwarden
      - logs:/var/log/bitwarden

  # PostgreSQL Example
  db:
    environment:
      POSTGRES_USER: "bitwarden"
      POSTGRES_PASSWORD: "super_strong_password"
      POSTGRES_DB: "bitwarden_vault"
    image: postgres:14
    restart: always
    volumes:
      - data:/var/lib/postgresql/data

  # MS SQL Server Example
  # Docs: https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-docker-container-deployment
  # db:
  #   environment:
  #     MSSQL_SA_PASSWORD: "super_strong_password"
  #     ACCEPT_EULA: Y
  #   image: mcr.microsoft.com/mssql/server:2019-latest
  #   restart: always
  #   volumes:
  #     - data:/var/opt/mssql

volumes:
  bitwarden:
  logs:
  data:

networks:
  default:
    external: true
    name: chw

my stack.env added as environment variables in portainer:

BW_DOMAIN=sub.domain.com (using outside real fqdn)
BW_DB_PROVIDER=postgresql
BW_DB_SERVER=db
BW_DB_DATABASE=bitwarden_vault
BW_DB_USERNAME=bitwarden
BW_DB_PASSWORD=mysuperstrongpass
BW_INSTALLATION_ID=my id got from bitwarden website
BW_INSTALLATION_KEY=my key got from bitwarden website
COMPOSE_PROJECT_NAME=bitwarden
REGISTRY=bitwarden
TAG=dev
atjbramley commented 5 months ago

Hi @lukaszzyla

I attempted to reproduce your issue and was unable to do so. In particular, I put up the latest dev tagged image using your Postgres configuration, and was able to use the resulting installation without difficulty.

I think your error could have its origin in a misconfiguration - possible related to using Portainer.

We use GitHub issues as a place to track bugs and other development related issues. If your issue persists, please write us back using our “Contact support” form located on our Help Center (https://bitwarden.com/help/).

You can include a link to this issue in the message content.

Alternatively, you can also search for an answer in our help documentation or get help from other Bitwarden users on our community forums (https://community.bitwarden.com/c/support/).

The issue here will be closed.

Thanks!