P
Prisma•3mo ago
Sukuna

Hi guys. I've been using prisma for my projects and this time I have a weird issue:

I keep getting: Can't reach database server at 123.j.db.ondigitalocean.com:25060 Please make sure your database server is running at 123.j.db.ondigitalocean.com:25060. It drops pretty regularly - once/2-3 min and crashes all my systems. Digital ocean provides me with 250 connections and I've checked their metrics on connections - no issues. Im nearly certain its a prisma problem. Ty
14 Replies
Prisma AI Help
Prisma AI Help•3mo ago
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
Nurul
Nurul•3mo ago
Hey 👋 Does this happen randomly? Like a few database queries work and then some do not?
Sukuna
SukunaOP•3mo ago
hi there yeah so exactly that the queries are random as well
Nurul
Nurul•3mo ago
Is this happening on latest version of prisma?
Sukuna
SukunaOP•2mo ago
yes correct digital ocean provides me with over 250 connections, I cant tell if prisma is out of connections or the time to obtain one is too long but the server is not reachable the server is always up though
Nurul
Nurul•2mo ago
Are you using any connection pooler?
Sukuna
SukunaOP•2mo ago
nop just regular prisma
Nurul
Nurul•2mo ago
Can you try with a different DB provider temporarily and check if you get the same error? If it happens again, then we can confirm that the issue is related to prisma
Sukuna
SukunaOP•2mo ago
Yes I tried with raw sql No issues Hi @Nurul (Prisma) Anything u can say
Nurul
Nurul•2mo ago
Hi, I meant using a different database provider other than DigitalOcean and check if the issue persists?
Sukuna
SukunaOP•2mo ago
hmmm i could try but ive checked already, they allow 250 connections, prisma allows 33 not so easy to move my data
Nurul
Nurul•2mo ago
I can understand. Ideally if we could have a minimal reproduction for this issue then we should be able to debug.
Sukuna
SukunaOP•2mo ago
how many parallel connections can go through prisma i have maybe 15-20 processes that query the db with a new instance of prisma / 3s maybe
Nurul
Nurul•2mo ago
The number of parallel connections that can go through Prisma depends on the connection pool size configuration. https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool#setting-the-connection-pool-size
Connection pool | Prisma Documentation
Prisma ORM's query engine creates a connection pool to store and manage database connections.

Did you find this page helpful?