prisma: Error: Get config: Unable to establish a connection to query-engine-node-api library
$/prisma/starter$ npx prisma generate
Prisma schema loaded from prisma/schema.prisma
Error: Get config: Unable to establish a connection to query-engine-node-api library
Prisma CLI Version : 3.15.1-dev.1
How to Reproduce OS: 22.04 Ubuntu Node: 16.15.1 Follow these instructions. https://www.prisma.io/docs/getting-started/quickstart#1-download-the-starter-project Switch to latest possible release: 3.15.1-dev.1 as per today.
What have i tried so far Switching databases sqlite, postgres Switching node from 16 to 17. using 3.13 3.14 gives me this error
/snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libcrypto.so.3)
in ubuntu i could not figure out how to install GLIBC_2.33 tying with npm and yarn
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 32 (13 by maintainers)
https://github.com/nodesource/distributions/blob/master/README.md
Ok the snap version of node is not compatible with prisma. Its going to trap ubuntu users who install almost everything with snap.
Updated to v4.0.0 and it still fails. I think it is actually an issue with
pnpm
. Testing nowupdate
after upgrading to v4, it is now throwing this more verbose error
update 2
Switching from
pnpm
toyarn
does not solve the issue, throws erroridk if it helps, but here are my versions
M1 mac MacOS 12.4 (21F79)
@ivan-kleshnin - I am using a similar dockerfile to you, are you using caches in your build at all?
when I change the platform with the following command, the build runs fine, prisma working as expected in the running image
However, running this natively just gives me the linking issue described elsewhere in this thread. Not perfect, but a workaround.
@janpio here’s the rest of the message, thank you for responding:
@aniwn88480857 Your first post looks completely unrelated to Prisma. Your second one is an old version that does not show the full error message, please upgrade to Prisma 4.0.0.
@shtse8 That is not a known limitation, and probably has to do with how you installed your node or application. If the error persists, please open a discussion here in Github and provide more information so Support can take a look. Thanks.
It turns out that cannot generate scheme without root permission in linux. I finally can generate it with root. I don’t know how to make it work without root permission.
https://github.com/prisma/prisma/issues/14043