Issue with Prisma Pooling Timeout
Hello everyone, new poster here. I am pretty new to Prisma and have had no issues in recent months with it. Today my production server just started stating:
I have now tried what feels like 100 different options to fix this. To explain the same setup locally does not experience this issue. I have changed the server instance to one with more memory as I noticed issues with metrics but now that it has more overhead it does not seem to be the issue. I have tried changing my connection string and adding connection_limits, enabling and removing pgbouncer which my serverless DB provider states in the connection string. I am really struggling now to work out what the issue is, It works fine locally as I have said but on the production server it has just stopped working within the last couple days... Anyone have any idea or advice on what to go on here?
3 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.I have also just updated prod to the latest version of prisma to see if this had any change:
I have also optimised the rate limiter on the login screen where this is all occurring and still no joy. Losing my mind a little over here!
Lastly for DATABASE_URL this is the params passed into the connection string advised by the server provider:
?sslmode=require&pgbouncer=true&connect_timeout=10
I have also tried turning off pgbouncer and removing it entirely from connection string and still no joy
@Prisma AI Help
Bump
Hey 👋
Which database provider are you using?
How many maximum connections does it support?
Did you try disabling pool timeout and check if you still get the same error?
https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool#disabling-the-connection-pool-timeout
Connection pool | Prisma Documentation
Prisma ORM's query engine creates a connection pool to store and manage database connections.