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.

Can't run `prisma generate` on Ubuntu 22.04

See original GitHub issue

Bug description

> Downloading Prisma engines for Node-API for debian-openssl-3.0.x [                    ] 0%
Error: Not Found https://binaries.prisma.sh/all_commits/bcc2ff906db47790ee902e7bbc76d7ffb1893009/debian-openssl-3.0.x/libquery_engine.so.node.gz

How to reproduce

  1. running prisma generate

Expected behavior

No response

Prisma information

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["mongoDb"]
}

datasource db {
  provider = "mongodb"
  url      = env("MONGODB_URL")
}

model credentials {
  id String @id @default(auto()) @map("_id") @db.ObjectId
  token String 
  adnetwork String
}

model statistics {
  id String @id @default(auto()) @map("_id") @db.ObjectId
  date String 
  impression Int
  revenue Float
  cpm Float
  adnetwork String
  lastupdate Int
}

Environment & setup

  • OS: PopOS 22.04
  • Database: MongoDB
  • Node.js version: v16.14.2

Prisma Version

prisma                  : 3.13.0
@prisma/client          : 3.9.2
Current platform        : debian-openssl-3.0.x
Query Engine (Node-API) : libquery-engine efdf9b1183dddfd4258cd181a72125755215ab7b (at ../../../../usr/local/lib/node_modules/prisma/node_modules/@prisma/engines/libquery_engine-debian-openssl-3.0.x.so.node)
Migration Engine        : migration-engine-cli efdf9b1183dddfd4258cd181a72125755215ab7b (at ../../../../usr/local/lib/node_modules/prisma/node_modules/@prisma/engines/migration-engine-debian-openssl-3.0.x)
Introspection Engine    : introspection-core efdf9b1183dddfd4258cd181a72125755215ab7b (at ../../../../usr/local/lib/node_modules/prisma/node_modules/@prisma/engines/introspection-engine-debian-openssl-3.0.x)
Format Binary           : prisma-fmt efdf9b1183dddfd4258cd181a72125755215ab7b (at ../../../../usr/local/lib/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-3.0.x)
Default Engines Hash    : efdf9b1183dddfd4258cd181a72125755215ab7b
Studio                  : 0.459.0
Preview Features        : mongoDb

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
janpiocommented, May 3, 2022

You need to update both Prisma CLI and Prisma Client to 3.13.0 - then it will work.

1reaction
PiecePaperCodecommented, Jun 8, 2022

still dosen’t work. I get a new Error Unable to establish a connection to query-engine-node-api library i used the starter project only changed the version from 3.12 to 3.13

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma CLI Installation (Reference)
The Prisma CLI is typically installed as a development dependency, that's why the --save-dev (npm) and --dev (Yarn) options are used in the...
Read more >
Unknown binaryTarget debian-openssl-3.0.x and no custom ...
I recently updated to Ubuntu 22.04 Getting the problem while using Prisma.I can't run my project. I have use "@prisma/client": "2.20.1".
Read more >
Ubuntu 22.04: Create Blitzjs app - DEV Community ‍ ‍
Ubuntu 22.04 : Create Blitzjs app. OS: Ubuntu 22.04. There is a bug relevant to openSSL, prisma for this newest version of Ubuntu...
Read more >
System requirements - Prisma Cloud - Palo Alto Networks
The Prisma Cloud Console doesn't support running on ARM64 systems. ... Ubuntu. Ubuntu 22.04 LTS. Ubuntu 20.04 LTS. Ubuntu 18.04 LTS.
Read more >
Command Line Interface | RedwoodJS Docs
~/redwood-app$ yarn redwood build yarn run v1.22.4 $ /redwood-app/node_modules/.bin/redwood build ✓ Generating the Prisma client... ✓ Building "api".
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