Prisma database name overwritten with localhost IP #27496
Replies: 2 comments 24 replies
-
|
Hey @pranavpandhare! Do you have another Postgres instance running on your host? Here's a related GitHub Issue: In few cases the root cause was that there was another postgres instance running which was causing issues. |
Beta Was this translation helpful? Give feedback.
24 replies
-
|
Hi, As we have not heard back from you, we are closing this discussion to keep our discussions organized. Feel free to start a new discussion if this remains relevant. Thank you for being part of the community! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am new to prisma and have no idea how to fix this problem, an unusual issue:
when I run
npx prisma migrate deploy, DB is migrated and the tables are created. but when I run the app, the client gives me following error:User was denied access on the database <container_ip>. Error: P1010. With the same connection url string for client and migration, why the client is using <container_ip>?In prisma debug mode the logs are following, despite correct connectionString in adapter somehow the database name is overwritten with localhost IP
I manually ran npx prisma generate in the container, it found the env variables and loaded them and it did its job. Then I tried to run the client, the output was:
and even then the error still persists:
User was denied access on the database <container_ip>How to reproduce (optional)
This issue is happening in a container running on remote host, trying to get it running in a kuberenetes cluster. On local machine it is working correctly. Created a container with a schema and a client app. The schema responds to npx prisma command but the client code throws the error.
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
OS: Debian GNU/Linux 12 (bookworm)
Database: PostgreSQL
Node.js version: v22.16.0
Run
prisma -vto see your Prisma version and paste itprisma : 6.10.0
@prisma/client : 6.10.0
Computed binaryTarget : debian-openssl-3.0.x
Operating System : linux
Architecture : x64
Node.js : v22.16.0
TypeScript : unknown
Query Engine (Node-API) : libquery-engine aee10d5a411e4360c6d3445ce4810ca65adbf3e8 (at node_modules/@prisma/engines/libquery_engine-debian-openssl-3.0.x.so.node)
PSL : @prisma/prisma-schema-wasm 6.10.0-43.aee10d5a411e4360c6d3445ce4810ca65adbf3e8
Schema Engine : schema-engine-cli aee10d5a411e4360c6d3445ce4810ca65adbf3e8 (at node_modules/@prisma/engines/schema-engine-debian-openssl-3.0.x)
Default Engines Hash : aee10d5a411e4360c6d3445ce4810ca65adbf3e8
Studio : 0.511.0
Preview Features : driverAdapters, typedSql
Beta Was this translation helpful? Give feedback.
All reactions