9 months ago
Hi Railway Support,
I'm experiencing persistent ECONNRESET errors when trying to connect to my PostgreSQL database from my Node.js application.
Issue Details:
- Error:
read ECONNRESET from
pg-pool/index.js:45:11 - Occurs on ALL connection attempts (SSL required, SSL prefer, no SSL)
- Started around September 25, 2025 (coinciding with your US-West infrastructure issues)
- Application deployed in Singapore region
Project Info:
- Project: virtutrade
- Database: PostgreSQL service
- App: Node.js with pg library
What I've tried:
- Multiple SSL configurations (
sslmode=require ,
sslmode=prefer , no SSL)
- Different connection pool settings
- Connection retries with exponential backoff
Request:
Please check if there are connectivity issues between my app service and PostgreSQL database service. The error suggests the database is rejecting connections at the TCP level.
Thanks,
2 Replies
9 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Error Conecting Database ECONNRESET
- 🧵 Railway proxy timeout
- 🧵 Intermittent ECONNRESET / “Connection reset by peer” between NestJS (Prisma) and PostGIS on Railway
If you find the answer from one of these, please let us know by solving the thread!
9 months ago
Hi!
I see you're connecting over the public network. First, I was able to confirm that your database is running correctly. You should try running over the private network (postgres.railway.internal) for a more stable connection.
Status changed to Awaiting User Response Railway • 9 months ago
8 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 9 months ago