Error in installing Hex

171 views
Skip to first unread message

bcs

unread,
Jul 9, 2015, 5:32:21 AM7/9/15
to phoeni...@googlegroups.com
Hi
     Beginner here.

      (1)  When installing Hex i am getting the error:

** (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], :etimedout}]}

It says "etimedout". Is this because i am behind a proxy?

(2) How do you upgrade phoenix framework from v0.10 to v0.14? Can you upgrade straight away?

(3) How do you uninstall phoneix framework?

Am using Window 7 prof (64bit)

thanks

Steve Domin

unread,
Jul 9, 2015, 9:23:11 AM7/9/15
to phoeni...@googlegroups.com, scy...@gmail.com
Hi,

1) That seems very likely. Do you have the HTTP_PROXY and HTTPS_PROXY environment variables setup?

2) Edit your mix file to bump the version of Phoenix (0.14.0 is the latest one) and run `mix deps.get` in your project directory. For each new version of Phoenix you can find an upgrade procedure in the changelog. In order to upgrade from v0.10 to v0.14 you'll have to follow the instructions for v0.11, v0.12, v0.13, v0.14

You may also want to upgrade the Phoenix task for mix, you can do so by running the following command: 


3) In order to uninstall this Phoenix task for mix, you can run

mix archive.uninstall phoenix_new-0.14.0.ez

The version number will change depending on the version you have currently installed.

scy...@gmail.com

unread,
Jul 10, 2015, 2:59:28 AM7/10/15
to phoeni...@googlegroups.com, scy...@gmail.com
Thanks Steve for the reply. Most of what u mentioned is new to me. Sorry if my question looks trivial to you.

(1)In fact i do have both the env variables on my PC set up as http/https:<ip>:<port>. But dont know how it is configured in the proxy. 
Bu what modification should be made in the proxy server?

(2) do you mean mix.exs file found in the phoenix installation directory?  If so, i should then change
def project do                                
    [app: :phoenix,
     version: "0.11.0-dev",   to   version: "0.14.0-dev"   . Am i correct?

   Then cd to my  project directory and run `mix deps.get` ?

 What is this  Phoenix "task" ? Is it the Phoenix framework?
   From which folder should i run the command to  upgrade the Phoenix task for mix?

(3) So then running    mix archive.uninstall phoenix_new-0.14.0.ez   means uninstalling Phoenix framework?

Thanks Steve, Once again.

Norbert Melzer

unread,
Jul 10, 2015, 4:27:51 AM7/10/15
to phoeni...@googlegroups.com

Do I understand you correct? Does "both the env variables on my PC set up as http/https:<ip>:<port>." mean, that the protocol is part of the env variables value? That can't work. Anyway, please make sure that other cli tools with web-access are working. Your package manager, wget, lynx, anything like that.


--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/b8b3039d-4c3d-4425-8435-5a2149f57213%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


scy...@gmail.com

unread,
Jul 10, 2015, 5:25:04 AM7/10/15
to phoeni...@googlegroups.com
Thanks Norbert.
 I have set the system var  http_proxy as http://<ip>:<port> and https_proxy as https://<ip>:<port> .  but even without them, i was not able to install Hex.
Prob is with proxy server for sure. But would like to know what modification need to be done there.

Norbert Melzer

unread,
Jul 10, 2015, 6:48:45 AM7/10/15
to phoeni...@googlegroups.com

Have you also tried if apt, wget, lynx or some other command line utility speaking HTTP is working?

Before you blame your proxy you should try this. If they work it's probably not proxys fault.


Steve Domin

unread,
Jul 10, 2015, 2:51:17 PM7/10/15
to phoeni...@googlegroups.com
I'll try to do my best to reply to 2) and 3)

If you want to create a new Elixir project, you run the following command:

$ mix new my_project

That create a barebone Elixir project without any dependencies. The "new" in that command refers to a Mix task. You can find the source code for this task here.

If you want to create a new Phoenix project, you have to fetch on your computer the Phoenix mix archive, that contains the phoenix.new task (source code)

The procedure for installing Phoenix is described here. You also need to go that page if you want to upgrade the version of the Phoenix archive.

With this task installed you never need to fetch the phoenix repo on your computer (unless you want to contribute)

When you're running "mix archive.uninstall phoenix_new-0.14.0.ez" you are deleting the archive from your computer, which means you can no longer run the "mix phoenix.new" command.

Does that make more sense?

scy...@gmail.com

unread,
Jul 14, 2015, 4:47:39 AM7/14/15
to phoeni...@googlegroups.com
Thanks Steve. Trying to make sense of what you said.

Regarding the connectivity issue , I am still getting timeout even with HTTP and HTTPS set up. As Norbert above asked , I am  able to run wget from command prompt without any issue. But i was able to install Hex in my laptop at home(no proxy there)

scy...@gmail.com

unread,
Jul 14, 2015, 5:04:24 AM7/14/15
to phoeni...@googlegroups.com
Yes. wget is working.  Now where could the fault be?

Johnny Winn

unread,
Jul 14, 2015, 7:35:13 AM7/14/15
to phoeni...@googlegroups.com
Update hex with 'mix local.hex'. There was an issue with hex that was fix yesterday AM 


Thanks,

Johnny


Reply all
Reply to author
Forward
Message has been deleted
0 new messages