PrismaP
Prisma8mo ago
14 replies
RedRoss

PrismaClientInitializationError with docker

Hi, i have this problem:
PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "debian-openssl-3.0.x".

This happened because `binaryTargets` have been pinned, but the actual deployment also required "debian-openssl-3.0.x".
Add "debian-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:

generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["linux-arm64-openssl-3.0.x", "debian-openssl-3.0.x"]
}

The following locations have been searched:
  /usr/src/app/dist/src/generated/client
  /root/eventapp/EventManagement-email-service/src/generated/client
  /usr/src/app/dist/src/.prisma/client
  /tmp/prisma-engines
  /usr/src/app/dist/prisma
    at Qu (/usr/src/app/dist/src/generated/client/runtime/binary.js:116:805)
    at async /usr/src/app/dist/src/generated/client/runtime/binary.js:168:2648 {
  clientVersion: '6.2.1',
  errorCode: undefined
}

Node.js v24.0.1
Screenshot_2025-06-17_at_07.23.06.png
Was this page helpful?