New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__res_init: symbol not found
when running Prisma
#14043
Comments
it does not exist @janpio |
Earlier, additional information from @cmwhited on his system: #13717 (comment)
|
This is probably a duplicate of #9572. More details will follow |
@jkomyno @janpio I went down the path as referenced here: #8478 (comment) and updated my
This fails with a lovely new error:
Going to issue #9572 lead me to there |
I added:
to the
error |
@janpio switching docker to the |
Yeah somebody should definitely put up somewhere that installing Prisma on alpine crashes with these most bizarre error messages. Switching to slim and adding |
I'm using PS: I'm not running this via compose - but deploy image to AWS ECS (fargate) and it doesn't want to work there |
Same issue on my side using prisma 4.x.x, any update? |
@nassim-kachroud @bmxpiku maybe try with this in your alpine container as soon as you pull initial image, it solved for me:
|
"prisma": "3.14.0"
I got this error when build in docker, too. |
Same issue, I tried with your suggestion @DavorJ94, however still no luck. Tried |
@senorscan Interesting, it works for me for 16.12-alpine, but for 18 it won't work. It seems there really is some regression. Maybe you can try 16.12. |
It worked! Thank you very much. |
I had the same issue with the docker image node:19-alpine, but using node:19-alpine3.16 fixed it. Could it be an issue with alpine 3.17? |
Thanks @edlundin - that unblocked me. Adding |
Hey, just had this exact issue, thanks for the solution. @zackdotcomputer, so you added |
@valentinpezon-primo In my case I'm on |
@valentinpezon-primo yes, I just tried it with node:18.12-alpine, it seems to work for any version. Perfect, thanks. |
weird, it was working fine for months, and just from this morning it has been failing in my Gitlab CI, building manually from local is fine. No change from my Dockerfile at all. Adding this before RUN apk add --update --no-cache openssl1.1-compat Update: build success with the above change, but at runtime , it throw error:
|
I specified the node version as "node:alpine" in my Dockerfile. I switched it to 16.2 and now it works fine. |
getting this issue in my bitbucket pipelines too |
When I Add this line I can build the Docker-file but I get the error:
it is related to OpenSSL as @edlundin already said. Prisma only supports 1.X instead of 3.0 which is now default in the alpine builds >3.16 see also this issue |
fixed as well by switching to |
Hey, Alberto from Prisma here. For people facing this issue on Linux Alpine (e.g., when using the |
/app/node_modules/prisma/libquery_engine-linux-arm64-openssl-1.1.x.so.node
)__res_init: symbol not found
when running Prisma
Closing as the issue is solved by #14043 (comment) |
* refactor: remove types package from dependencies * fix: use node alpine 16.18.0 to fix prisma build error prisma/prisma#14043
* feature: upgrade node version to 18 prisma/prisma#14043 (comment) * docs: add a documentation for docker * chore: upgrade prisma version * chore: upgrade nest and gql version
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
Originally posted by @cmwhited in #13717 (comment)
The text was updated successfully, but these errors were encountered: