noteshare.space icon indicating copy to clipboard operation
noteshare.space copied to clipboard

fix npx prisma generate error

Open apeyroux opened this issue 2 years ago • 4 comments

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.

apeyroux avatar Mar 22 '23 20:03 apeyroux

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.

mcndt avatar Mar 23 '23 09:03 mcndt

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

apeyroux avatar Mar 23 '23 10:03 apeyroux

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

uPagge avatar May 29 '23 17:05 uPagge

@apeyroux Didn't face this problem https://github.com/mcndt/noteshare.space/issues/48

uPagge avatar May 29 '23 18:05 uPagge