Hi everyone! I’m trying to start rasa-x in docker form image. I need to use postgresql as db. My docekr-compose.yml is
version: "3.4"
services:
rasa:
image: rasa/rasa-x:1.0.1
ports:
- "5005:5005"
- "5002:5002"
volumes:
- ./:/app
action_server:
image: rasa/rasa-sdk:2.8.5
volumes:
- ./actions:/app/actions
ports:
- "5055:5055"
command: start --actions actions
db:
image: postgres:latest
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: "rasa"
POSTGRES_USER: "rasa"
POSTGRES_PASSWORD: "rasa"
ports:
- "5432:5432"
When I’m running
docker-compose up
I see this
db_1 | 2022-05-08 11:45:51.936 UTC [38] FATAL: password authentication failed for user "admin"
db_1 | 2022-05-08 11:45:51.936 UTC [38] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
rasa_1 | ERROR:rasax.server:(psycopg2.OperationalError) FATAL: password authentication failed for user "admin"
I’ve tried to run
python3 rasa_x_commands.py create --update admin system_user admin
and
python rasa_x_commands.py create --update admin me admin
But it doens’t work. And returned this to me
ERROR:main:Failed to create user. I already have admin user in my db
rasa=> \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
admin | | {}
rasa | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
What should I do to fix it? May I change or hard code admin’s password?