Cannot connect to Postgres
healthnet001
PROOP

a month ago

My application sttoped working, cannot connect to my postgre database out of nowhere. Please help!

Solved

13 Replies

rafaelmuttoni
PRO

a month ago

Same issue here, I restarted my Postgres and it's not getting back online!


Status changed to Awaiting User Response Railway • about 1 month ago


anon12345
PRO

a month ago

Same I got a ton of clients!


Status changed to Awaiting Railway Response Railway • about 1 month ago


Status changed to Awaiting User Response Railway • about 1 month ago


Anonymous
PRO

a month ago

Same here


Status changed to Awaiting Railway Response Railway • about 1 month ago


Status changed to Awaiting User Response Railway • about 1 month ago


ricardomacario
PRO

a month ago

Same here, can't connect to MySQL. Major disruption on our side.


Status changed to Awaiting Railway Response Railway • about 1 month ago


Status changed to Awaiting User Response Railway • about 1 month ago


healthnet001
PROOP

a month ago

n8n log:

Initial database connection attempt 3 failed: 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..


Status changed to Awaiting Railway Response Railway • about 1 month ago


anon12345
PRO

a month ago

It is stressing me out i got a ton of clients. Is there an official update?


Status changed to Awaiting User Response Railway • about 1 month ago


healthnet001

n8n log: Initial database connection attempt 3 failed: 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..

a month ago

Any logs on the Postgres service?


Status changed to Awaiting Railway Response Railway • about 1 month ago


Status changed to Awaiting User Response Railway • about 1 month ago


medim

Any logs on the Postgres service?

healthnet001
PROOP

a month ago

2026-08-29 00:51:42.000 UTC [132] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:42.006 UTC [131] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:42.006 UTC [131] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.

2026-08-29 00:51:42.006 UTC [131] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:42.288 UTC [133] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:42.727 UTC [134] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:42.727 UTC [134] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.

2026-08-29 00:51:42.727 UTC [134] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:42.814 UTC [135] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:42.814 UTC [135] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.

2026-08-29 00:51:42.814 UTC [135] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:42.850 UTC [136] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:42.850 UTC [136] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.

2026-08-29 00:51:42.850 UTC [136] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:43.842 UTC [137] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:43.842 UTC [137] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.

2026-08-29 00:51:43.842 UTC [137] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:44.104 UTC [138] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:44.104 UTC [138] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.

2026-08-29 00:51:44.104 UTC [138] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE railway REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

2026-08-29 00:51:44.122 UTC [139] WARNING: database "railway" has a collation version mismatch

2026-08-29 00:51:44.122 UTC [139] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.


Status changed to Awaiting Railway Response Railway • about 1 month ago


a month ago

How are you connecting to your database? Through the private network or public?


Status changed to Awaiting User Response Railway • about 1 month ago


ray-chen

How are you connecting to your database? Through the private network or public?

healthnet001
PROOP

a month ago

In my application (n8n) Private railway internal...


Status changed to Awaiting Railway Response Railway • about 1 month ago


healthnet001
PROOP

a month ago

I can connect to the database externally through a proxy, the problem is to connect in n8n. Should I refresh de index and the COLLATION VERSION as indicated in the warning?


healthnet001

I can connect to the database externally through a proxy, the problem is to connect in n8n. Should I refresh de index and the COLLATION VERSION as indicated in the warning?

a month ago

Could you try re-deploying n8n? It could be holding onto connections at start-up so the stale connection never dies.


Status changed to Awaiting User Response Railway • about 1 month ago


ray-chen

Could you try re-deploying n8n? It could be holding onto connections at start-up so the stale connection never dies.

healthnet001
PROOP

a month ago

Its working after a restart. Thanks!


Status changed to Awaiting Railway Response Railway • about 1 month ago


Status changed to Solved healthnet001 • about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...