S
Supabase7d ago
Ise

Problem with Supavisor and Prisma

I'm trying to connect to Supavisor with Prisma an I get this error in the console: ✖ Introspecting based on datasource defined in prisma/schema.prisma Error: P1001 Can't reach database server at supabase.justware.it:5432 Please make sure your database server is running at supabase.justware.it:5432. This is my connection URL: postgresql://prisma.[TENANT]:[PSW]@supabase.justware.it:5432/postgres
25 Replies
Ise
IseOP7d ago
This is the error I'm getting from the Supavisor container
Ise
IseOP7d ago
This is my docker-compose
Ise
IseOP7d ago
This is my pooler.exs
Ise
IseOP7d ago
I’m using Coolify to deploy my Supabase instance
inder
inder7d ago
can you connect with the default postgres user?
Ise
IseOP7d ago
No, I keep getting the same errors The command I tries to run was npx prisma db pull
inder
inder7d ago
Have you tried with psql or any other db client?
Ise
IseOP7d ago
No
inder
inder7d ago
Try it. If you can connect via psql then its a prisma issue
Ise
IseOP7d ago
psql: errore: connection to server at "supabase.justware.it" (91.99.201.191), port 5432 failed: FATAL: Authentication error, reason: "Authentication query failed: %DBConnection.ConnectionError{message: "connection not available and request was dropped from queue after 10000ms. This means requests are coming in and your connection pool cannot serve them fast enough. You can address this by:\n\n 1. Ensuring your database is available and that you can connect to it\n 2. Tracking down slow queries and making sure they are running fast enough\n 3. Increasing the pool_size (although this increases resource consumption)\n 4. Allowing requests to wait longer by increasing :queue_target and :queue_interval\n\nSee DBConnection.start_link/2 for more information\n", severity: :error, reason: :queue_timeout}" This is the error I'm getting
inder
inder7d ago
This is with user postgres or prisma?
Ise
IseOP7d ago
Both
inder
inder7d ago
In your dashboard, check Database > roles. See how many active connections are there
Ise
IseOP7d ago
51 out of 100 And 0 prisma connection
inder
inder6d ago
have you recently updated db password?
Ise
IseOP6d ago
No
inder
inder6d ago
Cant think of any other reason why you're facing this issue. Maybe try restarting the containers. See if that resolves the issue
Ise
IseOP6d ago
I’ve already tried Maybe is somenthing related to the Coolify Proxy?
inder
inder5d ago
was this working earlier?
Ise
IseOP5d ago
I never tried I was using the Supabase client, but now I want to start using Prisma
inder
inder5d ago
I am setting up an instance on coolify with your compose file. Will test connection with postgres user and also look at logs issue
Ise
IseOP5d ago
This is the updated docker-compose
Ise
IseOP5d ago
And this is the updated vector.yml
inder
inder5d ago
This seems to be the default one with container_name field?
Ise
IseOP5d ago
I fixed the issue about the vector container editing the official supabase docker-compose I edited also the vector.yml file so it is compatible with coolify Whit this new docker-compose everything seems to work fine. I’ll do some other testing and I’ll let you know For now everything works fine

Did you find this page helpful?