KeyError causes traceback when trying to run checkbox-ng

Bug #1702770 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
Critical
Sylvain Pineau

Bug Description

This traceback occurs whenever I try to run checkbox-ng (C-C-S)

ubuntu@xwing:~$ canonical-certification-server
=========================[ Resume Incomplete Session ]==========================
There are 2 incomplete sessions that might be resumed
Do you want to resume session 'canonical-certification-server-2017-07-06T21.30.31'?
  r => resume this session
  n => next session
  c => create new session
  d => delete old sessions
[rncd]: c
Preparing...

                        Application Malfunction Detected

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/guacamole/core.py", line 248, in eat
    return self._dispatch()
  File "/usr/lib/python3/dist-packages/guacamole/core.py", line 298, in _dispatch
    result = ingredient.dispatch(self.context)
  File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 152, in dispatch
    return self._dispatch(context, 0)
  File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 179, in _dispatch
    return self._dispatch_None(context, level, retval, command)
  File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 208, in _dispatch_None
    return self._dispatch(context, level + 1)
  File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 165, in _dispatch
    retval = command.invoked(context)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 221, in invoked
    self._pick_jobs_to_run()
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 413, in _pick_jobs_to_run
    _("Choose tests to run on your system:"), self.ctx.sa).run()
  File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 341, in __init__
    root_node.get_widget().set_descendants_state(True)
  File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 166, in set_descendants_state
    for key in node.get_child_keys():
  File "/usr/lib/python3/dist-packages/urwid/treetools.py", line 290, in get_child_keys
    self._child_keys = self.load_child_keys()
  File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 231, in load_child_keys
    key=lambda c: self.get_value().get_category(c).tr_name())
  File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 231, in <lambda>
    key=lambda c: self.get_value().get_category(c).tr_name())
  File "/usr/lib/python3/dist-packages/plainbox/impl/decorators.py", line 142, in wrapper
    raise exc
  File "/usr/lib/python3/dist-packages/plainbox/impl/decorators.py", line 136, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/plainbox/impl/session/assistant.py", line 1100, in get_category
    return self._context.get_unit(category_id, 'category')
  File "/usr/lib/python3/dist-packages/plainbox/impl/session/state.py", line 461, in get_unit
    unit = self._unit_id_map[unit_id]
KeyError: '2013.com.canonical.plainbox::info'

  Please report a bug including the information from the paragraph above. To
  report the bug visit https://bugs.launchpad.net/checkbox-ng/+filebug

  We are sorry for the inconvenience!

I noticed some merged branches recently removing the year designation from the namespace, so perhaps one was missed, or the merges were pushed too soon (and should have waited until all the year stamps were removed from namespace references).

Revision history for this message
Jeff Lane  (bladernr) wrote :

ii plainbox 0.36.0~rc2+git201707061357+pkg64~ubuntu16.04.1
ii plainbox-insecure-policy 0.36.0~rc2+git201707061357+pkg64~ubuntu16.04.1
ii plainbox-provider-certification-server 0.34.0+git201705221829+pkg66~ubuntu16.04.1
ii plainbox-provider-checkbox 0.36.0+git201707061434+pkg42~ubuntu16.04.1
ii plainbox-provider-resource-generic 0.33.0~rc4+git201707061428+pkg36~ubuntu16.04.1
ii python3-plainbox 0.36.0~rc2+git201707061357+pkg64~ubuntu16.04.1

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I pushed plainbox-provider-certification-server (0.34.0+git201707062119+pkg66~ubuntu16.04.1) to the dev ppa while you wrote this bug report.

Indeed we pushed all our branches for the year prefix removal yesterday and I immediately rebuilt packages in the dev ppa. But publication takes time and you installed the cert provider using the previous daily, 15m later it was good. Sorry for the inconvenience.

Changed in checkbox-ng:
status: Confirmed → Fix Released
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in checkbox-ng:
milestone: none → 0.34.0
Revision history for this message
Jeff Lane  (bladernr) wrote : Re: [Bug 1702770] Re: KeyError causes traceback when trying to run checkbox-ng
Download full text (5.0 KiB)

Yeah, Maciej caught me on IRC and explained it too. Thanks for letting me know.

On Fri, Jul 7, 2017 at 9:30 AM, Sylvain Pineau
<email address hidden> wrote:
> ** Changed in: checkbox-ng
> Milestone: None => 0.34.0
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1702770
>
> Title:
> KeyError causes traceback when trying to run checkbox-ng
>
> Status in Next Generation Checkbox (CLI):
> Fix Released
>
> Bug description:
> This traceback occurs whenever I try to run checkbox-ng (C-C-S)
>
> ubuntu@xwing:~$ canonical-certification-server
> =========================[ Resume Incomplete Session ]==========================
> There are 2 incomplete sessions that might be resumed
> Do you want to resume session 'canonical-certification-server-2017-07-06T21.30.31'?
> r => resume this session
> n => next session
> c => create new session
> d => delete old sessions
> [rncd]: c
> Preparing...
>
> Application Malfunction Detected
>
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/guacamole/core.py", line 248, in eat
> return self._dispatch()
> File "/usr/lib/python3/dist-packages/guacamole/core.py", line 298, in _dispatch
> result = ingredient.dispatch(self.context)
> File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 152, in dispatch
> return self._dispatch(context, 0)
> File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 179, in _dispatch
> return self._dispatch_None(context, level, retval, command)
> File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 208, in _dispatch_None
> return self._dispatch(context, level + 1)
> File "/usr/lib/python3/dist-packages/guacamole/ingredients/cmdtree.py", line 165, in _dispatch
> retval = command.invoked(context)
> File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 221, in invoked
> self._pick_jobs_to_run()
> File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 413, in _pick_jobs_to_run
> _("Choose tests to run on your system:"), self.ctx.sa).run()
> File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 341, in __init__
> root_node.get_widget().set_descendants_state(True)
> File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 166, in set_descendants_state
> for key in node.get_child_keys():
> File "/usr/lib/python3/dist-packages/urwid/treetools.py", line 290, in get_child_keys
> self._child_keys = self.load_child_keys()
> File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 231, in load_child_keys
> key=lambda c: self.get_value().get_category(c).tr_name())
> File "/usr/lib/python3/dist-packages/checkbox_ng/urwid_ui.py", line 231, in <lambda>
> key=lambda c: self.get_value().get_category(c).tr_name())
> File "/usr/lib/python3/dist-packages/plainbox/impl/decorators.py", line 142, in wrapper
> raise exc
> File "/usr/lib/python3/dist-pa...

Read more...

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.