R
Railway•8mo ago
fedev

FATAL: sorry, too many clients already

Trying to connect to PostgreSQL, getting this error. The database is basically empty and I used it only locally. If i go to the data section of the plug-in, railway says Failed to connect to Postgres. Is it accessible to the public?
14 Replies
Percy
Percy•8mo ago
Project ID: 649cb17e-bf89-4494-816a-4dc8cffe9717
fedev
fedev•8mo ago
649cb17e-bf89-4494-816a-4dc8cffe9717
Fragly
Fragly•8mo ago
I wonder if it could be that railway failed to connect due to too many clients being connected already maybe you're connecting to it more than once somewhere else? Just guessing here Otherwise you can try increasing the max connections allowed
fedev
fedev•8mo ago
how are too many clients already connected I'm using it only locally and didn't even start server
Fragly
Fragly•8mo ago
fair
Brody
Brody•8mo ago
maybe railway is never closing the database connections when you've opened the data tab I'd recommend removing the variables railway uses to connect to the data tab and restarting the database
jr
jr•8mo ago
We are investigating reports of strange database connection errors (with postgres and mongo) and will add this to our list to check
fedev
fedev•8mo ago
I'm having issues connecting postgres to nodejs on railway but works locally, can it be because of this? PrismaClientInitializationError: Can't reach database server at `monorail.proxy.rlwy.net`:`46443
jr
jr•8mo ago
That is something different. Is it the same project id?
Brody
Brody•8mo ago
my money is on the private networking initialisation times issue 😭
fedev
fedev•8mo ago
No its c3046ecc-a875-4e08-a808-2ff3dcd1b7f9
Solution
fedev
fedev•8mo ago
Brody
Brody•8mo ago
@fedev not a prisma problem, it's a private network initialisation time problem increasing the connection timeout proves that theory
fedev
fedev•8mo ago
I see thank you 💯