Windows installer behind a proxy

368 views
Skip to first unread message

Serguei Cambour

unread,
Aug 6, 2015, 10:54:38 AM8/6/15
to elixir-lang-talk
I can't pass the 'Connection' step when trying to install Elixir with Windows installer because of a proxy. All other stuff (Ruby, Java, Maven etc.) work just fine.

Environnement variable HTTP_PROXY is set.

Any idea how to proceed ?

Thank you.

Onorio Catenacci

unread,
Aug 7, 2015, 8:30:42 AM8/7/15
to elixir-lang-talk
I'm not sure about the Elixir for Windows Installer but I think the Chocolatey NuGet package should work regardless of proxy.


--
Onorio

Serguei Cambour

unread,
Aug 7, 2015, 8:32:47 AM8/7/15
to elixir-l...@googlegroups.com
Than you for the reply, I'll take a look at that.

Regards

--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-talk/KNztWQkRZtE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/2d721052-fc18-4909-a95a-daeb125adbb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Onorio Catenacci

unread,
Aug 7, 2015, 9:10:33 AM8/7/15
to elixir-lang-talk
I'm pretty sure the developer who created the Elixir Windows Installer still actively maintains it too so he may have more insight on what's going on with this as well.  

Serguei Cambour

unread,
Aug 11, 2015, 7:36:35 AM8/11/15
to elixir-lang-talk
I tried to run Chocolatey installation script and it failed for the same reason (proxy authentication):

C:\Users\XXX>@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https:/
chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
Exception lors de l'appel de « DownloadString » avec « 1 » argument(s) : « Le serveur distant a retourné une erreur : (407) Authe
ntification proxy requise. »
Au niveau de ligne : 1 Caractère : 47
+ iex ((new-object net.webclient).DownloadString <<<< ('https://chocolatey.org/install.ps1'))
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException


 

Onorio Catenacci

unread,
Aug 11, 2015, 8:01:25 AM8/11/15
to elixir-lang-talk
You are authenticating with the proxy before you're trying this aren't you?  A 407 is "Proxy Authentication Required".  http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Just because you've got the HTTP_PROXY environment variable set doesn't mean you've authenticated with the proxy.  Likewise, since I don't know how your Ruby, Java, Maven etc. are configured I can't tell if they're configured to send the proxy authentication automatically or not.  But if I were you, I'd be trying to find out how to authenticate to the proxy server.

--
Onorio

Serguei Cambour

unread,
Aug 11, 2015, 8:23:03 AM8/11/15
to elixir-l...@googlegroups.com
I defined HTTP_PROXY and HTTPS_PROXY variables as follows:

http://my_user_nam:my_password@my_proxy:my_port

For Maven, I set the same in settings.xml file.
For Ruby, I created .gemrc file with the same values.

I tried to modify Chocolate install.ps1 file as explained here, still got the error:


C:\Users\XXXX\Documents\soft>installChocolatey.cmd
Downloading https://chocolatey.org/api/v2/package/chocolatey/ to C:\Temp\chocolatey\chocInstall\chocolatey.zip
Exception lors de l'appel de « DownloadFile » avec « 2 » argument(s) : « Le serveur distant a retourné une erreur : (407) Authent
ification proxy requise. »
Au niveau de C:\Users\XXXX\Documents\soft\install.ps1 : 40 Caractère : 27
+   $downloader.DownloadFile <<<< ($url, $file)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Download 7Zip commandline tool
Downloading https://chocolatey.org/7za.exe to C:\Temp\chocolatey\chocInstall\7za.exe
Exception lors de l'appel de « DownloadFile » avec « 2 » argument(s) : « Le serveur distant a retourné une erreur : (407) Authent
ification proxy requise. »
Au niveau de C:\Users\XXX\Documents\soft\install.ps1 : 40 Caractère : 27
+   $downloader.DownloadFile <<<< ($url, $file)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Extracting C:\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Temp\chocolatey\chocInstall...
Start-Process : Impossible d'exécuter cette commande en raison de l'erreur : Le fichier spécifié est introuvable.
Au niveau de C:\Users\XXXX\Documents\soft\install.ps1 : 69 Caractère : 14
+ Start-Process <<<<  "$7zaExe" -ArgumentList "x -o`"$tempDir`" -y `"$file`"" -Wait -NoNewWindow
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Installing chocolatey on this machine
Le terme « C:\Temp\chocolatey\chocInstall\tools\chocolateyInstall.ps1 » n'est pas reconnu comme nom d'applet de commande, fonctio
n, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chem
in d'accès est correct et réessayez.
Au niveau de C:\Users\XXXXX\Documents\soft\install.ps1 : 80 Caractère : 2
+ & <<<<  $chocInstallPS1
    + CategoryInfo          : ObjectNotFound: (C:\Temp\chocola...ateyInstall.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Ensuring chocolatey commands are on the path

--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-talk/KNztWQkRZtE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-ta...@googlegroups.com.

Onorio Catenacci

unread,
Aug 11, 2015, 9:25:07 AM8/11/15
to elixir-lang-talk
On Tuesday, August 11, 2015 at 8:23:03 AM UTC-4, Javix wrote:
I defined HTTP_PROXY and HTTPS_PROXY variables as follows:

http://my_user_nam:my_password@my_proxy:my_port

For Maven, I set the same in settings.xml file.
For Ruby, I created .gemrc file with the same values.

I tried to modify Chocolate install.ps1 file as explained here, still got the error:


You'll note on that page you linked (about configuring Chocolatey NuGet with a proxy server) there's this: THIS MAY BE OUTDATED.  In fact I'm almost certain that it is out of date because a lot has changed with CNG in the past couple of months.

Either way, I don't think this is an issue with either Chocolatey or the Elixir Windows installer.  I think it's something with your proxy configuration.  If I were you, I'd look for either detail on configuring NuGet with a proxy server or detail on using an Inno Setup installation with a proxy.  I suggest checking on NuGet because chances are whatever you need to do for NuGet will work with Chocolatey and you're much more likely to find an answer for NuGet. 

Either way, I think you're more likely to get the assistance you need by checking on those sources than by asking here.  I'm pretty sure anyone here would be glad to help but I think it's more of an issue with how you need to configure either CNG or Inno Setup to deal with a proxy.  

--
Onorio


 

Serguei Cambour

unread,
Aug 11, 2015, 9:26:43 AM8/11/15
to elixir-l...@googlegroups.com
OK, got it, thank you.



 

--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-talk/KNztWQkRZtE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-ta...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages