10 months ago
https://app.screencast.com/sa4NBc2EE4Ki7
Connection terminated due to connection timeout
Last session crashed
Initializing n8n process
There was an error initializing DB
Could not establish database connection within the configured timeout of 20,000 ms. Please ensure the database is configured correctly and the server is reachable. You can increase the timeout by setting the 'DB_POSTGRESDB_CONNECTION_TIMEOUT' environment variable.
Error: Could not establish database connection within the configured timeout of 20,000 ms. Please ensure the database is configured correctly and the server is reachable. You can increase the timeout by setting the 'DB_POSTGRESDB_CONNECTION_TIMEOUT' environment variable.
at DbConnection.init (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+db@file+packages+@n8n+db_@[email protected]_@opentelemetry+sdk-trace-base@1._ab22bba05a964211b9fe14bf4b841570/node_modules/@n8n/db/src/connection/db-connection.ts:58:13)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Worker.init (/usr/local/lib/node_modules/n8n/src/commands/base-command.ts:104:3)
at Worker.init (/usr/local/lib/node_modules/n8n/src/commands/worker.ts:89:3)
at CommandRegistry.execute (/usr/local/lib/node_modules/n8n/src/command-registry.ts:82:4)
at /usr/local/lib/node_modules/n8n/bin/n8n:63:2
Connection terminated due to connection timeout
Last session crashed
2 Replies
10 months ago
Thank you for this feedback. This issue ultimately just resolved itself.
21 days ago
- try use latest & solid version of pgsql image
- redeploy the pgsql
- use reference for the variable