Hey! So I am running a docker network where I have
srv-cap--kobos-db
srv-cap--kobos-db
as a ready and availble database used in other applications. But for some reason, on this specific T3 application, I am getting this:
Can't reach database server at `srv-captain--kobos-db`:`3306`Please make sure your database server is running at `srv-captain--kobos-db`:`3306`.PrismaClientInitializationError: Invalid `prisma.folder.findMany()` invocation:Can't reach database server at `srv-captain--kobos-db`:`3306`Please make sure your database server is running at `srv-captain--kobos-db`:`3306`. at wn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:123:7003)
Can't reach database server at `srv-captain--kobos-db`:`3306`Please make sure your database server is running at `srv-captain--kobos-db`:`3306`.PrismaClientInitializationError: Invalid `prisma.folder.findMany()` invocation:Can't reach database server at `srv-captain--kobos-db`:`3306`Please make sure your database server is running at `srv-captain--kobos-db`:`3306`. at wn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:123:7003)
Keep in mind, I have tested connecting to this from other apps and it works. It's just T3 specifically that's failing. I'm using the Dockerfile found here https://create.t3.gg/en/deployment/docker and I am using CapRover as my PaaS where I am passing the database URL in the env.