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

Prisma Studio errors with a Prisma Client error ...It seems there is a problem with your OpenSSL installation!... #15771

Closed
Matheus-S-Costa opened this issue Oct 13, 2022 · 12 comments
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/client Issue for team Client. topic: engine topic: openssl topic: prisma-client

Comments

@Matheus-S-Costa
Copy link

Matheus-S-Costa commented Oct 13, 2022

Bug description

Can't use the localhost with prisma studio.

Error starting Prisma Client: {

  "message": "Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!\n\u001b[31m\u001b[1mDetails:\u001b[22m\u001b[39m Unable to require(`/home/matheus/www/nlw/esports/server/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`)\n libssl.so.1.1: cannot open shared object file: No such file or directory\n[Context: getConfig]\n\nPrisma CLI Version : 4.3.1",
  "stack": "Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!\n\u001b[31m\u001b[1mDetails:\u001b[22m\u001b[39m Unable to require(`/home/matheus/www/nlw/esports/server/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`)\n libssl.so.1.1: cannot open shared object file: No such file or directory\n[Context: getConfig]\n\nPrisma CLI Version : 4.3.1"
}
Error: Error starting Prisma Client: {
  "message": "Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!\n\u001b[31m\u001b[1mDetails:\u001b[22m\u001b[39m Unable to require(`/home/matheus/www/nlw/esports/server/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`)\n libssl.so.1.1: cannot open shared object file: No such file or directory\n[Context: getConfig]\n\nPrisma CLI Version : 4.3.1",
  "stack": "Unable to establish a connection to query-engine-node-api library. It seems there is a problem with your OpenSSL installation!\n\u001b[31m\u001b[1mDetails:\u001b[22m\u001b[39m Unable to require(`/home/matheus/www/nlw/esports/server/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`)\n libssl.so.1.1: cannot open shared object file: No such file or directory\n[Context: getConfig]\n\nPrisma CLI Version : 4.3.1"
}
    at qs.init (http://localhost:5555/assets/index.js:1:83069)

How to reproduce

I just run the command: npx prisma studio

Expected behavior

Enter in localhost and run my database.

Prisma information

Environment & setup

  • OS:
  • Browser:
  • Database:

Prisma logs

No response

@Matheus-S-Costa Matheus-S-Costa added the kind/bug A reported bug. label Oct 13, 2022
@petradonka petradonka transferred this issue from prisma/studio Oct 13, 2022
@janpio
Copy link
Member

janpio commented Oct 13, 2022

What operating system are you using @Matheus-S-Costa? Does Prisma Client work in a Node app?

@Jolg42
Copy link
Member

Jolg42 commented Oct 13, 2022

Our logic detected: It seems there is a problem with your OpenSSL installation!.
Your OpenSSL setup might be the case here.

Could you provide more info?

  • about your system? OS, distro
  • please run whereis openssl and post the output.

@Jolg42 Jolg42 added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. topic: prisma-client team/client Issue for team Client. topic: openssl labels Oct 13, 2022
@Jolg42 Jolg42 changed the title Prisma Studio not works Prisma Studio errors with a Prisma Client error ...It seems there is a problem with your OpenSSL installation!... Oct 13, 2022
@Matheus-S-Costa
Copy link
Author

Matheus-S-Costa commented Oct 13, 2022 via email

@janpio
Copy link
Member

janpio commented Oct 13, 2022

"anaconda" rings a bell: #14073

@Matheus-S-Costa
Copy link
Author

Matheus-S-Costa commented Oct 13, 2022 via email

@Jolg42
Copy link
Member

Jolg42 commented Oct 13, 2022

Indeed.
It looks like something is related to anaconda

@Matheus-S-Costa You could try what people mentioned, though it doesn't sound like a great solution is you need to use anaconda.
So you could also give us more information, so we could reproduce this.

@Jolg42
Copy link
Member

Jolg42 commented Nov 3, 2022

@Matheus-S-Costa Did you solve your issue? What did you do? We're curious to know.

@Matheus-S-Costa
Copy link
Author

@Matheus-S-Costa Did you solve your issue? What did you do? We're curious to know.

I uninstalled anaconda from my desktop and tried again. It wasn't the ideal solution for me, but was the easiest way. Thanks for help.

@Jolg42
Copy link
Member

Jolg42 commented Nov 11, 2022

We'll keep it open as we want to work on all openssl issues at some point.

@Jolg42 Jolg42 reopened this Nov 11, 2022
@Matheus-S-Costa
Copy link
Author

Ok, no problem.

@hubsmoke
Copy link

FYI I ran into this issue as well and I renamed the openssl binary under anaconda folder to prevent the issue.

mv /home/user/anaconda3/bin/openssl /home/user/anaconda3/bin/openssl-old

Not sure what the root cause of the conflict is here, but just documenting this in case it's useful

@aqrln
Copy link
Member

aqrln commented Mar 28, 2023

This issue is reproducible with Prisma up to 4.8.1. Starting with Prisma 4.9.0, OpenSSL installed via Anaconda, Homebrew etc doesn't interfere with system OpenSSL library detection. I'm going to go ahead and close this issue. Please feel free to open a new issue if you still run into any problems!

@aqrln aqrln closed this as completed Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/client Issue for team Client. topic: engine topic: openssl topic: prisma-client
Projects
None yet
Development

No branches or pull requests

5 participants