[pydotorg-www] Connectivity/network problems?

Antoine Pitrou solipsis at pitrou.net
Tue Feb 1 14:51:46 CET 2011


On Tue, 01 Feb 2011 01:31:39 +0100
"Martin v. Löwis" <martin at v.loewis.de> wrote:
> >>> 213.41.240.54 - - [30/Jan/2011:17:05:45 +0100] "GET
> >>> /hg/branches/release2.7-maint/?cmd=changegroup&roots=0000000000000000000000000000000000000000
> >>> HTTP/1.1" 200 5149626 "-" "mercurial/proto-1.0"
> >>>
> >>> (this is not UTC, but DLT - Dinsdale Local Time ;-))
> >>
> >> So what was the problem? Looks like a successful request to me.
> > 
> > No, the transfer size should have been much larger. The hg clone ended
> > up corrupted. A later attempt got the correct full transfer:
> > 
> > 213.41.240.54 - - [30/Jan/2011:17:10:15 +0100]
> > "GET /hg/branches/release2.7-maint/?cmd=changegroup&roots=0000000000000000000000000000000000000000
> > HTTP/1.1" 200 77229968 "-" "mercurial/proto-1.0"
> 
> Ah. Could this be a request timeout? How long does the cloning take?
> There is a global apache timeout of 300s; not sure whether that's
> relevant.

I don't think so. The cloning just failed again, much quicker:

$ time hg clone http://code.python.org/hg/branches/release2.7-maint/
destination directory: release2.7-maint
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abandon : premature EOF reading chunk (got 2517 bytes, expected 5105)
Command exited with non-zero status 255
19.66user 1.01system 0:46.80elapsed 44%CPU (0avgtext+0avgdata
203504maxresident)k 3648inputs+79040outputs

$ LANG=C date
Tue Feb  1 14:38:42 CET 2011


Actually, I've just managed to reproduce it from dinsdale itself:

$ time hg clone http://code.python.org/hg/branches/release2.7-maint/
destination directory: release2.7-maint
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) [GCC 4.3.2]
** Mercurial Distributed SCM (version 1.7.3)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 590, in _dispatch
    cmdpats, cmdoptions)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 641, in _runcommand
    return checkargs()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 595, in checkargs
    return cmdfunc()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 588, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/var/lib/python-support/python2.5/mercurial/util.py", line 426, in check
    return func(*args, **kwargs)
  File "/var/lib/python-support/python2.5/mercurial/commands.py", line 736, in clone
    branch=opts.get('branch'))
  File "/var/lib/python-support/python2.5/mercurial/hg.py", line 337, in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
  File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 1886, in clone
    return self.pull(remote, heads)
  File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 1295, in pull
    return self.addchangegroup(cg, 'pull', remote.url(), lock=lock)
  File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 1739, in addchangegroup
    if fl.addgroup(source, revmap, trp) is None:
  File "/var/lib/python-support/python2.5/mercurial/revlog.py", line 1381, in addgroup
    p1, p2, (chainrev, delta), ifh, dfh)
  File "/var/lib/python-support/python2.5/mercurial/revlog.py", line 1220, in _addrevision
    cachedelta[1])
mpatch.mpatchError: patch cannot be decoded

real	1m15.848s
user	0m52.479s
sys	0m2.120s

svn2hg at dinsdale:~/t$ LANG=C date
Tue Feb  1 14:45:10 CET 2011


Cloning locally (without network access) succeeds:

$ time hg clone --pull /data/home/svn2hg/cpython/public_27-full/
destination directory: public_27-full
requesting all changes
adding changesets
adding manifests
adding file changes
added 45831 changesets with 99150 changes to 8586 files
updating to branch release27-maint
4218 files updated, 0 files merged, 0 files removed, 0 files unresolved

real	1m31.074s
user	1m26.053s
sys	0m3.260s


Regards

Antoine.




More information about the pydotorg-www mailing list