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

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
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
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
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
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
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
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