haskell / haskell/cabal

cabal update weirdness behind multilevel proxy

Open
#3,403 3 comments 0 reactions 0 assignees View on GitHub
cabal-install: other old-milestone: cabal-install 2.0 type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

In a McDonalds, cabal update failed the first time with "cabal: Codec.Compression.Zlib: premature end of compressed stream", but the second time it said "Local and remote files match" despite only having downloaded a prefix of the 00-index.tar.gz and not being able to install any packages.

https://tmp.kitenet.net/cabal/ has the files download and a cabal -v3 log and curl -v log.

```
joeyh: so you've got two additional proxies compared to me
a varnish one and a localhost squid one
the first proxy is our CDN, and you've got two others you're behind
for a total of 3
neither of those proxies are on my machine, it's the network here I suppose
I got a good update using a VPN
hmm, and they only speak HTTP 1.0
so my response here is HTTP 1.1
but yours is HTTP 1.0
```

Also got the codec error on download of some packages from hackage. This left the cached and corrupt package tarballs in .cabal and prevented cabal install from installing them even after I got to a good network.

cabal-install version 1.22.6.0
using version 1.22.5.0 of the Cabal library

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.