bzr fails when attempting to fetch branch using lp:

Bug #307166 reported by Keith Hughitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Got a strange error message when trying to retrieve a branch via the "lp:xx" address. I tried again a couple minutes later and the command worked fine.

$ bzr lp:myproject
bzr: ERROR: unknown command "lp:myproject"
$ bzr branch lp:myproject
bzr: ERROR: socket.gaierror: (-5, 'No address associated with hostname')

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 840, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 878, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 755, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1527, in get_transport
    base = directories.dereference(base)
  File "/usr/lib/python2.5/site-packages/bzrlib/directory_service.py", line 53, in dereference
    return service().look_up(name, url)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 60, in look_up
    return self._resolve(url)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 76, in _resolve
    result = resolve.submit(service)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 182, in submit
    self._authenticated)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 147, in send_request
    result = method(*method_params)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1183, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1297, in send_content
    connection.endheaders()
  File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
    self._send_output()
  File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
    self.send(msg)
  File "/usr/lib/python2.5/httplib.py", line 699, in send
    self.connect()
  File "/usr/lib/python2.5/httplib.py", line 1134, in connect
    sock.connect((self.host, self.port))
  File "<string>", line 1, in connect
gaierror: (-5, 'No address associated with hostname')

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:helioviewer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

---------------------------
System setup:
Ubuntu 8.10 Linux 2.6.27-9-generic
Bazaar (bzr) 1.6.1
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/user/.bazaar
  Bazaar log file: /home/user/.bzr.log

Jonathan Lange (jml)
tags: removed: launchpad
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 307166] Re: bzr fails when attempting to fetch branch using lp:

 tag launchpad

Revision history for this message
Martin Namutso (mnamutso) wrote :

i got the same error but rectified it by issuing the full command i.e. bzr branch http://bazaar.launchpad.net/~xxxx/ xxxx and it worked out just fine.

seems like there is a bug using lp:yyyy with proxies

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

Yes, it's bug 186920. Bug 397739 proposes a 'solution' to this.

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.