Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bloodhound crashes after admin password reset #1

Open
Techbrunch opened this issue Sep 18, 2024 · 0 comments
Open

Bloodhound crashes after admin password reset #1

Techbrunch opened this issue Sep 18, 2024 · 0 comments

Comments

@Techbrunch
Copy link

I might be missing something but when using this role bloodhound crashed after resetting the admin password:

{"level":"info","time":"2024-09-18T13:44:42.480634145Z","message":"Reading configuration found at /bloodhound.config.json"}
{"level":"warn","time":"2024-09-18T13:44:42.483099586Z","message":"unable to find a configuration element by path: disable_cypher_qc"}
{"level":"info","time":"2024-09-18T13:44:42.483490543Z","message":"Logging configured"}
{"level":"error","time":"2024-09-18T13:44:42.490411391Z","message":"failed to initialize database, got error failed to connect to `host=app-db user=bloodhound database=bloodhound`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)"}
{"level":"fatal","time":"2024-09-18T13:44:42.490444946Z","message":"Failed starting the server: failed to connect to databases: error while attempting to create database connection: failed to connect to `host=app-db user=bloodhound database=bloodhound`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)"}

It looks like it's because this line is commented in docker-compose.yml:

version: '3'
services:
  app-db:
    image: docker.io/library/postgres:13.2
    environment:
      - POSTGRES_USER=${POSTGRES_USER:-bloodhound}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-bloodhoundcommunityedition}
      - POSTGRES_DB=${POSTGRES_DB:-bloodhound}
    # Database ports are disabled by default. Please change your database password to something secure before uncommenting
    # ports:
   #   - 127.0.0.1:${POSTGRES_PORT:-5432}:5432

Uncommenting the line fixes the issue:

docker compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant