prisma: Prisma unable to load glibc with 3.0.1

Bug description

After updating Prisma from 3.0.0 to 3.0.1, I started getting TypeScript errors about .prisma/client locally (not on CI), so I thought I’d manually run npx prisma generate but it throws an error:

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error: Unable to require(`/home/linux/Documents/prisma-api/node_modules/prisma/libquery_engine-debian-openssl-1.1.x.so.node`)
 /snap/core/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /lib/x86_64-linux-gnu/libcrypto.so.1.1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Locally I use Ubuntu. In the changelog I saw something about RHEL, so could be related?

How to reproduce

  1. Update Prisma from 2.30.3 to 3.0.0
  2. Run npx prisma generate
  3. See above error

Expected behavior

No error.

Prisma information

No problem related to my prisma schema or queries

Environment & setup

  • OS: Ubuntu 20.04
  • Database: PostgresQL
  • Node.js version: 14.17.3

Prisma Version

v3.0.0

Other Information

Checking my libc version by running file /snap/core/current/lib/x86_64-linux-gnu/libc.so.6 in terminal

Result :
/snap/core/current/lib/x86_64-linux-gnu/libc.so.6: symbolic link to libc-2.23.so

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 24 (8 by maintainers)

Most upvoted comments

Solved by snap remove node, then install node manually from NodeSource. I’m on Ubuntu 21.04.

Solved

Yes, that makes sense. To confirm I will look up how we could enable Node-API in that version and then you can try that and see if that also caused the same problem already.

It does not seem to be very common, or we would have had more reports of that fortunately.

Solved by removing Snapd then reinstall nodejs latest without snap and it worked correctly

Solved by snap remove node, then install node manually from [NodeSource] (https://github.com/nodesource/distributions/blob/master/README.md#deb). I’m on Ubuntu 21.04.

https://github.com/prisma/prisma/issues/9174#issuecomment-921558437

Thank you!! This method worked to resolved my issue!

I ran into a similar glibc error running Pop!_OS 22.04 LTS:

- error unhandledRejection: Error: Unable to require(`/home/orangeslices/Github/my-t3-app/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node`).
Prisma has detected an incompatible version of the `glibc` C standard library installed in your system. This probably means your system may be too old to run Prisma. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements

Details: /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)
    at Gr.loadLibrary (/home/orangeslices/Github/my-t3-app/node_modules/@prisma/client/runtime/library.js:77:1075)
    at async Zt.loadEngine (/home/orangeslices/Github/my-t3-app/node_modules/@prisma/client/runtime/library.js:105:538)
    at async Zt.instantiateLibrary (/home/orangeslices/Github/my-t3-app/node_modules/@prisma/client/runtime/library.js:104:1838) {
  digest: undefined
}

I’m bumping this thread with details of my error to help future users 😄.

Updating the node version to 20.x.x fixed my issue.

Switching back to the old engine “solves” it for us too.

Ok, I reopen the issue for a better solution

Removing snapd is not a solution - would have to remove lots of packages (1password, vscode, ffmpeg, gimp, mediaingo, remmina, subtitleedit, vlc… ) and reinstall from elsewhere.

Any other idea? This shouldn’t be closed.