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

Failed to download http://objects-us-west-1.dream.io/hackage-mirror/01-index.tar.gz : No Status Code could be parsed from response: An exception occurred during a WebClient request. #24

Open
jrciii opened this issue Nov 5, 2017 · 12 comments

Comments

@jrciii
Copy link

jrciii commented Nov 5, 2017

>etlas update
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.typelead.com
Updating binary package index.
dieVerbatim: user error (etlas: Failed to download
http://objects-us-west-1.dream.io/hackage-mirror/01-index.tar.gz : No Status
Code could be parsed from response: An exception occurred during a WebClient
request.
)
@rahulmutt
Copy link
Member

Can you share the output of etlas update -v3?

@jrciii
Copy link
Author

jrciii commented Nov 6, 2017

>etlas update -v3
no user package environment file found at C:\Users\broseph\etlas
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.typelead.com
Searching for curl in path.
Cannot find curl on the path
Searching for powershell in path.
Found powershell at C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Searching for wget in path.
Cannot find wget on the path
Selected http transport implementation: powershell
Searching for git in path.
Found git at C:\Program Files\Git\cmd\git.exe
"C:\Program Files\Git\cmd\git.exe" "--version"
C:\Program Files\Git\cmd\git.exe is version 2.12.1
"C:\Program Files\Git\cmd\git.exe" "-C" "C:\Users\broseph\AppData\Roaming\etlas\packages\etlas.typelead.com" "pull"
Already up-to-date.
Updating binary package index.
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Selected mirror http://hackage.haskell.org/
Downloading timestamp
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\index
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\binaries\x86_64-windows
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloading snapshot
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages\index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Updating index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages\base-index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Exception dieVerbatim: user error (?callStack, called at
.\Distribution\Compat\Stack.hs:45:13 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Compat.Stack
callStack, called at .\Distribution\Simple\Utils.hs:591:44 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withCallStackPrefix, called at .\Distribution\Simple\Utils.hs:628:7 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withMetadata, called at .\Distribution\Simple\Utils.hs:353:15 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
die', called at .\Distribution\Client\HttpUtils.hs:747:5 in
etlas_LIjQO2kvCNMDoofv8ZTAFu:Distribution.Client.HttpUtils

etlas: Failed to download http://hackage.haskell.org/01-index.tar.gz : No
Status Code could be parsed from response: An exception occurred during a
WebClient request.
) when using mirror http://hackage.haskell.org/
Selected mirror http://hackage.fpcomplete.com/
Downloading timestamp
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloading snapshot
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
[eta-0.0.6b6] Unable to download binary index file -
https://6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/eta-0.0.6.6/binaries/x86_64-windows/index
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\binaries\x86_64-windows
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Updating index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages\index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Exception dieVerbatim: user error (?callStack, called at
.\Distribution\Compat\Stack.hs:45:13 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Compat.Stack
callStack, called at .\Distribution\Simple\Utils.hs:591:44 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withCallStackPrefix, called at .\Distribution\Simple\Utils.hs:628:7 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withMetadata, called at .\Distribution\Simple\Utils.hs:353:15 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
die', called at .\Distribution\Client\HttpUtils.hs:747:5 in
etlas_LIjQO2kvCNMDoofv8ZTAFu:Distribution.Client.HttpUtils

etlas: Failed to download http://hackage.fpcomplete.com/01-index.tar.gz : No
Status Code could be parsed from response: An exception occurred during a
WebClient request.
) when using mirror http://hackage.fpcomplete.com/
Selected mirror http://objects-us-west-1.dream.io/hackage-mirror/
Downloading timestamp
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages\base-index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloading snapshot
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\binaries\x86_64-windows\index
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\binaries\x86_64-windows
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\packages\index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Updating index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
dieVerbatim: user error (?callStack, called at .\Distribution\Compat\Stack.hs:45:13 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Compat.Stack
  callStack, called at .\Distribution\Simple\Utils.hs:591:44 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
  withCallStackPrefix, called at .\Distribution\Simple\Utils.hs:628:7 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
  withMetadata, called at .\Distribution\Simple\Utils.hs:353:15 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
  die', called at .\Distribution\Client\HttpUtils.hs:747:5 in etlas_LIjQO2kvCNMDoofv8ZTAFu:Distribution.Client.HttpUtils

etlas: Failed to download
http://objects-us-west-1.dream.io/hackage-mirror/01-index.tar.gz : No Status
Code could be parsed from response: An exception occurred during a WebClient
request.
)

@jrciii
Copy link
Author

jrciii commented Nov 6, 2017

I installed curl and I was able to update and then select latest.

@rahulmutt
Copy link
Member

@jrcii Someone else has reproduced the error above. The fix was to install curl right?

@jrciii
Copy link
Author

jrciii commented Jan 26, 2018 via email

@jcolivo
Copy link

jcolivo commented Jan 26, 2018

Yes, I can confirm that curl needs to be installed.

I have curl installed via the Windows package manager Chocolatey. I had trouble installing Chocolatey via the regular command prompt, but was successful in doing so via the PowerShell (Admin). I then proceeded to install curl, and etlas update was successful without any errors. I just realized that I ran etlas update in PowerShell after installing curl instead of the regular command prompt like I did earlier today. In other words, curl does not run under the regular command prompt when installed via Chocolatey, which was installed in PowerShell; so with my current curl setup, I have to run etlas update and etlas select latest within the PowerShell. The following is the output from PowerShell:


PS C:\Users\jcoli> etlas update
Downloading the latest package lists from:

  • hackage.haskell.org
  • etlas.typelead.com
    Updating binary package index.
    To revert to previous state run:
    etlas update --index-state='2018-01-26T15:38:36Z'
    Updating the eta-hackage patch set.
    PS C:\Users\jcoli> etlas select latest
    Selected eta-0.7.0b1.

With this said, etlas does work within the regular command prompt.

I am new to Windows 10. The last time I was a Windows Power User was in the days of Windows XP, so it seems I have a bit to learn. I hope this helps others who would be in the same situation as me.

Thank you for your patience!

@rahulmutt
Copy link
Member

@jcolivo Thanks for the detailed instructions! I'm sure this will be helpful for future Windows users. I'll keep this open until we find a good place to put this information in the docs.

@jneira
Copy link
Collaborator

jneira commented Feb 5, 2019

As workaround you can use etlas update --http-transport=powershell or set the value in the global etlas config (see https://www.haskell.org/cabal/users-guide/nix-local-build.html#cfg-field-http-transport fot other options)

@rahulmutt
Copy link
Member

rahulmutt commented Feb 5, 2019

@jneira Perhaps we should default to powershell on Windows?

@jneira
Copy link
Collaborator

jneira commented Feb 5, 2019

In fact, i am trying to test my own advise and i am not able to pass --http-transport to any command 🤔
However it works if you set it in the global etlas config.

@jneira Perhaps we should default to powershell on Windows?

Only real old old windows systems does not have powershell (maybe some versions of xp?) but not sure if we can assume all users will have it (or will able to use it?)

@jneira
Copy link
Collaborator

jneira commented Feb 5, 2019

If plain-http would support https it will be the best option...

@rahulmutt
Copy link
Member

@jneira I've been long wanting to replace the dependency on curl with http-conduit or something. This will also allow us to give better diagnostic information on the progress of downloads instead of the ominous, static ....

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

No branches or pull requests

4 participants