[issue1797] hg clone aborts premature EOF reading chunk

Mirko Friedenhagen mercurial-bugs at selenic.com
Fri Aug 14 20:44:17 UTC 2009


New submission from Mirko Friedenhagen <mirko-lists at friedenhagen.de>:

I try to clone http://friedenhagen.net/hg.cgi/jmemcached/ (same is available 
as http://friedenhagen.net:8000/jmemcached/). If trying to clone from the 
first address I always get a traceback:
[mirko at borg tmp]$ hg --traceback clone 
http://friedenhagen.net/hg.cgi/jmemcached/
destination directory: jmemcached
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
Traceback (most recent call last):
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/dispatch.py", line 43, in _runcatch
    return _dispatch(ui, args)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/dispatch.py", line 449, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/dispatch.py", line 317, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/dispatch.py", line 501, in _runcommand
    return checkargs()
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/dispatch.py", line 454, in checkargs
    return cmdfunc()
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/dispatch.py", line 448, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/util.py", line 402, in check
    return func(*args, **kwargs)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/commands.py", line 636, in clone
    update=not opts.get('noupdate'))
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/hg.py", line 286, in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/localrepo.py", line 2177, in clone
    return self.pull(remote, heads)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/localrepo.py", line 1466, in pull
    return self.addchangegroup(cg, 'pull', remote.url())
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/hgext/bookmarks.py", line 284, in addchangegroup
    source, srctype, url, emptyok)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/localrepo.py", line 2067, in addchangegroup
    if fl.addgroup(chunkiter, revmap, trp) is None:
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/revlog.py", line 1210, in addgroup
    for chunk in revs:
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/changegroup.py", line 30, in chunkiter
    c = getchunk(source)
  File "/Users/mirko/Library/Python/2.5/site-packages/mercurial-1.3.1-py2.5-
macosx-10.5-i386.egg/mercurial/changegroup.py", line 24, in getchunk
    % (len(d), l - 4))
Abort: premature EOF reading chunk (got 2441 bytes, expected 4017)
abort: premature EOF reading chunk (got 2441 bytes, expected 4017)

The version is 1.3.1 both on the server and the client. Cloning from port 
8000 works.

----------
messages: 10333
nosy: mfriedenhagen
priority: bug
status: unread
title: hg clone aborts premature EOF reading chunk

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1797>
____________________________________________________



More information about the Mercurial-devel mailing list