Error: Unknown binaryTarget linux-arm64-openssl-undefined and no custom engine files were provided
See original GitHub issue@janpio I've recreated it with the following minimal setup.
Dockerfile
ARG FUNCTION_DIR="/var/task" FROM node:16-slim # Include global arg in this stage of the build ARG FUNCTION_DIR WORKDIR ${FUNCTION_DIR} COPY . ${FUNCTION_DIR} RUN yarn add prisma RUN yarn prisma generate
prisma.schema
// This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema generator client { provider = "prisma-client-js" binaryTargets = ["rhel-openssl-1.0.x", "linux-arm64-openssl-1.0.x"] } datasource db { provider = "mongodb" url = env("DATABASE_URL") } model User { objectID String @id @default(auto()) @map("_id") @db.ObjectId }
docker-compose.yml
version: "3.9" services: api: build: . volumes: - ./:/var/task
When running
docker compose build
you should get this errorError: Unknown binaryTarget linux-arm64-openssl-undefined and no custom engine files were provided #0 1.446 error Command failed with exit code 1.
_Originally posted by @jcampbell05 in https://github.com/prisma/prisma/issues/861#issuecomment-1310206111_
Issue Analytics
- State:
- Created 10 months ago
- Comments:8
Top Results From Across the Web
docker-compose up issue Using Docker Apple M1
When you run the prisma generate command, prisma seems to uses the query engine , but it needs to find the proper binary...
Read more >NestJS + Redis + Postgres Local Development With Docker ...
Error : Unknown binaryTarget linux-arm64-openssl-undefined and no custom engine files were provided. This is a open issue and on Prisma's ...
Read more >npx prisma initでUnknown binaryTarget linux-arm64-openssl ...
dockerでgraphqlサーバーを作ろうとしていた際に発生したエラーの対応備忘録です。 Unknown binaryTarget linux-arm64-openssl-undefinedが発生 ...
Read more >Environment variables reference - Prisma
This page gives an overview of all environment variables available for use. ... There are however situations where you may want to use...
Read more >M1 MacのDocker上のNestJSでPrismaを動かすまでに詰まっ ...
Error : Unknown binaryTarget linux-arm64-openssl-undefined and no custom binaries were provided. やったこと. npx prisma init.
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 FreeTop 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
Top GitHub Comments
for me it worked using node:16-slim version :
So this error is unrelated to ARM and is caused by a lack of an installed SSL library. Some slim Docker images no longer come with a SSL library installed by default in order to keep the image as small as possible. This is why switching to a full sized image resolves this issue.
The fix is to simply install a SSL library.
Unfortunately the error from Prisma doesn’t provide any context that this is the issue. So I would suggest the following change: