Super Tokens Core (self-hosted) and postgreSQL: pa...
# support-questions
f
Super Tokens Core (self-hosted) and postgreSQL: password authentication failed
Hello 🙂
Problem: Core doesn't auth into db
Traceback: supertokenscore``` [main] thread | io.supertokens.Main.start(Main.java:125) | What caused the crash: Failed to initialize pool: FATAL: password authentication failed for user "supertokensdb" ```
The db I created for it: /docker-compose.yml
Copy code
supertokensdb:
    image: postgres:alpine
    volumes:
      - postgresql-data:/var/lib/supertokensdb/data
    environment:
      - POSTGRES_NAME=supertokensdb
      - POSTGRES_USER=supertokensdb
      - POSTGRES_PASSWORD=supertokensdb
supertokens instance: /docker-compose.yml
Copy code
supertokens:
    image: registry.supertokens.io/supertokens/supertokens-postgresql
    environment:
      - POSTGRESQL_DATABASE_NAME=supertokensdb
      - POSTGRESQL_USER=supertokensdb
      - POSTGRESQL_PASSWORD=supertokensdb
      - POSTGRESQL_HOST=supertokensdb
      - POSTGRESQL_PORT=5432
    ports:
      - 3567:3567
    depends_on:
      - supertokensdb
'Password Authentication Failed'
I don't think it's a password nor a docker-compose problem. Thoughts?
Documentation on Enviroment Variables for each container: Postgres: https://registry.hub.docker.com/_/postgres SuperTokens: https://supertokens.com/docs/thirdparty/quick-setup/database-setup/postgresql
r
hmm. This is strange
Does user
supertokensdb
have access tot he database with that password?
f
yup, it's basically root
> POSTGRES_USER > This optional environment variable is used in conjunction with POSTGRES_PASSWORD to set a user and its password. This variable will create the specified user with superuser power and a database with the same name.
r
hmm i see.
Can you try with image
postgres:latest
?
4 Views