Breezy has encountered an internal error. This probably indicates a bug in Breezy.

Bug #2000806 reported by Able Chow
42
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Breezy
Fix Released
Medium
Jelmer Vernooij
breezy (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

[able@arch libappindicator-bzr]$ makepkg -si
==> Making package: libappindicator-bzr 12.10.0.r298-1 (Fri 30 Dec 2022 09:49:15 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Branching lp:libappindicator...
brz: ERROR: lazr.restfulclient.errors.ServerError: HTTP Error 500: Internal Server Error
Response headers:
---
connection: close
content-length: 14
content-type: text/plain;charset=utf-8
date: Sat, 31 Dec 2022 03:49:17 GMT
server: gunicorn/19.8.1
status: 500
x-lazr-oopsid: OOPS-469a948ce22c10ab0c555e4314c17afe
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: e08291e2-3991-424e-a7a9-2a4c56c2d8b7
x-vcs-revision: 31c78762a8046acf7ab47372e5d588ebb3759d2e
---
Response body:
---
b'AssertionError'
---

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 1039, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 1231, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 779, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 804, in run
    return class_run(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/breezy/builtins.py", line 1471, in run
    accelerator_tree, br_from = controldir.ControlDir.open_tree_or_branch(
  File "/usr/lib/python3.10/site-packages/breezy/controldir.py", line 874, in open_tree_or_branch
    controldir = klass.open(location)
  File "/usr/lib/python3.10/site-packages/breezy/controldir.py", line 778, in open
    t = _mod_transport.get_transport(base, possible_transports)
  File "/usr/lib/python3.10/site-packages/breezy/transport/__init__.py", line 1599, in get_transport
    location_to_url(base, purpose=purpose),
  File "/usr/lib/python3.10/site-packages/breezy/location.py", line 143, in location_to_url
    location = directories.dereference(location, purpose)
  File "/usr/lib/python3.10/site-packages/breezy/directory_service.py", line 89, in dereference
    return directory.look_up(name, url, purpose=purpose)
  File "/usr/lib/python3.10/site-packages/breezy/plugins/launchpad/lp_directory.py", line 119, in look_up
    return self._resolve(url)
  File "/usr/lib/python3.10/site-packages/breezy/plugins/launchpad/lp_directory.py", line 162, in _resolve
    result = _api_resolver(path, url)
  File "/usr/lib/python3.10/site-packages/breezy/plugins/launchpad/lp_directory.py", line 112, in _resolve_via_api
    return {'urls': [lp_branch.composePublicURL(scheme='ssh')]}
  File "/home/able/.local/lib/python3.10/site-packages/lazr/restfulclient/resource.py", line 592, in __call__
    response, content = self.root._browser._request(
  File "/home/able/.local/lib/python3.10/site-packages/lazr/restfulclient/_browser.py", line 429, in _request
    raise error
lazr.restfulclient.errors.ServerError: HTTP Error 500: Internal Server Error
Response headers:
---
connection: close
content-length: 14
content-type: text/plain;charset=utf-8
date: Sat, 31 Dec 2022 03:49:17 GMT
server: gunicorn/19.8.1
status: 500
x-lazr-oopsid: OOPS-469a948ce22c10ab0c555e4314c17afe
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: e08291e2-3991-424e-a7a9-2a4c56c2d8b7
x-vcs-revision: 31c78762a8046acf7ab47372e5d588ebb3759d2e
---
Response body:
---
b'AssertionError'
---

brz 3.3.1 on python 3.10.9 (Linux-6.1.1-arch1-1-x86_64-with-glibc2.36)
arguments: ['bzr', 'branch', 'lp:libappindicator', '/tmp/libappindicator-
    bzr/libappindicator', '--no-tree', '--use-existing-dir']
plugins: bash_completion[3.3.1], changelog_merge[3.3.1],
    commitfromnews[3.3.1], cvs[3.3.1], darcs[3.3.1], email[3.3.1],
    fastimport[3.3.1], flake8[unknown], fossil[3.3.1], github[3.3.1],
    gitlab[3.3.1], hg[3.3.1], launchpad[3.3.1], mtn[3.3.1],
    netrc_credential_store[3.3.1], news_merge[3.3.1], po_merge[3.3.1],
    propose[3.3.1], pypi[3.3.1], quilt[unknown], repodebug[3.3.1],
    rewrite[unknown], stats[3.3.1], svn[3.3.1], upload[3.3.1],
    weave_fmt[3.3.1], zsh_completion[3.3.1]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'

*** Breezy has encountered an internal error. This probably indicates a
    bug in Breezy. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/brz/+filebug
    including this traceback and a description of the problem.
==> ERROR: Failure while branching lp:libappindicator
    Aborting...

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This looks like a Launchpad error, though we should probably handle it and not print a traceback.

Changed in brz:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Paride Legovini (paride) wrote :

I believe this due to the fact that breezy 3.3.0 (or 3.3.1) handles the lp: shorthand differently from what it used to do. For example

  bzr branch lp:libappindicator

works fine on Jammy, but fails as described on Lunar.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Yes, things have changed - breezy has switched to using the main Launchpad API rather than the older XML/RPC API.

That said, Launchpad shouldn't be serving a 500 in this case.

Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → Fix Committed
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Fix in the attached branch. Filed bug #2002568 in Launchpad about the 500.

Changed in brz:
milestone: none → 3.3.2
Revision history for this message
Paride Legovini (paride) wrote :

I tested it and it appears to be working fine. Thanks for fixing this so quickly!

What's your plan for releasing 3.3.2? I'm asking as this bug is currently preventing some Ubuntu automated testing from working correctly, and we may want to have the fix land to Lunar sooner than later.

Revision history for this message
Able Chow (ablechow) wrote : Re: [Bug 2000806] Re: Breezy has encountered an internal error. This probably indicates a bug in Breezy.
Download full text (5.6 KiB)

Thank you for addressing this issue.
Happy new year and have a wonderful week!

Able

On Wed, Jan 11, 2023 at 12:55 PM Jelmer Vernooij <email address hidden>
wrote:

> Fix in the attached branch. Filed bug #2002568 in Launchpad about the
> 500.
>
> ** Changed in: brz
> Milestone: None => 3.3.2
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2000806
>
> Title:
> Breezy has encountered an internal error. This probably indicates a
> bug in Breezy.
>
> Status in Breezy:
> Fix Committed
>
> Bug description:
> [able@arch libappindicator-bzr]$ makepkg -si
> ==> Making package: libappindicator-bzr 12.10.0.r298-1 (Fri 30 Dec 2022
> 09:49:15 PM CST)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving sources...
> -> Branching lp:libappindicator...
> brz: ERROR: lazr.restfulclient.errors.ServerError: HTTP Error 500:
> Internal Server Error
> Response headers:
> ---
> connection: close
> content-length: 14
> content-type: text/plain;charset=utf-8
> date: Sat, 31 Dec 2022 03:49:17 GMT
> server: gunicorn/19.8.1
> status: 500
> x-lazr-oopsid: OOPS-469a948ce22c10ab0c555e4314c17afe
> x-powered-by: Zope (www.zope.org), Python (www.python.org)
> x-request-id: e08291e2-3991-424e-a7a9-2a4c56c2d8b7
> x-vcs-revision: 31c78762a8046acf7ab47372e5d588ebb3759d2e
> ---
> Response body:
> ---
> b'AssertionError'
> ---
>
>
> Traceback (most recent call last):
> File "/usr/lib/python3.10/site-packages/breezy/commands.py", line
> 1039, in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/usr/lib/python3.10/site-packages/breezy/commands.py", line
> 1231, in run_bzr
> ret = run(*run_argv)
> File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 779,
> in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 804,
> in run
> return class_run(*args, **kwargs)
> File "/usr/lib/python3.10/site-packages/breezy/builtins.py", line
> 1471, in run
> accelerator_tree, br_from =
> controldir.ControlDir.open_tree_or_branch(
> File "/usr/lib/python3.10/site-packages/breezy/controldir.py", line
> 874, in open_tree_or_branch
> controldir = klass.open(location)
> File "/usr/lib/python3.10/site-packages/breezy/controldir.py", line
> 778, in open
> t = _mod_transport.get_transport(base, possible_transports)
> File "/usr/lib/python3.10/site-packages/breezy/transport/__init__.py",
> line 1599, in get_transport
> location_to_url(base, purpose=purpose),
> File "/usr/lib/python3.10/site-packages/breezy/location.py", line 143,
> in location_to_url
> location = directories.dereference(location, purpose)
> File "/usr/lib/python3.10/site-packages/breezy/directory_service.py",
> line 89, in dereference
> return directory.look_up(name, url, purpose=purpose)
> File
> "/usr/lib/python3.10/site-packages/breezy/plugins/launchpad/lp_directory.py",
> line 119, in look_up
> return self._resolve(url)
> File
> "/usr/l...

Read more...

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I can probably release 3.3.2 this weekend. If that's too late, you're probably better off cherry-picking it in Ubuntu.

Revision history for this message
Paride Legovini (paride) wrote :

Thanks. It is not _that_ urgent but given that this should be a straightforward cherry-pick I may upload it to Lunar tomorrow and then make sure it syncs once you upload 3.3.2 to Debian.

Changed in breezy (Ubuntu):
status: New → Triaged
importance: Undecided → High
importance: High → Medium
Jelmer Vernooij (jelmer)
Changed in brz:
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

Remote bug watches

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