-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Could not find query engine binary for current platform "linux" in query-engine path. #55
Comments
The problem seems to be in your Dockerfile where you did not generate and copy the query engine binary. Usually to Dockerize you need to set the The following is the normal copy process:
|
Problem still exists after I added copy and generate steps to my dockerfile
|
https://github.com/odroe/prisma-dart/blob/main/example/simple/Dockerfile Maybe it will help you
|
Thanks @medz! Now it looks like the problem with query-engine has been resolved. However, there is another issue:
My first guess was that I have wrong connection uri in the scheme.prisma:
but it looks good. Here's also my docker-compose file
|
@jakub-stefaniak Your DATABASE_URL is indeed wrong, I'm not familiar with compose so I'm not sure how to solve your problem. Since I have postgres installed locally I have no problem connecting to my local postgres in the container. |
You can try replacing the URLs in schema.prisma with environment variables, and then configuring the correct environment variables in the compose configuration file may solve it. |
Maybe something to do with SSL, I'll keep testing it. |
Maybe it's really about SSL https://github.com/dart-lang/dart-docker/blob/main/Dockerfile-debian.template#L36 |
@jakub-stefaniak I rewrote the Dockerfile through ubuntu:latest and it seems to solve the problem, I guess the scratch benchmark image is missing something necessary for the Prisma query engine. At present, through your error message, I presume it is SSL (OpenSSL or LibSSL). It seems we can fix it by manually installing an SSL for the sights. see: https://github.com/odroe/prisma-dart/blob/main/example/simple/Dockerfile.ubuntu |
@jakub-stefaniak Has this been resolved? Is there any further help needed, the result of my current tests is that OpenSSL needs to be installed. Unable to connect because the target image does not have OpenSSL or LibSSL. |
Same error here. The database is PlanetScale, so I don't have any Docker compose file to set up with SSL or other... @medz Anything to suggest? |
The problem happens when I try to dockerize the app. I use prisma with dart_frog and postgres
Here's what happens when I try calling an endpoint that does some db query with prisma.
Here's my scheme.prisma file:
The text was updated successfully, but these errors were encountered: