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

FATAL: role "root" does not exist with Docker #110

Open
chris-aeviator opened this issue Nov 15, 2018 · 1 comment
Open

FATAL: role "root" does not exist with Docker #110

chris-aeviator opened this issue Nov 15, 2018 · 1 comment
Assignees
Labels

Comments

@chris-aeviator
Copy link

When bringing up the projekt with docker-compose (with the supplied docker-compose.yml) I will get an ongoing error role "root" does not exist from postgresql. I realised that my (already perfectly running) rakam setup stopped running 1 month ago and got that error when restarting it with docker-compose restart suddenly. It is strange, since both rakam-api & rakam-db containers have the rakam user set to rakam:

docker-compose.yml

version: '2.1'
services:
  rakam-db:
    image: postgres:10.6
    volumes:
      - ./data:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=rakam
      - POSTGRES_PASSWORD=dummy
    healthcheck:
      test: ["CMD-SHELL", "pg_isready"]
      interval: 5s
      timeout: 5s
      retries: 3
  rakam-api:
    image: buremba/rakam
    expose:
      - 9999
    environment:
      - RAKAM_CONFIG_STORE_ADAPTER_POSTGRESQL_URL=postgres://rakam:dummy@rakam-db:5432/rakam
      - RAKAM_CONFIG_LOCK__KEY=veryLongRandomString
      - LETSENCRYPT_HOST=analytics.tools.myawesomecompany.io
      - VIRTUAL_HOST=analytics.tools.myawesomecompany.io
      - LETSENCRYPT_EMAIL=chris@myawesomecompany.io

    depends_on:
      rakam-db:
        condition: service_healthy

networks:
  default:
    external:
      name: nginx-proxy

only after creating the psql user & database "root" the rakam api will start

@dmaitra-pt
Copy link

dmaitra-pt commented Sep 8, 2023

Initially it was FATAL: role "root" does not exist
so in the postgres-local.env file I have added this PGUSER=mydbuser
now I am getting error: FATAL: database "achuser" does not exist

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

No branches or pull requests

4 participants