canonical-certification-server crashed after resume

Bug #1744936 reported by Frank Heimes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Invalid
Medium
Unassigned

Bug Description

I ran canonical-certification-server as usual and at some point my remote session got dropped (over night):
packet_write_wait: Connection to 10.245.236.13 port 22: Broken pipe

This is usually not a big problem and I can just resume like I did, but this time I ran into this "Application Malfunction" problem:

$ canonical-certification-server
=========================[ Resume Incomplete Session ]==========================
There is 1 incomplete session that might be resumed
Do you want to resume session 'canonical-certification-server-2018-01-22T16.38.57'?
  r => resume this session
  n => next session
  c => create new session
  d => delete old sessions
[rncd]: r
WARNING:plainbox.ctrl:Ignoring generated job with missing template parameter name
WARNING:plainbox.ctrl:Ignoring generated job with missing template parameter name
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 214, in invoked
    if not self._maybe_resume_session():
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 309, in _maybe_resume_session
    return self._run_resume_ui_loop(resume_candidates)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 326, in _run_resume_ui_loop
    self._resume_session(candidate)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 334, 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 643, in resume_session
    self._restart_strategy.diffuse_application_restart(self._app_id)
  File "/usr/lib/python3/dist-packages/plainbox/impl/session/restart.py", line 122, 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!

I ran canonical-certification-server on the same two system 4 days ago, incl. the dropped remote connection and I was able to resume and finally complete the runs.

This time - just with a different kernel - I ran on the same two system into this error.

Trying to resume a second time led to the same:

$ canonical-certification-server
=========================[ Resume Incomplete Session ]==========================
There is 1 incomplete session that might be resumed
Do you want to resume session 'canonical-certification-server-2018-01-22T16.38.57'?
  r => resume this session
  n => next session
  c => create new session
  d => delete old sessions
[rncd]: r
WARNING:plainbox.ctrl:Ignoring generated job with missing template parameter name
WARNING:plainbox.ctrl:Ignoring generated job with missing template parameter name
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 214, in invoked
    if not self._maybe_resume_session():
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 309, in _maybe_resume_session
    return self._run_resume_ui_loop(resume_candidates)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 326, in _run_resume_ui_loop
    self._resume_session(candidate)
  File "/usr/lib/python3/dist-packages/checkbox_ng/launcher/subcommands.py", line 334, 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 643, in resume_session
    self._restart_strategy.diffuse_application_restart(self._app_id)
  File "/usr/lib/python3/dist-packages/plainbox/impl/session/restart.py", line 122, 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!

However a restart with 'new session' of the test runs (w/o loosing the network this time) ended successfully - hence it's probably a low prio bug.

Tags: s390x
Changed in checkbox-ng:
importance: Undecided → Medium
Changed in checkbox-ng:
status: New → Invalid
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.