App unable to connect to qovery managed mongo db

PrismaClientInitializationError: Database error. error code: unknown, error message: Server selection timeout: No available servers. Topology: { Type: Unknown, Servers: [ { Address: z59ba6ff1-mongodb.z21aac911.numa.sh:27017, Type: Unknown, Error: timed out }, ] }

It was able to connect earlier when we were using container mongo db and creating an alias env for internal url as DATABASE_URL in the app.
but prisma required mongo db to run as a replicata set as it needed to do transactions, so we had to switch to managed mongo db. once we did that and changed alias env it is unable to connect.

Hey @VanxhBitpack,

Unfortunately, this is a “by design” issue as AWS restricts direct access from the outside world to their managed Redis and Mongo DBs.
Qs I understand, you were using containered Mongo before doing the switch, and it works, but it won’t on managed ones.

Cheers,

The app is on qovery only

Yes, but the DB is a managed by AWS DB and you are trying to connect to it via an external tool, I am right?

No on an app on qovery only

From what I can see, your MongoDB is managed by AWS

.

Can you please confirm you did this action to access your DB ? MongoDB | Docs | Qovery

Also, can you please give me your application (trying to reach DB) console URL so I can have a closer look?

Thanks :slight_smile:

https://new.console.qovery.com/organization/f825ae6d-f848-40c9-b24d-555159f40b07/project/6733eb9d-5376-4adc-a12e-8bb62275140e/environment/2afe1d1f-1b12-4fe4-95d7-343e210e4afd/application/52753c75-ba8e-4f24-9b5a-06bf761b96df/general

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.