Skip to content

mix local.hexfails with TLS 1.3. middlebox error #14356

@kenny-evitt

Description

@kenny-evitt

Elixir and Erlang/OTP versions

Erlang/OTP 27 [erts-15.2.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

Elixir 1.18.2 (compiled with Erlang/OTP 27)

Operating system

Ubuntu 16.04.2 LTS

Current behavior

I'm setting up a new CI/CD server for this project and the shell command in the CI/CD pipeline that's failing is:

time mix local.hex --force --if-missing

From the log for that command:

$ time mix local.hex --force --if-missing
...
** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {~c"builds.hex.pm", 443}}, {:inet, [:inet], {:tls_alert, {:unexpected_message, ~c"TLS client: In state hello_retry_middlebox_assert at ssl_gen_statem.erl:781 generated CLIENT ALERT: Fatal - Unexpected Message\n {unexpected_msg,\n     {internal,\n         {server_hello,\n             {3,3},\n             <<4,116,235,26,246,203,137,210,46,130,57,151,...>>,\n             <<86,181,141,85,247,100,159,84,31,29,125,...>>,\n             <<19,1>>,\n             \#{server_hello_selected_version =>\n                   {server_hello_selected_version,{3,4}},\n               pre_shared_key => undefined,\n               key_share =>\n                   {key_share_server_hello,\n                       {key_share_entry,secp384r1,<<4,201,167,...>>}}}}}}"}}}]}
Could not install Hex because Mix could not download metadata at https://builds.hex.pm/installs/hex-1.x.csv.
Alternatively, you can compile and install Hex directly with this command:
    $ mix archive.install github hexpm/hex branch latest

The server isn't behind a proxy and I was able to download the file https://builds.hex.pm/installs/hex-1.x.csv on the server using curl.

What seem to be relevant issues for Erlang/OTP:

Expected behavior

mix local.hex should successfully install Hex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions