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

OpenSSL error message appearing while using query-engine has false positives #14104

Closed
jkomyno opened this issue Jul 1, 2022 · 1 comment · Fixed by #14512
Closed

OpenSSL error message appearing while using query-engine has false positives #14104

jkomyno opened this issue Jul 1, 2022 · 1 comment · Fixed by #14512
Assignees
Labels
kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. topic: dx
Milestone

Comments

@jkomyno
Copy link
Contributor

jkomyno commented Jul 1, 2022

Currently, we print the error It seems there is a problem with your OpenSSL installation! even when the actual problem isn't related to openssl, but rather to executing an engine that either:

  • hasn't been compiled to support musl (rather than libc), or
  • hasn't been compiled to support the aarch64 architecture on Linux (e.g., on a Docker container), or
  • a combination thereof.

See this comment by @janpio.

Example 1 (wrong, false positive)

#21 2.546 Error: Get Config: Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!
#21 2.546 Details: Unable to require(`/app/node_modules/.pnpm/prisma@4.0.0/node_modules/prisma/libquery_engine-linux-arm64-openssl-1.1.x.so.node`)
#21 2.546  Error relocating /app/node_modules/.pnpm/prisma@4.0.0/node_modules/prisma/libquery_engine-linux-arm64-openssl-1.1.x.so.node: __res_init: symbol not found

Example 2 (right)

Error: Get Config: Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!
Details: Unable to require(`/home/florian/zac-management/node_modules/.pnpm/prisma@4.0.0/node_modules/prisma/libquery_engine-debian-openssl-1.1.x.so.node`)
 libssl.so.1.1: cannot open shared object file: No such file or directory

Proposed solution

  • Look for the libssl string in here, rather than looking for openssl
  • As a fallback, if we find the Unable to require string, we might emit an appropriate suggestion, like It seems that the current architecture $architecture is not supported, or that libc is missing. or something of the sort.
@jkomyno jkomyno added kind/improvement An improvement to existing feature and code. topic: dx team/schema Issue for team Schema. labels Jul 1, 2022
@jkomyno jkomyno self-assigned this Jul 1, 2022
@kaykhan

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. topic: dx
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants