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.

RHEL error after updating Prisma to 2.15.0

See original GitHub issue

Bug description

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

yarn workspace foo prisma generate
yarn workspace v1.22.4
yarn run v1.22.4
$ /usr/src/app/jenkins/workspace/foo/node_modules/.bin/prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error: Get config /usr/src/app/jenkins/workspace/foo/node_modules/@prisma/cli/query-engine-rhel-openssl-1.0.x: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /usr/src/app/jenkins/workspace/foo/node_modules/@prisma/cli/query-engine-rhel-openssl-1.0.x)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/src/app/jenkins/nodejs/12.18.4/linux_x64/bin/node
Arguments: /usr/src/app/jenkins/workspace/foo/bin/yarn-1.22.4.js prisma generate
Directory: /usr/src/app/jenkins/workspace/foo/services/foo
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.

Locally I use Ubuntu and there’s no error thrown. In the changelog I saw something about RHEL, so could be related?

We’ve upgraded our RHEL base image from CentOS 6 to Amazon Linux 2. CentOS 6 reached end-of-life on November 30th, 2020. This may affect machines still running Amazon Linux 1. If you run into problems with this upgrade, please don’t hesitate to reach out.

How to reproduce

  1. Update Prisma from 2.14.0 to 2.15.0
  2. Run npx prisma generate
  3. See above error

Expected behavior

No error.

Prisma information

Environment & setup

  • OS: Red Hat Enterprise Linux Server release 7.9 (Maipo) (cat /etc/redhat-release)
  • Database: MariaDB
  • Node.js version: 12.18.4
  • Prisma version: 2.15.0. Running prisma -v also throws the above error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
nicksrandallcommented, Jan 22, 2021

I also have this issue and we are running RHEL7 which only supports glibc 2.17. It would be great if we could continue to support that version of glibc. Thanks for all you do!

2reactions
pantharshit00commented, Jan 22, 2021

Thanks for reporting, we did have some build pipeline changes as CentOS 6 went EOL. We will further investigate this now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma 2.15.0 Release - GitClear
Renamed Datetime to DateTime on MySQL. Breaking changes. We've upgraded our RHEL base image from CentOS 6 to Amazon Linux 2. CentOS 6...
Read more >
RedwoodJS 22.1 and Prisma 12.1 Workaround for Intermittent
I encountered several errors after upgrading to 22.1 with Prisma 12.1especially when using findFirst and findUnique but the issue is not ...
Read more >
Prisma Migrate limitations and known issues
In 2.15.0 and later, Prisma Migrate detects when the migrations do not match the configured provider and prints a helpful error message.
Read more >
Apache log4j Vulnerability CVE-2021-44228 - Unit 42
A conceptual image representing a vulnerability, such as the Apache log4j remote code execution vulnerability. On Dec. 28, we updated this blog ...
Read more >
prisma - NPM Package Overview - Socket.dev
Prisma now supports OpenSSL 3 builds for Linux Alpine on x86_64 architectures. This particularly impacts users running Prisma on node:alpine and ...
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