Skip to content

fix npx prisma generate error#41

Open
apeyroux wants to merge 1 commit into
mcndt:masterfrom
apeyroux:fix-openssl-depend
Open

fix npx prisma generate error#41
apeyroux wants to merge 1 commit into
mcndt:masterfrom
apeyroux:fix-openssl-depend

Conversation

@apeyroux

Copy link
Copy Markdown

When we want to do a docker-compose build we get an error when building the server image.

------
 > [dev_backend build_image 6/8] RUN npx prisma generate:
#0 4.156 Prisma schema loaded from prisma/schema.prisma
#0 5.001 Error: Get Config: Unable to establish a connection to query-engine-node-api library.
#0 5.001 Details: Unable to require(`/app/node_modules/prisma/libquery_engine-linux-musl.so.node`)
#0 5.001  Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/prisma/libquery_engine-linux-musl.so.node)
#0 5.001
#0 5.001 Prisma CLI Version : 4.2.0
------

The only thing missing is the openssl dependency in the server Dockerfile.

@mcndt

mcndt commented Mar 23, 2023

Copy link
Copy Markdown
Owner

Hi! Thanks for your pull request.

Can you explain why this added dependency is necessary? I have not run into trouble with this before, and I'm puzzled why Prisma required SSL at all since SQLite is used for the storage layer.

@apeyroux

Copy link
Copy Markdown
Author

I couldn't build without this addition. If you do a docker-compose up -d --build it doesn't give you this error?

@uPagge

uPagge commented May 29, 2023

Copy link
Copy Markdown

I had the same problem, but I added libssl1.1

@uPagge

uPagge commented May 29, 2023

Copy link
Copy Markdown

@apeyroux Didn't face this problem #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants