gnutls_handshake() failed: A TLS packet with unexpected length was received Error from using bzr launchpad-login [NAME]

Bug #772354 reported by Kayode Odusote
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Expired
Undecided
Unassigned

Bug Description

I was trying to identify my launchpad ID to bazaar when the error occurred as detailed below and I was requested to report it.

kayodu@kayodu-1005HA:/var/lib/iHRIS/mali/4.0$ bzr launchpad-login odusote-kayode
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: pycurl.error: (28, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.')

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/__init__.py", line 257, in run
    account.check_lp_login(name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/account.py", line 106, in check_lp_login
    data = _transport.get_bytes('~%s/+sshkeys' % username)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 610, in get_bytes
    f = self.get(relpath)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 126, in get
    code, response_file = self._get(relpath, None)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 165, in _get
    return self._get_full(relpath)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 200, in _get_full
    self._curl_perform(curl, header)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 355, in _curl_perform
    curl.perform()
error: (28, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.')

bzr 2.2.4 on python 2.6.6 (Linux-2.6.35-22-generic-i686-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'launchpad-login', 'odusote-kayode']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.4]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.4]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.4]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.4]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
kayodu@kayodu-1005HA:/var/lib/iHRIS/mali/4.0$

Content of the ./bzr.log is as follows:

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 https://bugs.launchpad.net/bzr/+filebug

Thu 2011-04-28 02:10:45 -0400
0.131 bazaar version: 2.2.4
0.131 bzr arguments: [u'whoami', u'Kayode Odusote <email address hidden>']
0.246 looking for plugins in /home/kayodu/.bazaar/plugins
0.247 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.288 encoding stdout as sys.stdout encoding 'UTF-8'
0.291 creating config directory: '/home/kayodu/.bazaar'
0.303 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.303 return code 0

Thu 2011-04-28 02:12:31 -0400
0.129 bazaar version: 2.2.4
0.129 bzr arguments: [u'branch', u'lp:~ihris-nigeria/ihris+nmc+nigeria/NMCN-4.0', u'4.0']
0.177 looking for plugins in /home/kayodu/.bazaar/plugins
0.178 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.219 encoding stdout as sys.stdout encoding 'UTF-8'
[ 2160] 2011-04-28 02:12:33.757 WARNING: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
7.202 creating repository in file:///var/lib/iHRIS/NMCN/4.0/.bzr/.
7.246 Using fetch logic to copy between CHKInventoryRepository('http://bazaar.launchpad.net/~ihris-nigeria/ihris%2Bnmc%2Bnigeria/NMCN-4.0/.bzr/repository/')(RepositoryFormat2a()) and CHKInventoryRepository('file:///var/lib/iHRIS/NMCN/4.0/.bzr/repository/')(RepositoryFormat2a())
28.110 25 bytes left on the HTTP socket
30.276 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x88fd40c> in file:///var/lib/iHRIS/NMCN/4.0/
30.785 created new branch BzrBranch7(file:///var/lib/iHRIS/NMCN/4.0/)
30.805 trying to create missing lock '/var/lib/iHRIS/NMCN/4.0/.bzr/checkout/dirstate'
30.806 opening working tree '/var/lib/iHRIS/NMCN/4.0'
[ 2160] 2011-04-28 02:13:02.420 INFO: Branched 33 revision(s).
31.310 Transferred: 655kB (23.5kB/s r:628kB w:27kB)
31.310 return code 0

Thu 2011-04-28 02:13:34 -0400
0.129 bazaar version: 2.2.4
0.130 bzr arguments: [u'bind', u'lp:~ihris-nigeria/ihris+nmc+nigeria/NMCN-4.0']
0.177 looking for plugins in /home/kayodu/.bazaar/plugins
0.178 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.218 encoding stdout as sys.stdout encoding 'UTF-8'
[ 2161] 2011-04-28 02:13:39.291 WARNING: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
7.057 Transferred: 3kB (1.5kB/s r:2kB w:1kB)
7.057 return code 0

Thu 2011-04-28 08:54:15 -0400
0.298 bazaar version: 2.2.4
0.298 bzr arguments: [u'branch', u'lp:ihris-mali', u'4.0']
0.440 looking for plugins in /home/kayodu/.bazaar/plugins
0.441 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.590 encoding stdout as sys.stdout encoding 'UTF-8'
[ 2067] 2011-04-28 08:54:20.382 WARNING: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
9.749 creating repository in file:///var/lib/iHRIS/mali/4.0/.bzr/.
9.839 Using fetch logic to copy between CHKInventoryRepository('http://bazaar.launchpad.net/~ihris%2Bmali/ihris-mali/trunk/.bzr/repository/')(RepositoryFormat2a()) and CHKInventoryRepository('file:///var/lib/iHRIS/mali/4.0/.bzr/repository/')(RepositoryFormat2a())
33.535 25 bytes left on the HTTP socket
39.142 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x93a140c> in file:///var/lib/iHRIS/mali/4.0/
39.662 created new branch BzrBranch7(file:///var/lib/iHRIS/mali/4.0/)
39.686 trying to create missing lock '/var/lib/iHRIS/mali/4.0/.bzr/checkout/dirstate'
39.687 opening working tree '/var/lib/iHRIS/mali/4.0'
[ 2067] 2011-04-28 08:54:56.568 INFO: Branched 67 revision(s).
40.983 Transferred: 899kB (25.4kB/s r:869kB w:30kB)
40.983 return code 0

Thu 2011-04-28 08:57:26 -0400
0.126 bazaar version: 2.2.4
0.127 bzr arguments: [u'bind', u'lp:ihris-mali']
0.174 looking for plugins in /home/kayodu/.bazaar/plugins
0.175 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.215 encoding stdout as sys.stdout encoding 'UTF-8'
[ 2179] 2011-04-28 08:57:52.618 WARNING: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
29.004 Transferred: 3kB (1.7kB/s r:2kB w:1kB)
29.004 return code 0

Thu 2011-04-28 08:58:29 -0400
0.126 bazaar version: 2.2.4
0.126 bzr arguments: [u'help', u'launchpad-login']
0.175 looking for plugins in /home/kayodu/.bazaar/plugins
0.175 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.215 encoding stdout as sys.stdout encoding 'UTF-8'
0.264 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.264 return code 0

Thu 2011-04-28 08:59:43 -0400
0.126 bazaar version: 2.2.4
0.127 bzr arguments: [u'launchpad-login', u'kayodu']
0.174 looking for plugins in /home/kayodu/.bazaar/plugins
0.175 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.215 encoding stdout as sys.stdout encoding 'UTF-8'
4.593 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/__init__.py", line 257, in run
    account.check_lp_login(name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/account.py", line 108, in check_lp_login
    raise UnknownLaunchpadUsername(user=username)
UnknownLaunchpadUsername: The user name kayodu is not registered on Launchpad.

4.594 Transferred: 7kB (16.6kB/s r:7kB w:0kB)
4.594 return code 3

Thu 2011-04-28 09:00:00 -0400
0.131 bazaar version: 2.2.4
0.131 bzr arguments: [u'launchpad-login', u'odusote-kayode']
0.179 looking for plugins in /home/kayodu/.bazaar/plugins
0.180 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.220 encoding stdout as sys.stdout encoding 'UTF-8'
300.316 got pycurl error: 28, gnutls_handshake() failed: A TLS packet with unexpected length was received., (28, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.'), url: https://launchpad.net/~odusote-kayode/%2Bsshkeys
300.348 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/__init__.py", line 257, in run
    account.check_lp_login(name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad/account.py", line 106, in check_lp_login
    data = _transport.get_bytes('~%s/+sshkeys' % username)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 610, in get_bytes
    f = self.get(relpath)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 126, in get
    code, response_file = self._get(relpath, None)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 165, in _get
    return self._get_full(relpath)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 200, in _get_full
    self._curl_perform(curl, header)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 355, in _curl_perform
    curl.perform()
error: (28, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.')

300.589 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
300.589 return code 4

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

Hi, thanks for the report. This looks a lot like a network corruption or error originating outside of bzr.

If you try again, do you get the same problem? Do you have a proxy or anything else that might be interfering with network traffic?

summary: - Error from using bzr launchpad-login [NAME]
+ gnutls_handshake() failed: A TLS packet with unexpected length was
+ received Error from using bzr launchpad-login [NAME]
Changed in bzr:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
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.