commercialhaskell / commercialhaskell/stack
[MacOS] "Connection Timeout" when attempting to use any stack command on a fresh install
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
### General summary/comments (optional)
There seems to be an issue with setting up stack. I followed the official doc's and installed Stack by using `curl -sSL https://get.haskellstack.org/ | sh\n` any stack commands tries to connect to GitHub which timeouts.
The same problem occurred through the installation with homebrew.
The following issue #5063 is very similar to mine and I tried their solutions like adding the DNS A records to my hostfile and adding Google's DNS Server which didn't helped to solve it.
System Specs:
2020 Macbook Pro with MacOS Monterey Version 12.3.1
Shell: zsh 5.8 (x86_64-apple-darwin21.0)
`stack --version
Version 2.9.1, Git revision 409d56031b4240221d656db09b2ba476fe6bb5b1 x86_64 hpack-0.35.0`
### Steps to reproduce
For example:
1. Clean install of Stack curl -sSL https://get.haskellstack.org/ | sh\n
2. Run command `stack new blatt01`.
3. Run any other stack command eg. `stack build` or `stack exec blatt01`
4. Add DNS A records to my hostfile from this solution stated in this issue #5063
5. Run any other stack command eg. `stack build` or `stack exec blatt01` -> same problem
6. Add Google's DNS Server -> same problem

##
### Expected
Commands don't fail through the connection timeout
### Actual
~~~text
Writing implicit global project config file to: /Users/simonuni/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-19.30
Exception while reading snapshot from https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/30.yaml:
HttpExceptionRequest Request {
host = "raw.githubusercontent.com"
port = 443
secure = True
requestHeaders = [("User-Agent","Haskell pantry package")]
path = "/commercialhaskell/stackage-snapshots/master/lts/19/30.yaml"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
proxySecureMode = ProxySecureWithConnect
}
ConnectionTimeout
~~~
### Stack version
~~~text
stack --version
Version 2.9.1, Git revision 409d56031b4240221d656db09b2ba476fe6bb5b1 x86_64 hpack-0.35.0
~~~
### Method of installation
* Official binary, downloaded via haskellstack.org or from Stack's repository
* Installation through homebrew
* Installation through ghcup
Contributor guide
Assessment
This issue has not been assessed yet.