N8N error install with PostgreSQL

I’m trying to install N8N with PostgreSQL but I get this error.

2023-05-22T16:47:19.220Z | debug    | Lazy Loading credentials and nodes from n8n-nodes-base "{\n  credentials: 312,\n  nodes: 409,\n  file: 'DirectoryLoader.js',\n  function: 'loadAll'\n}"
2023-05-22T16:47:24.287Z | error    | Error: There was an error initializing DB "{ file: 'ErrorReporterProxy.js', function: 'report' }"
2023-05-22T16:47:24.289Z | error    | Error: getaddrinfo EAI_AGAIN postgres "{ file: 'ErrorReporterProxy.js', function: 'report' }"
2023-05-22T16:47:32.571Z | error    | Last session crashed "{ file: 'CrashJournal.js', function: 'init' }"

I’m using n8n/docker/compose/withPostgres at master · n8n-io/n8n · GitHub to generate this installation.

It’s a new installation.

Hey @Welton_Franz,

Welcome to the community :raised_hands:

It looks like the hostname for Postgres can’t be resolved, try using the ip instead and see if that works.

It should normally work as it is but there could be some odd docker networking option at play.

2 Likes

Thank you very much, it really was a light.

I’m using Traefik and I forgot to include him in the network. hence the error.

2 Likes

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