LoginSignup
0
0

[備忘][Docker][Prisma]デプロイ時にOpenSSLをインストールするエラー

Posted at

fly.ioへのprismaアプリのデプロイ時にエラー発生

fly.ioの当該アプリを開き、コンソールを除くと下記のように書いていた。

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 via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.
Error: Schema engine error:

読むとapt-get update -y && apt-get install -y opensslウィ実行してOpenSSLをインストールしろと書いている。

しかし、Dockerfileにはすでにopensslのインストールコマンドを書いている。

RUN apt-get update -y && apt-get install -y openssl

しかし、さらにエラーをよく読んでみると...

prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".

つまり、すでにopensslの1系がインストール済みだけど、そのバージョンじゃ期待通り動かない、と言っている。

で、上記のエラー内容でググるとOpenSSLのver3が必要らしい。

つまり、すでにDockerfileで使用していたイメージにOpenSSLが入っているから、さらにapt-get install -y opensslしても意味がなかったのだと判明。

なので、3にアップグレードすべく

RUN apt-get upgrade openssl -y

を実行することで、問題解決した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0