Traceback at end of testing, impossible to get results file

Bug #1515745 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PlainBox (Toolkit)
Fix Released
Critical
Maciej Kisielewski

Bug Description

I have a fresh install of 14.04 on a server:

root@x10dru:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
root@x10dru:~# uname -r
3.13.0-66-generic

with these packages:
checkbox-ng 0.21~ppa~ubuntu14.04.1
python3-checkbox-ng 0.21~ppa~ubuntu14.04.1
python3-checkbox-support 0.21~ppa~ubuntu14.04.1
plainbox-insecure-policy 0.23+ppa~ubuntu14.04.1
plainbox-provider-certification-server 0.19-1
plainbox-provider-checkbox 0.22~ppa1~ubuntu14.04.1
plainbox-provider-resource-generic 0.20+ppa~ubuntu14.04.1
python3-plainbox 0.23+ppa~ubuntu14.04.1

And I just did a full server cert run. At the end of the tesing, I hit "Finish" to finish the run and get a traceback. Because of this, I am unable to see any test results, nor do I get any output files (submission.xml) and can't submit the test results. So I've wasted an afternoon waiting on results I cant see.

Here's the traceback:

[ESC[34mESC[1mrncESC[0m]: CRITICAL plainbox.crashes: Executable 'checkbox-launcher' invoked with Namespace(color=None, command=<checkbox_ng.commands.launcher.LauncherCommand object at 0x7fbf194b0e80>, debug_console=False, debug_interrupt=False, dont_suppress_output=False, dry_run=False, exclude_pattern_list=[], include_pattern_list=[], launcher='/usr/bin/canonical-certification-server', log_level=None, non_interactive=False, pdb=False, secure_id=None, test_plan=None, trace=[], url=None, whitelist=[]) has crashed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 556, in dispatch_command
    return ns.command.invoked(ns)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/launcher.py", line 91, in invoked
    ).run()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/newcli.py", line 149, in run
    return self.do_normal_sequence()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/newcli.py", line 211, in do_normal_sequence
    self.export_and_send_results()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/newcli.py", line 338, in export_and_send_results
    copyfileobj(exported_stream, translating_stream)
  File "/usr/lib/python3.4/shutil.py", line 69, in copyfileobj
    fdst.write(buf)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/__init__.py", line 383, in write
    return self.dest_stream.write(data.decode(self.encoding))
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2611' in position 8: ordinal not in range(256)
Traceback (most recent call last):
  File "/usr/bin/checkbox-launcher", line 9, in <module>
    load_entry_point('checkbox-ng==0.21', 'console_scripts', 'checkbox-launcher')()
  File "/usr/lib/python3/dist-packages/checkbox_ng/main.py", line 62, in launcher
    raise SystemExit(CheckboxLauncherTool().main(argv))
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 324, in main
    return self.dispatch_and_catch_exceptions(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 556, in dispatch_command
    return ns.command.invoked(ns)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/launcher.py", line 91, in invoked
    ).run()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/newcli.py", line 149, in run
    return self.do_normal_sequence()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/newcli.py", line 211, in do_normal_sequence
    self.export_and_send_results()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/newcli.py", line 338, in export_and_send_results
    copyfileobj(exported_stream, translating_stream)
  File "/usr/lib/python3.4/shutil.py", line 69, in copyfileobj
    fdst.write(buf)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/__init__.py", line 383, in write
    return self.dest_stream.write(data.decode(self.encoding))
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2611' in position 8: ordinal not in range(256)

Related branches

Changed in checkbox:
status: New → In Progress
assignee: nobody → Maciej Kisielewski (kissiel)
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

I got the same effect on the version from trunk when manually set locale to only include lang (en_US).

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

Per a suggestion from Maciej, setting LANG to en_US.utf8 works (at least I can complete the run and submit results)... howver I also noticed that the CLI interface is changed, '*' apparently are not '*' in that locale...

See attached screen shot for an example of what happens to the CLI interface after changing LANG

Pierre Equoy (pieq)
Changed in checkbox:
status: In Progress → Fix Committed
affects: checkbox → plainbox
Changed in plainbox:
milestone: none → 0.25
Pierre Equoy (pieq)
Changed in plainbox:
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.