PrismaP
Prisma8mo ago
8 replies
Yusif

PrismaClientInitializationError – Missing Query Engine Binary for rhel-openssl-1.0.x on Vercel

Hello,

I'm encountering a PrismaClientInitializationError that started recently. Everything was working perfectly yesterday, but now I'm getting an error at runtime when deploying on Vercel.

To resolve it, I tried updating my Prisma schema with the following:

generator client {
  provider      = "prisma-client"
  binaryTargets = ["native", "rhel-openssl-1.0.x"]  // Added "rhel-openssl-1.0.x" manually
}


However, that didn’t resolve the issue. What’s particularly interesting is that I have two projects deployed on Vercel, both using the same Prisma generator configuration and connecting to the same database. The other project works perfectly without specifying binaryTargets, but this one suddenly stopped working as of yesterday.

⨯ Error [PrismaClientInitializationError]: 
Invalid `prisma.contact.findMany()` invocation:


Prisma Client could not locate the Query Engine for runtime "rhel-openssl-1.0.x".

This is likely caused by tooling that has not copied "libquery_engine-rhel-openssl-1.0.x.so.node" to the deployment folder.
Ensure that you ran `prisma generate` and that "libquery_engine-rhel-openssl-1.0.x.so.node" has been copied to "../../vercel/path0/src/generated/prisma".

We would appreciate if you could take the time to share some information with us.
Please help us by answering a few questions: https://pris.ly/engine-not-found-tooling-investigation

The following locations have been searched:
  /vercel/path0/src/generated/prisma
  /var/task/node_modules/.pnpm/@prisma+client@6.10.1_prisma@6.10.1_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client
  /var/task/node_modules/.pnpm/@prisma+client@6.10.1_prisma@6.10.1_typescript@5.8.3__typescript@5.8.3/node_modules/.prisma/client
  /tmp/prisma-engines
    at async c (.next/server/chunks/5978.js:1:858) {
  clientVersion: '6.10.1',
  errorCode: undefined,
  retryable: undefined,
  digest: '1772873755'
}
Was this page helpful?