简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM