Skip to content

Instantly share code, notes, and snippets.

@wsmoak
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsmoak/79882c4e41d7ac4bfd19 to your computer and use it in GitHub Desktop.
Save wsmoak/79882c4e41d7ac4bfd19 to your computer and use it in GitHub Desktop.
mix troubleshooting
Following http://www.phoenixframework.org/v0.14.0/docs/installation
I've run into this:
$ mix local.hex
** (Mix) Could not access url https://s3.amazonaws.com/s3.hex.pm/installs/list.csv, error: {:failed_connect, [{:to_address, {'s3.amazonaws.com', 443}}, {:inet, [:inet], :eperm}]}
$ curl https://s3.amazonaws.com/s3.hex.pm/installs/list.csv
0.0.1,0.13.0-dev
0.1.0,0.13.1-dev
0.1.1,0.13.1-dev
0.1.2,0.13.1-dev
0.2.0,0.13.2-dev
0.2.1,0.13.2
0.2.2,0.13.2
0.2.3,0.13.2
0.2.4,0.13.3
0.2.5,0.14.1-dev
0.3.0,0.14.2-dev
0.3.1,0.14.2-dev
0.3.2,0.14.2
0.3.3,0.14.3
0.4.0,0.15.0-dev
0.4.1,0.15.0
0.4.2,0.15.0
0.4.3,1.0.0-rc1
0.5.0,1.0.0
0.6.0,1.0.0
0.6.1,1.0.0
0.6.2,1.0.0
0.7.0,1.0.0
0.7.1,1.0.0
0.7.2,1.0.0
0.7.3,1.0.0
0.7.4,1.0.0
0.7.5,1.0.0
0.8.0,1.0.0
I found these, but I am not behind a proxy.
* https://github.com/elixir-lang/elixir/issues/3075
* https://github.com/hexpm/hex/issues/86
* https://groups.google.com/forum/#!msg/phoenix-talk/dLOiTKxZLzE/135XGUV33v0J
$ elixir -v
(takes ~30 seconds to respond)
Elixir 1.0.4
ericmj: you can work around it by doing 'mix archive.install https://s3.amazonaws.com/s3.hex.pm/installs/1.0.0/hex.ez --shell'
$ mix archive.install https://s3.amazonaws.com/s3.hex.pm/installs/1.0.0/hex.ez --shell
Are you sure you want to install archive https://s3.amazonaws.com/s3.hex.pm/installs/1.0.0/hex.ez? [Yn] Y
wget: /Users/wsmoak/.netrc:4: unknown token "protocol"
wget: /Users/wsmoak/.netrc:4: unknown token "https"
** (Mix) Could not fetch data, please download manually from "https://s3.amazonaws.com/s3.hex.pm/installs/1.0.0/hex.ez" and copy it to "/Users/wsmoak/.mix/archives/hex.ez"
$ wget https://s3.amazonaws.com/s3.hex.pm/installs/1.0.0/hex.ez
--2015-07-01 10:00:41-- https://s3.amazonaws.com/s3.hex.pm/installs/1.0.0/hex.ez
wget: /Users/wsmoak/.netrc:4: unknown token "protocol"
wget: /Users/wsmoak/.netrc:4: unknown token "https"
Resolving s3.amazonaws.com... 54.231.10.160
Connecting to s3.amazonaws.com|54.231.10.160|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 262010 (256K) [binary/octet-stream]
Saving to: 'hex.ez'
hex.ez 100%[=====================>] 255.87K 443KB/s in 0.6s
2015-07-01 10:00:42 (443 KB/s) - 'hex.ez' saved [262010/262010]
$ cp hex.ez /Users/wsmoak/.mix/archives/hex.ez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment