Skip to content
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

fix npx prisma generate error #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apeyroux
Copy link
Contributor

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
Copy link
Owner

mcndt commented Mar 23, 2023

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
Contributor 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
Copy link

uPagge commented May 29, 2023

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

@uPagge
Copy link

uPagge commented May 29, 2023

@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