RHEL error after updating Prisma to 2.15.0
See original GitHub issueBug 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
- Update Prisma from 2.14.0 to 2.15.0
- Run
npx prisma generate
- 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:
- Created 3 years ago
- Comments:15 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!Thanks for reporting, we did have some build pipeline changes as CentOS 6 went EOL. We will further investigate this now.