branch command crashes with "gaierror: (1, 'address family not supported')"

Bug #302088 reported by davidedb
2
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Undecided
Unassigned

Bug Description

bzr crashes when running the following command:

bzr branch lp:bzr-fastimport fastimport

with error message:

bzr: ERROR: socket.gaierror: (1, 'address family not supported')

More details in the attached file .bzr.log
I suspect this depend on the fact that I'm below a proxy/firewall which block the HTTPS traffic.
Yet I have the same error when I set the environment variable HTTP_PROXY or HTTPS_PROXY.

It would be better in any case to catch such an error and print a more meaningful error message.

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

I believe this is just a duplicate of bug #186920 which is because the python standard libraries "xmlrpc" code doesn't handle proxies.

Does it work if you do:

bzr branch http://bazaar.launchpad.net/~bzr/bzr-fastimport/fastimport.dev

(Which is where lp:bzr-fastimport points).

Changed in bzr:
status: New → Incomplete
Revision history for this message
davidedb (davidedb-gmail) wrote :

Yes, it's probably a duplicate of that bug (I was not aware of it): in my environment, too, name resolution is performed by the proxy server (i.e. commands such as 'ping www.launchpad.net' fail, yet I can reach the server/web page with my browser).
Is there any solution/work-around?

If I use the URL you suggest, everything works smoothly.
Is there a general rule for converting URLs from lp: protocol to http: protocol?

--Davide

Revision history for this message
Jonathan Lange (jml) wrote :

If you type in 'http://code.launchpad.net/+branch/<foo>', you'll be redirected to a page that matches 'lp:<foo>'. If you then change the domain from 'code' to 'bazaar' and the protocol from 'https' to 'http' or 'bzr+ssh', you have the URL of the branch.

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

Other bug subscribers

Remote bug watches

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