Postgres Connection refused read ECONNRESET

Getting error while connecting to postgres in credentials

Couldn’t connect with these settings

Retry
read ECONNRESET

Information on your n8n setup

  • **n8n version:1.65.2
  • **Database (default: SQLite):*Postgres *
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • **Operating system:ubuntu 24

Hey @Dice_Codes

Welcome to the community :raised_hands:

That error would suggest either the host or port is wrong or there is a networking issue.

I would start by checking the host, make sure you are not trying to connect to localhost as an example.

Hi thank you for quick reply

I am using my host Ip and other credentials are correct but somehow it is still not working. please suggest.
let me know if you want to see anything from side to solve this

Is the host listening on the port you are using? Does the container have access to the IP as well?

I was installing n8n and postgres with docker i reinstalled everything using
n8n with docker and postgres as a diffrent app now it works

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.