prisma: Error: Unable to require(`/node_modules/prisma/libquery_engine-debian-openssl-3.0.x.so.node`)

“prisma”: “^3.13.0”, “@prisma/client”: “^3.13.0”, node v16.14.0 Ubuntu 22.04

comand: yarn prisma generate response:

yarn run v1.22.18
$ /node_modules/.bin/prisma generate
Environment variables loaded from .env
Prisma schema loaded from src/infra/repository/prisma/schema.prisma
Error: Unable to require(`/node_modules/prisma/libquery_engine-debian-openssl-3.0.x.so.node`)
 /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libcrypto.so.3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26 (6 by maintainers)

Most upvoted comments

I had the same issue after upgrading to ubuntu 22 from 21, node was installed using snap! What helped: remove snap version, install with apt.

After a lot of troubleshooting, I found that conda installs the latest version of OpenSSL (3.0.x) as a part of its packages. My PATH was using conda’s OpenSSL over Debian’s version (1.1.1n). After deactivating the conda env, everything worked as expected. Thanks for the fast response & keep up the great work!

For anyone who is still having the issue even with : "@prisma/client": "3.13.0" and "prisma" : "3.13.0"

I have simply followed the what was shared at this comment : link .

Here is what I have done :

  1. I havee downgraded my open ssl version to the latest available for me ( check this link for me it was : libssl1.1 1.1.1l-1ubuntu1 in amd64 (Release)
  2. I have followed all the steps in this tutorial : How to install openssl in ubuntu, in this tutorial the guy reference libssl1.1.1c but I did replace it with the latest one libssl1.1.1l
  3. Once the tutorial completed, it was working ! 🔥

Facing similar issue in Pop!_os 22.04 LTS 64bit

Prisma client error: Unable to run script

Message: Error in Prisma Client request:

Invalid prisma.model.count() invocation:

/snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33’ not found (required by /lib/x86_64-linux-gnu/libcrypto.so.3)

I fix it by removing the snap version of nodejs

sudo snap remove node

and installing via PPA Version.

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get install -y nodejs

@janpio indeed my global prisma version was older, updated it and now everything’s working like a charm. Thank you