Hi, I’m trying to use stack new
to set up a project with a template yesodweb/minimal
. I’m using the stack version: Version 3.1.1 x86_64.
When I run stack new testing-minimal yesodweb/minimal
, I get the following messages:
Downloading template yesodweb/minimal to create project testing-minimal in directory testing-minimal/...
Downloaded /HOME/.stack/templates/yesodweb/minimal.hsfiles.
Looking for Cabal or package.yaml files to use to initialise Stack's project-level YAML configuration file.
Using the Cabal packages:
* testing-minimal/
After hanging for a bit, I get the following error message:
Error: [S-8332]
Stack failed to create project-level YAML configuration, as it was unable to download the index of available snapshots.
This sometimes happens because Certificate Authorities are missing on your system. You can try the Stack command again or manually create the configuration file. For
help about the content of Stack's YAML configuration files, see (for the most recent release of Stack) http://docs.haskellstack.org/en/stable/yaml_configuration/.
While downloading the snapshot index, Stack encountered the following error:
HttpExceptionRequest Request {
host = "stackage-haddock.haskell.org"
port = 443
secure = True
requestHeaders = [("Accept","application/json"),("User-Agent","The Haskell Stack")]
path = "/snapshots.json"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
proxySecureMode = ProxySecureWithConnect
}
ConnectionTimeout
Following advice from the configuration files page for stack, I have the following lines in my .stack/config.yaml
file:
urls:
latest-snapshot: https://stackage-haddock.haskell.org/snapshots.json
But that has not fixed the problem. Does anyone have any ideas what might be behind this problem?