Marjori Pomarole
03/07/2022, 11:15 PMsqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "<http://core-shared-tools.cktverwlkjvp.us-east-1.rds.amazonaws.com|core-shared-tools.cktverwlkjvp.us-east-1.rds.amazonaws.com>" (10.20.177.69), port 5432 failed: FATAL: password authentication failed for user "dagster"
42
connection to server at "<http://core-shared-tools.cktverwlkjvp.us-east-1.rds.amazonaws.com|core-shared-tools.cktverwlkjvp.us-east-1.rds.amazonaws.com>" (10.20.177.69), port 5432 failed: FATAL: password authentication failed for user "dagster"
I know what you are thinking, have you verified that the password is correct? We have tried so many combinations of setting this password. autogenerated, from vault, plain text in the values.yaml file. With an external postgres instance, without. And it always says it is incorrect. I was wondering if anyone has hit a similar issue?
This is the values.yaml file we have now:daniel
03/07/2022, 11:56 PMMarjori Pomarole
03/08/2022, 10:55 AMDid you ever try using the simplest setup where there’s no external postgres DB at all and everything is managed within the helm chart? For that it would be very surprising to see a password auth error.I tried the simplest config with no external postgresDB, there were no errors here and the dagster-daemon and dagster-dagit pods connected to the database in the same cluster. But, we want to connect to an external RDS database with secrets that we created on vault. So to debug this I have tried : 1. Connecting to the external database, but letting the chart create the secrets file with
generatePostgresqlPasswordSecret=true
2. Creating our own secrets template (generatePostgresqlPasswordSecret=false
with postgresql-password as the key) that gets the password from vault.
With both of these I had to luck, it keeps saying the password is incorrect. I doubled checked that the password in the secrets is the same as for the user in the database. Checked that env variables in the pods are reading from the correct secrets file, and that the value retrieved is the correct password. I am really puzzled what is happening here.
- name: DAGSTER_PG_PASSWORD
valueFrom:
secretKeyRef:
key: postgresql-password
name: dagster-postgresql-secret
daniel
03/08/2022, 3:28 PM```
kubectl run psql-interactive --rm -i --tty --image library/postgres:9.6.21 -- psql -h <<RDS host>> --username postgres -d dagster
Then immediately enter the RDS password (won't be prompted).```
That would let you verify that the password is what you expect and that RDS should be accessible with those credentials within your k8s cluster (to rule out issues within dagster)Marjori Pomarole
03/08/2022, 5:29 PMdaniel
03/08/2022, 6:31 PMjohann
03/08/2022, 10:21 PM