[Hackage] #562: cabal-install update fails going through a HTTP proxy (but not consistently)

Hackage trac at galois.com
Wed Jun 10 11:18:03 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         |   Resolution:         
  Keywords:                 |   Difficulty:  unknown
Ghcversion:                 |     Platform:         
----------------------------+-----------------------------------------------
Comment (by rjohnson):

 I have (what seems to be) the same or a similar problem. This is using the
 2009.2.0.1 Haskell Platform installer on XP. In my case however, it
 doesn't seem to be related to a proxy server, as I'm not using one.
 Here is cabal's output:

 {{{
 cabal -v3 update
 Downloading the latest package list from hackage.haskell.org
 Sending:
 GET /packages/archive/00-index.tar.gz HTTP/1.1
 Host: hackage.haskell.org
 User-Agent: cabal-install/0.6.2
 Creating new connection to hackage.haskell.org
 Received:
 HTTP/1.0 200 OK
 Date: Wed, 10 Jun 2009 15:06:07 GMT
 Server: Apache/2.2.3 (Debian)
 Last-Modified: Wed, 10 Jun 2009 10:48:16 GMT
 ETag: "3890c6-f9187-366ebc00"
 Accept-Ranges: bytes
 Content-Length: 1020295
 Content-Type: application/x-tar
 Content-Encoding: x-gzip
 X-Cache: MISS from mds-swf1.mds.aw.loc
 Via: 1.0 mds-swf1.mds.aw.loc:8080 (http_scan/4.0.2.6.19)
 Connection: close
 Downloaded to C:\Documents and Settings\Rjohnson\Application
 Data\cabal\packages\hackage.haskell.org\00-index.tar.gz
 cabal.exe: user error (Codec.Compression.Zlib: premature end of compressed
 stream)

 }}}

 and here is wget's output:

 {{{
 wget -dv http://hackage.haskell.org/packages/archive/00-index.tar.gz
 Setting --verbose (verbose) to 1
 DEBUG output created by Wget 1.11.4 on cygwin.

 --2009-06-10 11:04:50--
 http://hackage.haskell.org/packages/archive/00-index.tar.gz
 Resolving hackage.haskell.org... 69.30.63.197
 Caching hackage.haskell.org => 69.30.63.197
 Connecting to hackage.haskell.org|69.30.63.197|:80... connected.
 Created socket 3.
 Releasing 0x00693ed8 (new refcount 1).

 ---request begin---
 GET /packages/archive/00-index.tar.gz HTTP/1.0
 User-Agent: Wget/1.11.4
 Accept: */*
 Host: hackage.haskell.org
 Connection: Keep-Alive

 ---request end---
 HTTP request sent, awaiting response...
 ---response begin---
 HTTP/1.0 200 OK
 Date: Wed, 10 Jun 2009 15:04:51 GMT
 Server: Apache/2.2.3 (Debian)
 Last-Modified: Wed, 10 Jun 2009 10:48:16 GMT
 ETag: "3890c6-f9187-366ebc00"
 Accept-Ranges: bytes
 Content-Length: 1020295
 Content-Type: application/x-tar
 Content-Encoding: x-gzip
 X-Cache: MISS from mds-swf1.mds.aw.loc
 Via: 1.0 mds-swf1.mds.aw.loc:8080 (http_scan/4.0.2.6.19)
 Connection: keep-alive

 ---response end---
 200 OK
 Registered socket 3 for persistent reuse.
 Length: 1020295 (996K) [application/x-tar]
 Saving to: `00-index.tar.gz.1'

 100%[======================================>] 1,020,295    144K/s   in
 7.4s

 2009-06-10 11:04:58 (135 KB/s) - `00-index.tar.gz.1' saved
 [1020295/1020295]

 }}}

 Note that wget also has the "X-Cache: MISS", but it doesn't appear to
 affect the download.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/562#comment:4>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list