checkbox-ng traceback when resuming on server

Bug #1820352 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

Running tests on 18.04.2 using latest stable release of checkbox

ubuntu@s1lp10-jefflane:~$ dpkg -l |grep checkbox
ii checkbox-ng 1.3.0~ppa~ubuntu18.04.1 all CheckBoxNG test runner
ii plainbox-provider-checkbox 0.47.0~ppa~ubuntu18.04.1 s390x CheckBox provider for PlainBox
ii python3-checkbox-ng 1.3.0~ppa~ubuntu18.04.1 all CheckBoxNG test runner (Python 3 library)
ii python3-checkbox-support 0.40.0~ppa~ubuntu18.04.1 all collection of Python modules used by PlainBox providers
ubuntu@s1lp10-jefflane:~$ dpkg -l |grep plainbox
ii plainbox-insecure-policy 1.3.0~ppa~ubuntu18.04.1 all policykit policy required to use CheckBoxNG (insecure version)
ii plainbox-provider-certification-server 0.41.0~ppa~ubuntu18.04.1 all Server Certification provider for Plainbox
ii plainbox-provider-checkbox 0.47.0~ppa~ubuntu18.04.1 s390x CheckBox provider for PlainBox
ii plainbox-provider-resource-generic 0.39.0~ppa~ubuntu18.04.1 s390x CheckBox generic resource jobs provider

Had to ctrl-c out of a test run and restart because I forgot to run this in screen, which is necessary to account for the network tests that will disable unused network devices breaking ssh sessions.

When I chose to resume the session on restart, it dumped a traceback because it's looking for
/home/ubuntu/.config/autostart/com.canonical:checkbox-cli.desktop

The Traceback is giving a Permission Denied error for some reason, but in fact, the file does not exist, there is no autostart directory in ~/.config

ubuntu@s1lp10-jefflane:~$ certify-18.04
=========================[ Resume Incomplete Session ]==========================
There is 1 incomplete session that might be resumed
Do you want to resume session 'certify-18.04-2019-03-15T21.07.37'?
  r => resume this session
  n => next session
  c => create new session
  d => delete old sessions
[rncd]: r
ERROR:plainbox.bug:Undeclared exception PermissionError raised from resume_session

                        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 248, in invoked
    if not self._maybe_resume_session():
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 348, in _maybe_resume_session
    return self._run_resume_ui_loop(resume_candidates)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 365, in _run_resume_ui_loop
    self._resume_session(candidate)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 373, in _resume_session
    metadata = self.ctx.sa.resume_session(session.id)
  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 680, in resume_session
    self._restart_strategy.diffuse_application_restart(self._app_id)
  File "/usr/lib/python3/dist-packages/plainbox/impl/session/restart.py", line 123, in diffuse_application_restart
    os.remove(filename)
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/.config/autostart/com.canonical:checkbox-cli.desktop'

  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!

Changed in checkbox-ng:
importance: Undecided → Critical
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :
Changed in checkbox-ng:
status: New → Fix Released
assignee: nobody → Sylvain Pineau (sylvain-pineau)
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.