user1002430
user1002430

Reputation:

haskell-stack getting TlsExceptionHostPort error

Been running stack/ghc inside Debian 8.2 via vagrant for a while. This morning:

$  stack setup
Run from outside a project, using implicit global project config
Using resolver: lts-4.2 from implicit global project's config file: /home/vagrant/.stack/global-project/stack.yaml
Downloading lts-4.2 build plan ...TlsExceptionHostPort (HandshakeFailed (Error_Protocol ("certificate has expired",True,CertificateExpired))) "raw.githubusercontent.com" 443

$  stack --version
Version 1.0.2, Git revision fa09a980d8bb3df88b2a9193cd9bf84cc6c419b3 (3084 commits) x86_64

The same error remains even if I delete ~/.stack. Did I mess something up?

Upvotes: 1

Views: 254

Answers (1)

Tan
Tan

Reputation: 241

You might want to try running stack -v setup to be able to see which files are being downloaded. Then identify which file(s) cannot be downloaded due to this TlsExceptionHostPort - hopefully there won't be too many of them - and run:

curl -0 https://raw.githubusercontent.com/path_to_your_file > your_file

Once your blocking file(s) have been downloaded, re-run stack setup.

This might not be a clean approach, but it worked for me.

Upvotes: 1

Related Questions