b3k

b3k

Unable to fetch anything from repo.hex.pm using mix

Hi,

I’m unable to fetch anything from Hex using mix commands like deps.update --all or local.rebar or local.hex.

I was trying in 2 different machines using 2 different ISP. There is no special firewalls or network traffic rules.

MIX_DEBUG=1 mix local.hex 
** Running mix loadconfig
** Running mix local.hex
** (Mix.Error) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet6, [:inet6], :exbadport}, {:inet, [:inet], :exbadport}]}

Could not install Hex because Mix could not download metadata at https://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

Interesting is fact that Im able to fetch https://repo.hex.pm/installs/hex-1.x.csv using curl or wget.

curl -v https://repo.hex.pm/installs/rebar-1.x.csv

> GET /installs/rebar-1.x.csv HTTP/1.1
> User-Agent: curl/7.37.0
> Host: repo.hex.pm
> Accept: */*
> 
< HTTP/1.1 200 OK
< x-amz-id-2: vk8k7xdwkwLtPazsR66r21IYVcE6xJRJw5iBWCkwSyHA23wF075MYnD7xhWODXqd1/jq4oZWCE8=
< x-amz-request-id: 685B5A63315298EA
< x-amz-replication-status: COMPLETED
< Last-Modified: Tue, 28 Jun 2016 23:59:12 GMT
< ETag: "a5e57ed81098cf777bc319d6118eff50"
< Cache-Control: public, max-age=604800
< x-amz-meta-surrogate-key: installs
< x-amz-version-id: _0bG9Pxir6pB8zBlmt_v1mDuB_StPz9A
< Content-Type: text/csv
* Server AmazonS3 is not blacklisted
< Server: AmazonS3
< Content-Length: 282
< Accept-Ranges: bytes
< Date: Mon, 11 Feb 2019 20:20:47 GMT
< Via: 1.1 varnish
< Age: 512838
< Connection: keep-alive
< X-Served-By: cache-iad2136-IAD, cache-ams21020-AMS
< X-Cache: HIT, HIT
< X-Cache-Hits: 1, 4
< X-Timer: S1549916448.747493,VS0,VE0
< 
2.6.2,ff1c5ddfce1fcfd73fd65b8bfc0ff1c13aefc2e98921d528cbc1f35e86c9caa1c9c4e848b9ce6404d9a81c50cfcf0e45dd0dddb23cd42708664c41fce6618900,1.0.0
2.6.2,ff1c5ddfce1fcfd73fd65b8bfc0ff1c13aefc2e98921d528cbc1f35e86c9caa1c9c4e848b9ce6404d9a81c50cfcf0e45dd0dddb23cd42708664c41fce6618900,1.0.0
* Connection #0 to host repo.hex.pm left intact

Versions dump:

elixir --version
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Elixir 1.7.4 (compiled with Erlang/OTP 21)

mix --version
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Mix 1.7.4 (compiled with Erlang/OTP 21)

Most Liked

Eiji

Eiji

Just one thing to note. Following:

You should try to call: curl -g -6 -v https://repo.hex.pm/installs/rebar-1.x.csv as your original command is using IPv4 by default and mix is trying to use IPv6 .

Where Next?

Popular in Questions Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
gonzofish
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New

Other popular topics Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
beno
I will often find my self writing things similar to: case some_value do nil -&gt; something() "" -&gt; something() _ -&gt; someth...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement