bzr: ERROR: curl connection error (Connection timed out)

Bug #57747 reported by Bob Tanner
4
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Vincent Ladeuil

Bug Description

cygwin
cygwin python 2.4.3
bzr 0.9.0dev0 revision 1890

Getting connection time outs under bzr and cygwin. And only this combination.
Using ActiveState's python I do not get these time outs (same repo).
Using linux I do not get these time outs.

Seems specific to cygwin.

bzr: ERROR: curl connection error (Connection timed out) on http://bazaar-ng.org/bzr/bzr.dev/.bzr/repository/knits/[randomly different]/XXXX.kndx

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to <email address hidden>

looking for plugins in /home/tanner/projects/bzr.dev/bzrlib/plugins
add plugin name launchpad
Plugin name __init__ already loaded
Plugin name __init__ already loaded
load plugin (None, '/home/tanner/projects/bzr.dev/bzrlib/plugins/launchpad', ('', '', 5))
registered plugin command register-branch
loaded succesfully
looking for plugins in /home/tanner/.bazaar/plugins
encoding stdout as sys.stdout encoding 'US-ASCII'
converting os path '.' => url file:///home/tanner/projects/bzr.dev
opening working tree u'/home/tanner/projects/bzr.dev'
got branch format Bazaar-NG Metadir branch format 5
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
trying to open 'http://bazaar-ng.org/bzr/bzr.dev/' with transport <bzrlib.transport.http._pycurl.PyCurlTransport url=http://bazaar-ng.org/bzr/bzr.dev/>
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
using pycurl libcurl/7.15.4 OpenSSL/0.9.8b zlib/1.2.3
got branch format Bazaar-NG Metadir branch format 5
cache hit for revision-history in BzrBranch5('file:///home/tanner/projects/bzr.dev/')
cache hit for revision-history in BzrBranch5('file:///home/tanner/projects/bzr.dev/')
Using fetch logic to copy between KnitRepository('http://bazaar-ng.org/bzr/bzr.dev/.bzr/')(<bzrlib.repository.RepositoryFormatKnit1 object at 0x18ffb02c>) and KnitRepository('file:///home/tanner/projects/bzr.dev/.bzr/')(<bzrlib.repository.RepositoryFormatKnit1 object at 0x18ffb02c>)
fetch up to rev {<email address hidden>}
readv coalesced 500 reads.
readv coalesced 500 reads.
readv coalesced 84 reads.
readv coalesced 5 reads.
readv coalesced 1 reads.
readv coalesced 1 reads.
readv coalesced 17 reads.
readv coalesced 1 reads.
readv coalesced 1 reads.
readv coalesced 2 reads.
readv coalesced 4 reads.
readv coalesced 1 reads.
readv coalesced 1 reads.
readv coalesced 3 reads.
readv coalesced 3 reads.
readv coalesced 1 reads.
readv coalesced 3 reads.
readv coalesced 2 reads.
readv coalesced 3 reads.
readv coalesced 8 reads.
readv coalesced 3 reads.
readv coalesced 1 reads.
readv coalesced 2 reads.
readv coalesced 14 reads.
readv coalesced 1 reads.
readv coalesced 1 reads.
readv coalesced 5 reads.
readv coalesced 5 reads.
readv coalesced 4 reads.
readv coalesced 2 reads.
readv coalesced 5 reads.
readv coalesced 3 reads.
readv coalesced 1 reads.
readv coalesced 1 reads.
readv coalesced 1 reads.
readv coalesced 5 reads.
readv coalesced 1 reads.
readv coalesced 15 reads.
return code 3

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to <email address hidden>

converting os path '/home/tanner/projects/bzr.dev' => url file:///home/tanner/projects/bzr.dev
trying to open '/home/tanner/projects/bzr.dev' with transport <bzrlib.transport.local.LocalTransport url=file:///home/tanner/projects/bzr.dev/>
got branch format Bazaar-NG Metadir branch format 5
return code 0

Related branches

Revision history for this message
John A Meinel (jameinel) wrote :

It would seem to be more of a bug in the specific version of pycurl that you have installed, rather than a bug in bzr.

Can you try the same action with:

bzr command http+urllib://url

And see if urllib under cygwin is having the same problem?

Also, I believe bazaar-vcs.org was down for a couple of hours last night due to hardware failure. So make sure the problem still exists.

Revision history for this message
Bob Tanner (tanner) wrote :
Download full text (7.3 KiB)

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to <email address hidden>

looking for plugins in /home/tanner/projects/bzr.dev/bzrlib/plugins
add plugin name launchpad
Plugin name __init__ already loaded
Plugin name __init__ already loaded
load plugin (None, '/home/tanner/projects/bzr.dev/bzrlib/plugins/launchpad', ('', '', 5))
registered plugin command register-branch
loaded succesfully
looking for plugins in /home/tanner/.bazaar/plugins
encoding stdout as sys.stdout encoding 'US-ASCII'
opening working tree '/home/tanner/projects/bzr.dev'
got branch format Bazaar-NG Metadir branch format 5
got branch format Bazaar-NG Metadir branch format 5
Using fetch logic to copy between KnitRepository('http+urllib://bazaar-ng.org/bzr/bzr.dev/.bzr/')(<RepositoryFormatKnit1>) and KnitRepository('file:///home/tanner/projects/bzr.dev/.bzr/')(<RepositoryFormatKnit1>)
fetch up to rev {<email address hidden>}
http readv of inventory.knit collapsed 192 offsets => [[10315331, 10710806]]
http readv of 3f/testinv.py-20050722220913-1dc326138d1a5892.knit collapsed 1 offsets => [[74089, 74245]]
http readv of 29/inventory.py-20050309040759-6648b84ca2005b37.knit collapsed 2 offsets => [[183123, 183471]]
http readv of c1/revisionspec.py-20050907152633-17567659fd5c0ddb.knit collapsed 20 offsets => [[24735, 32411]]
http readv of 6b/test_bzrdir.py-20060131065642-0ebeca5e30e30866.knit collapsed 4 offsets => [[46951, 49346]]
http readv of bf/test_status.py-20060516190614-fbf6432e4a6e8aa5.knit collapsed 7 offsets => [[1584, 3100]]
http readv of c9/builtins.py-20050830033751-fc01482b9ca23183.knit collapsed 6 offsets => [[1788318, 1873082]]
http readv of f7/test_lockdir.py-20060220222025-33d4221569a3d600.knit collapsed 1 offsets => [[7021, 7494]]
http readv of 9a/diff.py-20050309040759-26944fbbf2ebbf36.knit collapsed 2 offsets => [[83200, 84536]]
http readv of 70/transactions.py-20051007010900-f1313d53cf58e223.knit collapsed 1 offsets => [[7059, 7233]]
http readv of 51/test.py-20050630184834-092aa401ab9f039c.knit collapsed 3 offsets => [[85517, 86123]]
http readv of f3/read_changeset.py-20050619171944-c0d95aa685537640.knit collapsed 1 offsets => [[140455, 140711]]
http readv of f1/testsftp.py-20051027032739-247570325fec7e7e.knit collapsed 2 offsets => [[37211, 37632]]
http readv of bb/memory.py-20051016101338-cd008dbdf69f04fc.knit collapsed 6 offsets => [[15041, 16015]]
http readv of d4/test_atomicfile.py-20060809005022-s7psq6himv0hpm3v-1.knit collapsed 1 offsets => [[2086, 2210]]
http readv of 53/test_uncommit.py-20051027212835-84944b63adae51be.knit collapsed 4 offsets => [[5367, 6677]]
http readv of 0b/testworkingtree.py-20051004024258-b88d0fe8f101d468.knit collapsed 1 offsets => [[48277, 53952]]
http readv of c3/configobj.py-20051018184548-06992a2246425e3e.knit collapsed 1 offsets => [[48144, 48384]]
http readv of 4a/test_selftest.py-20060123024542-01c5f1bbcb596d78.knit collapsed 2 offsets => [[7720, 8923]]
http readv of cd/test_commit.py-20060421013633-1610ec2331c8190f.knit collapsed 2 offsets => [[3729, 4562]]
http readv of de/selftest.py-20050531073622-...

Read more...

Revision history for this message
John A Meinel (jameinel) wrote :

This just seems like you are getting a real connection error. It doesn't seem to be a problem with pycurl or bzr. Just that your connection to bazaar-ng.org is timing out.

By the way, the real site is now 'bazaar-vcs.org', and bazaar-ng.org is just a redirect to bazaar-vcs.org. (If you use the bazaar-ng url, every request is going to be a redirect, and will be a lot slower bug 36004 is about fixing that, though).

The request it is timing out on isn't even all that big (only 800 or so bytes).

You might try using 'http://bazaar-vcs.org' and see if you have fewer timeouts.

Revision history for this message
Bob Tanner (tanner) wrote : Re: [Bug 57747] Re: bzr: ERROR: curl connection error (Connection timed out)

On Friday 01 September 2006 17:16, John A Meinel wrote:
> This just seems like you are getting a real connection error. It doesn't
> seem to be a problem with pycurl or bzr. Just that your connection to
> bazaar-ng.org is timing out.
>
> By the way, the real site is now 'bazaar-vcs.org', and bazaar-ng.org is
> just a redirect to bazaar-vcs.org. (If you use the bazaar-ng url, every
> request is going to be a redirect, and will be a lot slower bug 36004 is
> about fixing that, though).
>
> The request it is timing out on isn't even all that big (only 800 or so
> bytes).
>
> You might try using 'http://bazaar-vcs.org' and see if you have fewer
> timeouts.

Hmm, reboot this laptop into Linux and the bzr pull never times out. Same url,
but I'll try switching to the new url and see what happens.

--
Bob Tanner <email address hidden> | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288

Revision history for this message
Vincent Ladeuil (vila) wrote :

Can this bug be reproduced while using the http://bazaar.launchpad.net/~bzr/bzr/bzr.urllib.keepalive branch ?

Changed in bzr:
assignee: nobody → v-ladeuil
Vincent Ladeuil (vila)
Changed in bzr:
status: Unconfirmed → Needs Info
Revision history for this message
Bob Tanner (tanner) wrote :
Revision history for this message
Bob Tanner (tanner) wrote :

I'd like to add it seems much faster as well.

Revision history for this message
Vincent Ladeuil (vila) wrote :

That should be even better handled with the new redirection implementation.

Changed in bzr:
status: Needs Info → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.