question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prisma unable to load glibc with 3.0.1

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
klausbadeltcommented, Sep 17, 2021

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

1reaction
lohnsonokcommented, Sep 17, 2021

Ok, I reopen the issue for a better solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unable to require(`/node_modules/prisma ...
response: yarn run v1.22.18 $ /node_modules/.bin/prisma generate Environment variables loaded from .env Prisma schema loaded from src/infra ...
Read more >
GLIBC_2.33 version in not find in Ubuntu 22.04 - Stack Overflow
I recently work with Prisma for my frontend project. then I find the error. List all commands which I run to solve the...
Read more >
GLIBC version problem - Red Hat Customer Portal
The problem with this is that in RHEL 7.x, the libc RPM package is glibc-2.17-.el7.x86_64.rpm, and it includes both /lib64/libc.so.
Read more >
[Test] Prisma TypeScript #16450 - Buildkite
Failed in 3m 56s ./.buildkite/test/buildkite-entry.sh. :coverage: Test - Node 14 (Search for `BUILDKITE_PARALLEL_JOB` in test output for ...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:195942 - "sys-libs/glibc fails parallel make - iconv_charmap.o - make[2]: *** No rule to make target" status:RESOLVED resolution:OBSOLETE severity: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found