Unable to connect RDS POSTGRES from n8n container for internal data use the typical command i use for this , surprisingly from the same machine i’m able to connect through psql client with same values
User settings loaded from: /home/node/.n8n/config
Last session crashed
Initializing n8n process
There was an error initializing DB
no pg_hba.conf entry for host “10.x.x.x”, user “n8n_db_user”, database “dev_n8n_db”, no encryption
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
I just wrote a lengthy post about docker compose + networks and just noticed the error message at the end of your post:
no pg_hba.conf entry for host “10.x.x.x”, user “n8n_db_user”, database “dev_n8n_db”, no encryption
usually the postgresql docker has set up a propper pg_hba.conf to allow connections.
Is this a postgresql that’s not in docker? If so edit the pg_hba.conf
/var/lib/postgresql/*/main/pg_hba.conf
and add a setting for your IP Address
host all all 10.x.x.x/32 <METHOD>
Please note that the at the end should be the method, I did not want to leave the old Example I had from an old postgres 13 laying around, you can read about that here: