Build failure of master branch

14 views
Skip to first unread message

Marko Kocić

unread,
Jun 9, 2022, 11:51:10 AMJun 9
to hledger
Not sure if it's only me, but I can't build master branch anymore. I get the following error when invoking stack install.

marko@myhost ~/s/c/hledger (master)> stack install
Exception while reading snapshot from https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/6/9.yaml:
HttpExceptionRequest Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","Haskell pantry package")]
  path                 = "/commercialhaskell/stackage-snapshots/master/nightly/2022/6/9.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}

Not sure why build process can't download https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/6/9.yaml, because I can fetch it with wget without any issues from the same host.

Does anyone has the same issue?

Cheers,
Marko

Simon Michael

unread,
Jun 10, 2022, 1:42:06 AMJun 10
to hle...@googlegroups.com
Hi Marko, working any better today ? Temporary service outage ? Tried `stack update` ?


On Jun 9, 2022, at 16:51, Marko Kocić <ma...@euptera.com> wrote:


--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/6cfda8cd-8eec-44ee-b41d-f3717a2c876an%40googlegroups.com.

Marko Kocić

unread,
Jun 10, 2022, 4:31:22 AMJun 10
to hledger
Hi Simon,

it doesn't work since a few days. My last build is maybe a few months old. I tried "stack update" and "stack upgrade", but it didn't help.
Strange thing is that I can access that url from this system, but stack command gets stuck.

Cheers,
Marko

Marko Kocić

unread,
Jun 21, 2022, 4:46:22 AMJun 21
to hledger
To answer to myself as a reference if someone else also has similar issues.

Build issue seems to be related to the issues in Haskell networking library, that is used by stack build tool. Although downloading files work correctly using wget and curl, stack was not able to use DNS to resolve the IP addresses of some hosts used during the build.

Putting the following in my /etc/hosts solved the build problem for me on that box, and I was able to build hledger again.

185.199.110.133 raw.githubusercontent.com
151.101.245.175 downloads.haskell.org

Why it started happening suddenly, and why it was working before is a mystery, but it looks like Haskell still has a way to go.

Cheers,
Marko

Simon Michael

unread,
Jun 21, 2022, 5:32:43 AMJun 21
to hle...@googlegroups.com
Sounds like a stack/stackage issue. stack is less actively maintained lately. Perhaps it's in the stack issue tracker ?

Marko Kocić

unread,
Jun 21, 2022, 6:54:45 AMJun 21
to hledger
Yes, there's a related stack issue filed here https://github.com/commercialhaskell/stack/issues/5063
According to the last comment, the issue is not the stack itself, but networking package used by stack.

I also found various hints on the web where people needed to change their DNS config to use some other DNS server, since Haskell is having some issues with hostname resolution.

Cheers,
Marko

Simon Michael

unread,
Jun 21, 2022, 7:03:27 AMJun 21
to hle...@googlegroups.com
Interesting info - thanks.
Reply all
Reply to author
Forward
0 new messages