Starting to follow the phoenix beta book is taking me a bit further than expected…
When running “mix local.hex” I get the following error:
ps@x301:~> export MIX_DEBUG=1; mix local.hex
** Running mix loadconfig
** Running mix local.hex
09:59:18.151 [info] ['TLS', 32, 'client', 58, 32, 73, 110, 32, 115, 116, 97, 116, 101, 32, 'hello', 32, 'received SERVER ALERT: Fatal - Handshake Failure', 10]
09:59:18.208 [info] ['TLS', 32, 'client', 58, 32, 73, 110, 32, 115, 116, 97, 116, 101, 32, 'hello', 32, 'received SERVER ALERT: Fatal - Handshake Failure', 10]
** (Mix.Error) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet6, [:inet6], {:tls_alert, 'handshake failure'}}, {:inet, [:inet], {:tls_alert, 'handshake failure'}}]}
Could not install Hex because Mix could not download metadata at http://repo.hex.pm/installs/hex-1.x.csv.
(mix) lib/mix.ex:323: Mix.raise/1
(mix) lib/mix/local.ex:126: Mix.Local.find_matching_versions_from_signed_csv!/2
(mix) lib/mix/tasks/local.hex.ex:56: Mix.Tasks.Local.Hex.run_install/1
(mix) lib/mix/task.ex:316: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
This is on opensuse tumbleweed.
ps@x301:~> elixir --version
Erlang/OTP 21 [erts-10.1.3] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]
Elixir 1.7.4 (compiled with Erlang/OTP 21)
Information for package erlang:
Repository : Erlang
Name : erlang
Version : 21.1.4-1.2
Arch : x86_64
Vendor : obs://build.opensuse.org/devel:languages:erlang
Following in iex gives me the same error. I would like to play more with this but can’t figure out how to give ssl options and the likes.
:inets.start
:ssl.start
:httpc.request ‘https://repo.hex.pm’
Anybody any idea what is wrong here or how I can troubleshoot further?
thanks!