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

The Docker container starts with an error #3115

Closed
boerge30 opened this issue Dec 13, 2024 · 11 comments
Closed

The Docker container starts with an error #3115

boerge30 opened this issue Dec 13, 2024 · 11 comments
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@boerge30
Copy link

Describe the Bug

The Docker container (Umami + PostgreSQL)starts with an error ...

Database

PostgreSQL

Relevant log output

Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.22
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.22
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.22
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
yarn run v1.22.22
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.22
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.22
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
✗ Unable to connect to the database: Unable to require(`/app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.prisma/client/libquery_engine-linux-musl.so.node)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Which Umami version are you using? (if relevant)

v2.15.0

Which browser are you using? (if relevant)

Safari, Chrome

How are you deploying your application? (if relevant)

No response

@boerge30
Copy link
Author

Back to v2.14.0 ... everything works correctly

@itexto
Copy link

itexto commented Dec 13, 2024

Same problem here. Went back to v2.14.0

@cirrusflyer
Copy link

Same. I'm on a RPI. So Arm.

@mikecao
Copy link
Collaborator

mikecao commented Dec 13, 2024

We had an issue with the docker build so we rebuilt the v2.15.0 image. Can you try repulling it?

@itexto
Copy link

itexto commented Dec 13, 2024 via email

@boerge30
Copy link
Author

We had an issue with the docker build so we rebuilt the v2.15.0 image. Can you try repulling it?

Now it works with v2.15.0 (amd64).

@michaelyork
Copy link

I'm seeing this error when building v2.15.0 on amd64:

Prisma Client could not locate the Query Engine for runtime "linux-musl-openssl-3.0.x"

@diogomartino
Copy link

diogomartino commented Dec 14, 2024

Same, just updated to v2.15.0:

2024-12-14T00:11:40.327369583Z $ node scripts/check-db.js
2024-12-14T00:11:40.530038299Z ✓ DATABASE_URL is defined.
2024-12-14T00:11:40.561361506Z ✗ Unable to connect to the database: Prisma Client could not locate the Query Engine for runtime "linux-musl-openssl-3.0.x".
2024-12-14T00:11:40.561413454Z
2024-12-14T00:11:40.561439648Z This happened because Prisma Client was generated for "linux-musl", but the actual deployment required "linux-musl-openssl-3.0.x".
2024-12-14T00:11:40.561446917Z Add "linux-musl-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:
2024-12-14T00:11:40.561454431Z
2024-12-14T00:11:40.561460547Z generator client {
2024-12-14T00:11:40.561466819Z provider = "prisma-client-js"
2024-12-14T00:11:40.561473040Z binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
2024-12-14T00:11:40.561479555Z }
2024-12-14T00:11:40.561485430Z
2024-12-14T00:11:40.561491308Z The following locations have been searched:
2024-12-14T00:11:40.561497424Z /app/node_modules/.prisma/client
2024-12-14T00:11:40.561503467Z /app/node_modules/@prisma/client
2024-12-14T00:11:40.561509544Z /tmp/prisma-engines
2024-12-14T00:11:40.561515576Z /app/prisma
2024-12-14T00:11:40.590859866Z error Command failed with exit code 1.
2024-12-14T00:11:40.590946267Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-12-14T00:11:40.619525040Z ERROR: "check-db" exited with 1.
2024-12-14T00:11:40.645388640Z error Command failed with exit code 1.
2024-12-14T00:11:40.645468569Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Using umami:mysql-v2.15.0 running on docker 24.0.7.

@thueske
Copy link
Contributor

thueske commented Dec 14, 2024

app-1  | yarn run v1.22.22
app-1  | $ npm-run-all check-db update-tracker start-server
app-1  | $ node scripts/check-db.js
app-1  | ✓ DATABASE_URL is defined.
app-1  | ✗ Unable to connect to the database: Prisma Client could not locate the Query Engine for runtime "linux-musl-arm64-openssl-3.0.x".
app-1  |
app-1  | This happened because Prisma Client was generated for "linux-musl-arm64-openssl-1.1.x", but the actual deployment required "linux-musl-arm64-openssl-3.0.x".
app-1  | Add "linux-musl-arm64-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:
app-1  |
app-1  | generator client {
app-1  |   provider      = "prisma-client-js"
app-1  |   binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
app-1  | }
app-1  |
app-1  | The following locations have been searched:
app-1  |   /app/node_modules/.prisma/client
app-1  |   /app/node_modules/@prisma/client
app-1  |   /tmp/prisma-engines
app-1  |   /app/prisma
app-1  | error Command failed with exit code 1.
app-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
app-1  | ERROR: "check-db" exited with 1.
app-1  | error Command failed with exit code 1.
app-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
app-1  | yarn run v1.22.22
app-1  | $ npm-run-all check-db update-tracker start-server
app-1  | $ node scripts/check-db.js
app-1  | ✓ DATABASE_URL is defined.
app-1  | ✗ Unable to connect to the database: Prisma Client could not locate the Query Engine for runtime "linux-musl-arm64-openssl-3.0.x".
app-1  |
app-1  | This happened because Prisma Client was generated for "linux-musl-arm64-openssl-1.1.x", but the actual deployment required "linux-musl-arm64-openssl-3.0.x".
app-1  | Add "linux-musl-arm64-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:
app-1  |
app-1  | generator client {
app-1  |   provider      = "prisma-client-js"
app-1  |   binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
app-1  | }
app-1  |
app-1  | The following locations have been searched:
app-1  |   /app/node_modules/.prisma/client
app-1  |   /app/node_modules/@prisma/client
app-1  |   /tmp/prisma-engines
app-1  |   /app/prisma
app-1  | error Command failed with exit code 1.
app-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
app-1  | ERROR: "check-db" exited with 1.
app-1  | error Command failed with exit code 1.
app-1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@olonsoft
Copy link

After updating to 2.15 umami does not start. Went back to 2.14

umami  | yarn run v1.22.22
umami  | $ npm-run-all check-db update-tracker start-server
umami  | $ node scripts/check-db.js
umami  | ✓ DATABASE_URL is defined.
umami  | ✗ Unable to connect to the database: Prisma Client could not locate the Query Engine for runtime "linux-musl-arm64-openssl-3.0.x".
umami  |
umami  | This happened because Prisma Client was generated for "linux-musl-arm64-openssl-1.1.x", but the actual deployment required "linux-musl-arm64-openssl-3.0.x".
umami  | Add "linux-musl-arm64-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:
umami  |
umami  | generator client {
umami  |   provider      = "prisma-client-js"
umami  |   binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
umami  | }
umami  |
umami  | The following locations have been searched:
umami  |   /app/node_modules/.prisma/client
umami  |   /app/node_modules/@prisma/client
umami  |   /tmp/prisma-engines
umami  |   /app/prisma
umami  | error Command failed with exit code 1.
umami  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
umami  | ERROR: "check-db" exited with 1.
umami  | error Command failed with exit code 1.
umami  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
umami exited with code 0

@mikecao mikecao added bug Something isn't working fixed in dev Fixed in the dev branch labels Dec 15, 2024
@mikecao
Copy link
Collaborator

mikecao commented Dec 15, 2024

Should be fixed in v2.15.1.

@mikecao mikecao closed this as completed Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

8 participants