prisma: [regression] `Schema engine error` in Prisma 5.19.0
Bug description
Version 5.19.0 appears broken to me. npx prisma migrate dev --name init simply gives error
risma:getConfig Using getConfig Wasm +0ms
prisma:getConfig config data retrieved without errors in getConfig Wasm +1ms
Error: Error: Schema engine error:
at Cf (/home/satadhi.halde/Documents/nestjs-practise/prisma-prac/node_modules/prisma/build/index.js:432:1600)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async nl (/home/satadhi.halderDocuments/nestjs-practise/prisma-prac/node_modules/prisma/build/index.js:513:1789)
at async Sm.parse (/home/satadhi.halderDocuments/nestjs-practise/prisma-prac/node_modules/prisma/build/index.js:943:72)
at async s2t (/home/satadhi.halderDocuments/nestjs-practise/prisma-prac/node_modules/prisma/build/index.js:2002:1678)
How to reproduce
Followed steps in nestjs docs
The env file looks like this.
DATABASE_URL="mysql://root:password@127.0.0.1:3306/nestjs_prisma"
MYSQL_DATABASE=nestjs_prisma
MYSQL_ROOT_PASSWORD=password
I use docker-compose.yaml to run sql
services:
mysql:
image: mysql
env_file:
- .env
ports:
- '3306:3306'
Expected behavior
It should just run normally. I tried using version 5.18.0 everything works expected
Prisma information
// Add your schema.prisma
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model Product {
id Int @id @default(autoincrement())
name String
}
Environment & setup
- OS: Ubuntu 22.04.2 LTS
- Database: MySQL
- Node.js version: 20.14.0
Prisma Version
5.19.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 21 (11 by maintainers)
Commits related to this issue
- fix(deps): update prisma monorepo to v5.19.1 (#1128) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@prisma/client]... — committed to huv1k/website by renovate[bot] 2 years ago
- feat(docker): add regression test for https://github.com/prisma/prisma/issues/25101 — committed to prisma/ecosystem-tests by jkomyno 2 years ago
- feat(docker): add regression test for https://github.com/prisma/prisma/issues/25101 (#5424) — committed to prisma/ecosystem-tests by jkomyno 2 years ago
- feat(docker): fix BINARY regression test for https://github.com/prisma/prisma/issues/25101 — committed to prisma/ecosystem-tests by jkomyno 2 years ago
- feat(docker): fix BINARY regression test for https://github.com/prisma/prisma/issues/25101 (#5425) — committed to prisma/ecosystem-tests by jkomyno 2 years ago
- chore(): update all non-major dependencies (#1399) This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | Age | Adoption | Passing | Confidence | |---|---|---|---|---... — committed to weareinreach/InReach by renovate[bot] 2 years ago
- fix(deps): update all non-major dependencies (#455) This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@neondatabase/serverless](https://... — committed to weareinreach/TransMascFutures by kodiakhq[bot] 2 years ago
- fix(deps): update prisma monorepo to v5.19.1 (#1177) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@prisma/client]... — committed to kula-app/OnLaunch by renovate[bot] 2 years ago
- feat: add modern theme for authentication flows WIP WIP WIP fix(deps): update dependency postcss to v8.4.43 (#1174) This PR contains the following updates: | Package | Change | Age | Adoption | ... — committed to kula-app/OnLaunch by philprime 2 years ago
- feat: add modern theme for authentication flows WIP WIP WIP fix(deps): update dependency postcss to v8.4.43 (#1174) This PR contains the following updates: | Package | Change | Age | Adoption | ... — committed to kula-app/OnLaunch by philprime 2 years ago
- chore(deps): update prisma monorepo to v5.19.1 (#11486) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@prisma/clie... — committed to redwoodjs/graphql by renovate[bot] 2 years ago
- chore(deps): update prisma monorepo to v5.19.1 (#11486) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@prisma/clie... — committed to redwoodjs/graphql by renovate[bot] 2 years ago
- fix(deps): update patch tuesday (#980) This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [@prisma/client](https://www.prisma.io) ([source... — committed to simonknittel/sinister-incorporated by simonknittel 2 years ago
- fix(deps): update all non-major dependencies (#82) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@cerbos/grpc... — committed to cerbos/query-plan-adapters by renovate[bot] 2 years ago
- fix: vendor OpenSSL for `*-openssl-1.1.x` targets [#5191][] updated the `openssl` crate from version `0.10.60` to version `0.10.71` together with the newer version of `native-tls`. We saw [previousl... — committed to prisma/prisma-engines by aqrln 2 years ago
- fix: vendor OpenSSL for `*-openssl-1.1.x` targets [#5191][] updated the `openssl` crate from version `0.10.60` to version `0.10.71` together with the newer version of `native-tls`. We saw [previousl... — committed to prisma/prisma-engines by aqrln 2 years ago
- fix: vendor OpenSSL for `*-openssl-1.1.x` targets [#5191][] updated the `openssl` crate from version `0.10.60` to version `0.10.71` together with the newer version of `native-tls`. We saw [previousl... — committed to prisma/prisma-engines by aqrln 2 years ago
This should be fixed in the 5.19.1 version, closing this now.
removed,
Output of
npx prisma --version@satadhi so the OpenSSL error is a separate issue and unrelated to the original problem you were facing, right? It’s better to uninstall it, yes, there’s no reason to use OpenSSL 1.1 which has been officially EOL upstream for a year already (even if distros may still support it).
@satadhi this is unexpected but is there a reason you have OpenSSL 1.1 installed on your system? Did you install it with
aptor in some other way? Right now Prisma prefers an older version of OpenSSL when multiple are installed for reasons, so if you only left OpenSSL 3 installed (which should be the default on Ubuntu 22.04) and regenerated the client, it should resolve the issue.We should investigate what looks like a sudden bump in the requirements from OpenSSL 1.1.0 to OpenSSL 1.1.1 regardless. Maybe it comes from https://github.com/prisma/prisma-engines/pull/4965.
@jkomyno Hi its all linked sir, my
npm install @prisma/clientis also broken which is of version5.19.0. Manually changing the version to5.18.0works fine.I have used the basic setup of nestjs.
Below is the error when i used
5.19.0Hey @satadhi, can you please run the following command, and report back the output? Thanks.
This gives us much more information than just “5.19.0”, and may help us assessing this further. Thanks!