dalerka

dalerka

Environment:

MX-Linux 19
Debian GNU/Linux 10 (buster)
Elixir 1.12.0 (compiled with Erlang/OTP 24)

Problem:

Recently upgraded to the latest Elixir and tried to upgrade to the latest version of Phoenix generator with:
mix archive.install hex phx_new 1.5.9

and I keep getting these errors (full log):

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

18:30:11.084 [error] Task #PID<0.162.0> started from :hex_fetcher terminating
** (UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private
    (ssl 10.4) :ssl.cipher_suites(:openssl)
    (hex 0.20.6) lib/hex/http/ssl.ex:124: Hex.HTTP.SSL.filter_ciphers/1
    (hex 0.20.6) lib/hex/http/ssl.ex:66: Hex.HTTP.SSL.ssl_opts/1
    (hex 0.20.6) lib/hex/http.ex:41: Hex.HTTP.build_http_opts/2
    (hex 0.20.6) lib/hex/http.ex:16: Hex.HTTP.request/5
    (hex 0.20.6) lib/hex/registry/server.ex:306: anonymous fn/3 in Hex.Registry.Server.prefetch_online/2
    (elixir 1.12.0) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.12.0) lib/task/supervised.ex:35: Task.Supervised.reply/5
Function: #Function<17.79564921/0 in Hex.Registry.Server.prefetch_online/2>
    Args: []
** (exit) exited in: GenServer.call(Hex.Registry.Server, {:versions, "hexpm", "phx_new"}, 60000)
    ** (EXIT) time out
    (elixir 1.12.0) lib/gen_server.ex:1024: GenServer.call/3
    (hex 0.20.6) lib/hex/remote_converger.ex:182: Hex.RemoteConverger.verify_package_req/4
    (elixir 1.12.0) lib/enum.ex:930: Enum."-each/2-lists^foreach/1-0-"/2
    (hex 0.20.6) lib/hex/remote_converger.ex:172: Hex.RemoteConverger.verify_input/2
    (hex 0.20.6) lib/hex/remote_converger.ex:42: Hex.RemoteConverger.converge/2
    (mix 1.12.0) lib/mix/dep/converger.ex:95: Mix.Dep.Converger.all/4
    (mix 1.12.0) lib/mix/dep/converger.ex:51: Mix.Dep.Converger.converge/4
    (mix 1.12.0) lib/mix/dep/fetcher.ex:16: Mix.Dep.Fetcher.all/3

Same error happens when trying to mix deps.update --all inside a Phoenix project.
How can I debug/fix this issue?

Showing Posts 1 to 5

dalerka

dalerka OP

Sorry for buzz. This issue is solved by running:
mix local.hex

Just leaving here for posterity.

36
Post #1
DevWasi

DevWasi

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

11:17:40.989 [error] Task #PID<0.176.0> started from :hex_fetcher terminating
** (UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private
    (ssl 10.4) :ssl.cipher_suites(:openssl)
    (hex 0.20.6) lib/hex/http/ssl.ex:124: Hex.HTTP.SSL.filter_ciphers/1
    (hex 0.20.6) lib/hex/http/ssl.ex:66: Hex.HTTP.SSL.ssl_opts/1
    (hex 0.20.6) lib/hex/http.ex:41: Hex.HTTP.build_http_opts/2
    (hex 0.20.6) lib/hex/http.ex:16: Hex.HTTP.request/5
    (hex 0.20.6) lib/hex/registry/server.ex:306: anonymous fn/3 in Hex.Registry.Server.prefetch_online/2
    (elixir 1.12.0) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.12.0) lib/task/supervised.ex:35: Task.Supervised.reply/5
Function: #Function<17.79564921/0 in Hex.Registry.Server.prefetch_online/2>
    Args: []

11:17:40.990 [error] Task #PID<0.182.0> started from :hex_fetcher terminating
** (UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private
    (ssl 10.4) :ssl.cipher_suites(:openssl)
    (hex 0.20.6) lib/hex/http/ssl.ex:124: Hex.HTTP.SSL.filter_ciphers/1
    (hex 0.20.6) lib/hex/http/ssl.ex:66: Hex.HTTP.SSL.ssl_opts/1
    (hex 0.20.6) lib/hex/http.ex:41: Hex.HTTP.build_http_opts/2
    (hex 0.20.6) lib/hex/http.ex:16: Hex.HTTP.request/5
    (hex 0.20.6) lib/hex/registry/server.ex:306: anonymous fn/3 in Hex.Registry.Server.prefetch_online/2
    (elixir 1.12.0) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.12.0) lib/task/supervised.ex:35: Task.Supervised.reply/5
Function: #Function<17.79564921/0 in Hex.Registry.Server.prefetch_online/2>
    Args: []

11:17:40.990 [error] Task #PID<0.181.0> started from :hex_fetcher terminating
** (UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private
    (ssl 10.4) :ssl.cipher_suites(:openssl)
    (hex 0.20.6) lib/hex/http/ssl.ex:124: Hex.HTTP.SSL.filter_ciphers/1
    (hex 0.20.6) lib/hex/http/ssl.ex:66: Hex.HTTP.SSL.ssl_opts/1
    (hex 0.20.6) lib/hex/http.ex:41: Hex.HTTP.build_http_opts/2
    (hex 0.20.6) lib/hex/http.ex:16: Hex.HTTP.request/5
    (hex 0.20.6) lib/hex/registry/server.ex:306: anonymous fn/3 in Hex.Registry.Server.prefetch_online/2
    (elixir 1.12.0) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.12.0) lib/task/supervised.ex:35: Task.Supervised.reply/5
Function: #Function<17.79564921/0 in Hex.Registry.Server.prefetch_online/2>
    Args: []

i was getting this when i was running the mix deps.get.
The error occurred when i installed openSSL after installing TOR.

dbytecoderc

dbytecoderc

Thank you! saved me a lot of time

TomHale

TomHale

The /0 and /1 versions were deprecated in OTP 21. Work-around here:

n1ghtc4t

n1ghtc4t

thx!! save me too.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews