"ConnectionError: Connection error: while sending POST /bazaar/: [Errno 0] Error" in ssl do_handshake when /dev/urandom doesn't exist

Bug #644244 reported by Riccardo Magliocchetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Won't Fix
Undecided
Unassigned

Bug Description

bzr versione : 2.1.2

from a debian squeeze chroot with only git, locales and bzr installed other than a base system:

bzr branch lp:wikipbx
bzr: ERROR: Connection error: while sending POST /bazaar/: [Errno 0] Error

 bzr branch http://bazaar.launchpad.net/~wikipbx-dev/wikipbx/trunk works fine though.

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :
Aaron Bentley (abentley)
affects: launchpad-code → bzr
Revision history for this message
Martin Pool (mbp) wrote : Re: "ConnectionError: Connection error: while sending POST /bazaar/: [Errno 0] Error" in ssl do_handshake

I would guess this is because either
1- there's an actually network error; perhaps the chroot does not have its network configured completely properly
2- some ssl dependency is not installed, in which case it would be useful to know how you installed this

summary: - can't bzr branch lp:wikipbx from chroot
+ "ConnectionError: Connection error: while sending POST /bazaar/: [Errno
+ 0] Error" in ssl do_handshake
summary: "ConnectionError: Connection error: while sending POST /bazaar/: [Errno
- 0] Error" in ssl do_handshake
+ 0] Error" in ssl do_handshake run from chroot
Changed in bzr:
status: New → Incomplete
Revision history for this message
Riccardo Magliocchetti (riccardo) wrote : Re: "ConnectionError: Connection error: while sending POST /bazaar/: [Errno 0] Error" in ssl do_handshake run from chroot

1 - i don't think there were network issues
2 - it may be, i've installed it with apt-get install bzr

I have to say that now i can't reproduce it anymore. Can this may be caused by missing /dev/urandom in the chroot? If so please change the error to a meaningful one and feel free to close. Thanks.

Revision history for this message
Martin Pool (mbp) wrote :

That's plausible. If you delete /dev/urandom, do you get the same error?

It's almost an ssl or python bug if it gives such a poor error, not really bzr...

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

I can confirm that the error appears only without /dev mounted.

Revision history for this message
Martin Pool (mbp) wrote :

I don't think this makes sense to specifically handle in bzr. Thanks for pointing it out though. If you feel strongly about it your can mark this also affects python or ssl.

summary: "ConnectionError: Connection error: while sending POST /bazaar/: [Errno
- 0] Error" in ssl do_handshake run from chroot
+ 0] Error" in ssl do_handshake when /dev/urandom doesn't exist
Changed in bzr:
status: Incomplete → Won't Fix
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I just hit this in chroot; perhaps bzr could at least produce a more informative message in this case?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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