Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(server-jre8) Installation behind proxy #20

Open
tobias-kuendig opened this issue Aug 3, 2017 · 0 comments
Open

(server-jre8) Installation behind proxy #20

tobias-kuendig opened this issue Aug 3, 2017 · 0 comments

Comments

@tobias-kuendig
Copy link
Contributor

Expected Behaviour

I am trying to install elasticsearch on a system that sits behind a proxy. This fails to install it's dependecy server-jre8. So I tried to install that first manually via

choco install server-jre8 -y  --proxy="'<REMOVED>:8080'"

This is the output:

Chocolatey v0.10.7
Installing the following packages:
server-jre8
By installing you accept licenses for the packages.
Progress: Downloading server-jre8 8.0.131.20170420... 100%

server-jre8 v8.0.131.20170420 [Approved]
server-jre8 package files install completed. Performing other installation steps.
ERROR: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
The install of server-jre8 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\server-jre8\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - server-jre8 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\server-jre8\tools\chocolateyInstall.ps1'
.
 See log for details.

You can find the log file here: https://pastebin.com/xtdSgwH1

It looks like the download of the package is sucessfull (proxy settings are corectly loaded) but the chocolateyInstall.ps1 script that downloads the actual software completely ignores the proxy settings.

Expected Behaviour

Since I provide a --proxy flag to the command I expect the chocolateyInstall.ps1 script to use these proxy settings as well. If I omit the --proxy flag chocolatey correctly uses my global system settings but the install script fails nonetheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant