[Hackage] #562: cabal-install update fails going through a HTTP
proxy (but not consistently)
Hackage
trac at galois.com
Tue Jun 9 10:17:30 EDT 2009
#562: cabal-install update fails going through a HTTP proxy (but not
consistently)
----------------------------+-----------------------------------------------
Reporter: acid2 | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Cabal library | Version: 1.6.0.1
Severity: normal | Keywords:
Difficulty: unknown | Ghcversion:
Platform: |
----------------------------+-----------------------------------------------
I have installed Cabal, cabal-install and HTTP all from source on my Arch
Linux machine, which has GHC 6.10.3 installed. When running {{{cabal
update}}} this will occasionally work, but most often fails with the
error:
{{{cabal: user error (Codec.Compression.Zlib: premature end of compressed
stream)}}}
In this case, inspecting
~/.cabal/packages/hackage.haskell.org/00-index.tar.gz shows a file size
that varies around 1-15K, rather than the expected ~900K.
Attached are logs of `cabal-update` failing, and working:
{{{
Downloading the latest package list from hackage.haskell.org
Sending:
GET http://hackage.haskell.org/packages/archive/00-index.tar.gz HTTP/1.1
User-Agent: cabal-install/0.6.2
Host: hackage.haskell.org
proxy uri host: wwwcache.lancs.ac.uk, port: :8080
Creating new connection to wwwcache.lancs.ac.uk:8080
Received:
HTTP/1.0 200 OK
Date: Tue, 09 Jun 2009 13:50:46 GMT
Server: Apache/2.2.3 (Debian)
Last-Modified: Tue, 09 Jun 2009 09:53:44 GMT
ETag: "3890c4-f8d7c-55909a00"
Accept-Ranges: bytes
Content-Length: 1019260
Content-Type: application/x-tar
Content-Encoding: x-gzip
Age: 854
X-Cache: HIT from wwwcache.lancs.ac.uk
X-Cache-Lookup: HIT from wwwcache.lancs.ac.uk:8080
X-Cache: MISS from wwwcache.lancs.ac.uk
X-Cache-Lookup: MISS from wwwcache.lancs.ac.uk:8080
Via: 1.0 wwwcache3.lancs.ac.uk:8080 (squid/2.6.STABLE22), 1.0
wwwcache1.lancs.ac.uk:8080 (squid/2.7.STABLE4)
Connection: close
Downloaded to
/home/ollie/.cabal/packages/hackage.haskell.org/00-index.tar.gz
}}}
{{{
Downloading the latest package list from hackage.haskell.org
Sending:
GET http://hackage.haskell.org/packages/archive/00-index.tar.gz HTTP/1.1
User-Agent: cabal-install/0.6.2
Host: hackage.haskell.org
proxy uri host: wwwcache.lancs.ac.uk, port: :8080
Creating new connection to wwwcache.lancs.ac.uk:8080
Received:
HTTP/1.0 200 OK
Date: Tue, 09 Jun 2009 13:50:46 GMT
Server: Apache/2.2.3 (Debian)
Last-Modified: Tue, 09 Jun 2009 09:53:44 GMT
ETag: "3890c4-f8d7c-55909a00"
Accept-Ranges: bytes
Content-Length: 1019260
Content-Type: application/x-tar
Content-Encoding: x-gzip
Age: 875
X-Cache: HIT from wwwcache.lancs.ac.uk
X-Cache-Lookup: HIT from wwwcache.lancs.ac.uk:8080
Via: 1.0 wwwcache3.lancs.ac.uk:8080 (squid/2.6.STABLE22)
Proxy-Connection: close
Downloaded to
/home/ollie/.cabal/packages/hackage.haskell.org/00-index.tar.gz
Reading available packages...
}}}
I was also asked to try running wget in verbose mode, this is the output:
{{{
--2009-06-09 16:17:00--
http://hackage.haskell.org/packages/archive/00-index.tar.gz
Resolving wwwcache.lancs.ac.uk... 194.80.32.11, 194.80.32.8, 194.80.32.9,
...
Connecting to wwwcache.lancs.ac.uk|194.80.32.11|:8080... connected.
Proxy request sent, awaiting response...
HTTP/1.0 200 OK
Date: Tue, 09 Jun 2009 13:50:46 GMT
Server: Apache/2.2.3 (Debian)
Last-Modified: Tue, 09 Jun 2009 09:53:44 GMT
ETag: "3890c4-f8d7c-55909a00"
Accept-Ranges: bytes
Content-Length: 1019260
Content-Type: application/x-tar
Content-Encoding: x-gzip
Age: 1558
X-Cache: HIT from wwwcache.lancs.ac.uk
X-Cache-Lookup: HIT from wwwcache.lancs.ac.uk:8080
Via: 1.0 wwwcache3.lancs.ac.uk:8080 (squid/2.6.STABLE22)
Proxy-Connection: close
Length: 1019260 (995K) [application/x-tar]
Saving to: `00-index.tar.gz.2'
100%[===================================================================================================>]
1,019,260 --.-K/s in 0.09s
2009-06-09 16:17:00 (11.1 MB/s) - `00-index.tar.gz.2' saved
[1019260/1019260]
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/562>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list