3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

mix deps.get で ssl.cipher_suites/1 is undefined or private とエラーが出たときの対処

Last updated at Posted at 2021-07-21

はじめに

先ほど起こったエラーです

解決方法は elixir forum にありました

実行環境

Elixir 1.9.2 (compiled with Erlang/OTP 23)

エラー内容

表題の通り、サーバーで mix deps.get を実行すると、 以下のようなエラーが返ってきました

$ mix deps.get

18:45:07.804 [error] Task #PID<0.160.0> started from Hex.UpdateChecker terminating
** (UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private
    (ssl) :ssl.cipher_suites(:openssl)
    (hex) lib/hex/http/ssl.ex:124: Hex.HTTP.SSL.filter_ciphers/1
    (hex) lib/hex/http/ssl.ex:66: Hex.HTTP.SSL.ssl_opts/1
    (hex) lib/hex/http.ex:41: Hex.HTTP.build_http_opts/2
    (hex) lib/hex/http.ex:16: Hex.HTTP.request/5
    (hex) lib/hex/update_checker.ex:31: anonymous fn/0 in Hex.UpdateChecker.handle_cast/2
    (elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir) lib/task/supervised.ex:35: Task.Supervised.reply/5
Function: #Function<0.121230294/0 in Hex.UpdateChecker.handle_cast/2>
    Args: []

対処

以下のコマンドで Hex を更新するとこでエラーが解消しました

mix local.hex

まとめ

ビルド用環境はこまめに更新しましょう

3
0
2

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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?