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
Support OpenSSL 3.0 for Alpine Linux #16553
Comments
Running into the same issue here. Our gitlab-ci started failing because the docker:latest base image got updated to Alpine 3.17. |
Yes, errors are beginning to appear 😅 |
I probably need to swap out Tags from: https://hub.docker.com/_/docker/tags?page=1&name=alpine3.16 (Note: Our gitlab runners are Docker based, hence Docker in Docker image) Edit: For us |
Workaround, install apk add openssl1.1-compat |
Running into this as well! |
We're hitting this as well. The official docker node image just bumped all their alpine images to Alpine v3.17 a few hours ago, which bundles OpenSSL 3.0 instead of 1.1 |
Same issue here. This broke our CI today and took some time to track down. Now that the Alpine version of the official docker node image uses Alpine v3.17 (as of today) I think a lot of people are going to start running into this issue. |
Just ran into this as well. |
What I feared... 😅 |
Same here, some extra information for context:
|
Hit the same problem also today |
Use |
Use |
This unfortunately didn't help, prisma performed migrations but threw error on attempt to call |
Did you get the same error as in the original post when running |
@screamcha also, which database are you using? |
By adding prisma:
|
Update: as of Hey everyone, Alberto from Prisma here. Prisma currently needs OpenSSL 1.1.x being installed as a system library on Linux Alpine. You currently have two alternatives:
We're also working on a solution on our side to provide native compatibility with OpenSSL 3, which will close this issue altogether. We thank you for your patience. About the original error listed at the top of this issue:
Here is a minimal # Dockerfile for running Prisma on Linux Alpine 3.17+
# change with the Node.js version of your choice
ARG NODE_VERSION="18.12.1"
# change with the Linux Alpine version of your choice
ARG ALPINE_VERSION="3.17"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS base
# install OpenSSL 1.1.x, needed for Linux Alpine 3.17+
RUN apk update \
&& apk add openssl1.1-compat
ENV DATABASE_URL ""
WORKDIR /app
# install your project dependencies
COPY package.json ./
RUN npm i
# copy your project files and Prisma schema
COPY . ./
RUN npx prisma version Notes:
|
Support for OpenSSL 3 in Alpine Linux for x86_64 will be released today (CET) in Prisma 4.8.0. Please let us know if you still run into any issues with 4.8.0! |
https://github.com/prisma/prisma/releases/tag/4.8.0 is published on npm Let us know if it solves your problems, if you still have a problem after upgrading, please create a new issue, we'll be interested to check that! |
it worked perfectly for me, |
Do you generate the client on a different system before deploying it on Alpine? |
@aqrln does that mean we can omit the openssl step like this in dockerfile now? # Dockerfile for running Prisma on Linux Alpine 3.17+
# change with the Node.js version of your choice
ARG NODE_VERSION="18.12.1"
# change with the Linux Alpine version of your choice
ARG ALPINE_VERSION="3.17"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS base
ENV DATABASE_URL ""
WORKDIR /app
# install your project dependencies
COPY package.json ./
RUN npm i
# copy your project files and Prisma schema
COPY . ./
RUN npx prisma version |
@capaj yes |
@EyadAlghamdi could you please open a new issue posting your Prisma schema, describing the steps you took to run Prisma on your system, and why the |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Unfortunately still running in the same issu. I tried many node versions. I also tried
|
Hey @devdrqgon, you're seeing that error because you're trying to run Prisma on Linux Alpine running on the You can still run Prisma by asking Docker to handle the architecture emulation for you, by running this command on your
Please refer to this comment for additional context. |
- Updated icons, index.html, and manifest to prepare for TWA - Implemented Docker fix to get around prisma issue prisma/prisma#16553 - Added logs to hopefully detect issue with log in
Workaround for openssl since prisma version < 4.8.0: prisma/prisma#16553
Workaround for openssl since prisma version < 4.8.0: prisma/prisma#16553
Workaround for openssl since prisma version < 4.8.0: prisma/prisma#16553
- Updated icons, index.html, and manifest to prepare for TWA - Implemented Docker fix to get around prisma issue prisma/prisma#16553 - Added logs to hopefully detect issue with log in
OpenSSL 3.0
is currently the defaultOpenSSL
version inAlpine Linux 3.17
(see CHANGELOG).For
Alpine Linux
,Prisma
only supportsOpenSSL 1.X
at this time.As a result, the following error is generated:
Suggested solution
Add
OpenSSL 3.0
support toAlpine Linux
Workaround
Install
openssl1.1-compat
:Note that this is only a temporary fix until the
Prisma
team adds support for OpenSSL 3.0.The text was updated successfully, but these errors were encountered: