All output lost from testing session. Could not read /tmp/submission.xml

Bug #1561093 reported by Christopher Barrington-Leigh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

After all the tests, results cannot be viewed, saved, or submitted because they'r enot written.

The GUI says "Could not read /tmp/submission.xml"

stderr says stuff like:

Error: QDBusError("org.freedesktop.DBus.Python.TypeError", "Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3/dist-packages/checkbox_ng/dbus_ex/decorators.py", line 231, in sanity
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/checkbox_ng/service.py", line 226, in wrapper
    bound = sig.bind(*args, **kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2654, in bind
    return args[0]._bind(args[1:], kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2573, in _bind
    raise TypeError(msg) from None
TypeError: 'output_file' parameter lacking default value
")
Error: QDBusError("org.freedesktop.DBus.Python.TypeError", "Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3/dist-packages/checkbox_ng/dbus_ex/decorators.py", line 231, in sanity
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/checkbox_ng/service.py", line 226, in wrapper
    bound = sig.bind(*args, **kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2654, in bind
    return args[0]._bind(args[1:], kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2573, in _bind
    raise TypeError(msg) from None
TypeError: 'output_file' parameter lacking default value
")
gvfs-open: file:///tmp/report.html: error opening location: Error when getting information for file '/tmp/report.html': No such file or directory
Error: QDBusError("org.freedesktop.DBus.Python.TypeError", "Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3/dist-packages/checkbox_ng/dbus_ex/decorators.py", line 231, in sanity
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/checkbox_ng/service.py", line 226, in wrapper
    bound = sig.bind(*args, **kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2654, in bind
    return args[0]._bind(args[1:], kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2573, in _bind
    raise TypeError(msg) from None
TypeError: 'output_file' parameter lacking default value
")
Error: QDBusError("org.freedesktop.DBus.Python.TypeError", "Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3/dist-packages/checkbox_ng/dbus_ex/decorators.py", line 231, in sanity
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/checkbox_ng/service.py", line 226, in wrapper
    bound = sig.bind(*args, **kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2654, in bind
    return args[0]._bind(args[1:], kwargs)
  File "/usr/lib/python3.4/inspect.py", line 2573, in _bind
    raise TypeError(msg) from None
TypeError: 'output_file' parameter lacking default value

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: checkbox-gui 0.18-0ubuntu3
ProcVersionSignature: Ubuntu 4.2.0-34.39-generic 4.2.8-ckt4
Uname: Linux 4.2.0-34-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 23 12:32:24 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-02-12 (39 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: checkbox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :
Revision history for this message
Pierre Equoy (pieq) wrote :

Hi and thanks for reporting this issue!

`checkbox-gui` has recently been deprecated in favor of `checkbox-converged`. You can get it by installing the latest version of checkbox using our stable PPA [1].

If you have troubles with checkbox-converged, please head over its project page [2] for more information and to file a bug if needed.

Thanks!

[1] https://launchpad.net/~hardware-certification/+archive/ubuntu/public/
[2] https://launchpad.net/checkbox-converged

Changed in checkbox (Ubuntu):
status: New → Won't Fix
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote : Re: [Bug 1561093] Re: All output lost from testing session. Could not read /tmp/submission.xml
Download full text (7.6 KiB)

I added the ppa (Not sure why the simpler instructions, using
apt-add-repository, are not on the PPA page). An update results in the
following error, and a system problem (apt) dialogue box:

The following NEW packages will be installed:
  bonnie++ liblinear1 ndiff nmap python3-guacamole python3-padme
  python3-requests-oauthlib sysstat
The following packages will be upgraded:
  checkbox-ng checkbox-ng-service plainbox-provider-checkbox
  plainbox-provider-resource-generic plainbox-secure-policy
  python3-checkbox-ng python3-checkbox-support python3-plainbox
8 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 6,219 kB of archives.
After this operation, 21.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ca.archive.ubuntu.com/ubuntu/ wily/main bonnie++ amd64 1.97.1
[67.9 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu/ wily/universe python3-guacamole
all 0.9-1 [20.8 kB]
Get:3 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main checkbox-ng-service all 0.23~ppa~ubuntu15.10.1 [2,758 B]
Get:4 http://ca.archive.ubuntu.com/ubuntu/ wily/universe python3-padme all
1.1.1-2 [17.2 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu/ wily/universe
python3-requests-oauthlib all 0.4.0-1ubuntu1 [11.5 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu/ wily/main liblinear1 amd64
1.8+dfsg-5 [33.2 kB]
Get:7 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main python3-plainbox all 0.26~ppa~ubuntu15.10.1 [607 kB]
Get:8 http://ca.archive.ubuntu.com/ubuntu/ wily/main sysstat amd64 11.1.5-1
[224 kB]
Get:9 http://ca.archive.ubuntu.com/ubuntu/ wily/main ndiff all 6.47-7 [20.2
kB]
Get:10 http://ca.archive.ubuntu.com/ubuntu/ wily/main nmap amd64 6.47-7
[3,736 kB]
Get:11 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main plainbox-secure-policy all 0.26~ppa~ubuntu15.10.1 [6,230 B]
Get:12 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main python3-checkbox-support all 0.24~ppa~ubuntu15.10.1 [318 kB]
Get:13 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main checkbox-ng all 0.24~ppa~ubuntu15.10.1 [24.1 kB]
Get:14 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main python3-checkbox-ng all 0.24~ppa~ubuntu15.10.1 [29.0 kB]
Get:15 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main plainbox-provider-resource-generic amd64 0.24~ppa~ubuntu15.10.1
[18.9 kB]
Get:16 http://ppa.launchpad.net/hardware-certification/public/ubuntu/
wily/main plainbox-provider-checkbox amd64 0.26~ppa2~ubuntu15.10.1 [1,082
kB]
Fetched 6,219 kB in 6s (972 kB/s)

Preconfiguring packages ...
Selecting previously unselected package bonnie++.
(Reading database ... 308806 files and directories currently installed.)
Preparing to unpack .../bonnie++_1.97.1_amd64.deb ...
Unpacking bonnie++ (1.97.1) ...
Preparing to unpack .../checkbox-ng-service_0.23~ppa~ubuntu15.10.1_all.deb
...
Unpacking checkbox-ng-service (0.23~ppa~ubuntu15.10.1) over (0.20.1-1) ...
Preparing to unpack .../python3-plainbox_0.26~ppa~ubuntu15.10.1_all.deb ...
Unpacking python3-plainbox (0.26~ppa~ubuntu15.10.1) over (0.22.2-1ubuntu1)
...
dpkg: warning:...

Read more...

Revision history for this message
Pierre Equoy (pieq) wrote :

Regarding the instructions to add the PPA, they are on the overview page (https://launchpad.net/~hardware-certification/+archive/ubuntu/public):

“You can update your system with unsupported packages from this untrusted PPA by adding ppa:hardware-certification/public to your system's Software Sources. (Read about installing)”

First, let's try to see if the package installation was successfull or not:

1. type :
    plainbox --version
You should see `0.26`
2. If 1. was successful, try running `checkbox-cli`.

If not, you may have to uninstall both `python3-checkbox-ng` and `checkbox-ng` packages before retrying to install the latest version:

sudo apt-get remove --purge python3-checkbox-ng checkbox-ng

Then try installing the packages again.

Hope this helps!

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

> Regarding the instructions to add the PPA, they are on the overview page

Yes, I read that. But these instructions, with customized text, seem to me incomplete and awkward. They don't tell you how to use the key. The linked page you mentioned has another link ("Read about installing") which tells you how to add a PPA with key etc in one line. That line is not customized, and the sample PPA "format" doesn't look like yours (naive user would be looking for something that ends with /PPA).
 Why not provide the one-line command with your PPA in it?

Anyway, yes there was a conflict. I had to uninstall those packages in order to proceed. It seems to me this is a bug; a conflict should arise, and it should tell me what to uninstall.

Secondly, I installed checkbox-converged package and from it ran checkbox-gui. It failed on the first screen, where it hung with an empty window called Suite Selection.

Revision history for this message
Pierre Equoy (pieq) wrote :

> But these instructions, with customized text, seem to me incomplete and awkward.

You're right, I modified the instructions in the PPA page [1] to configure the PPA and install the necessary packages to run Checkbox.

> Anyway, yes there was a conflict. I had to uninstall those packages in order to proceed. It seems to me this is a bug; a conflict should arise, and it should tell me what to uninstall.

We'll try to fix this! We usually don't run into this kind of issues because we use Checkbox for hardware certification, which means we usually install Checkbox on a freshly installed hardware (and usually, if we have to test the same hardware again later, we start off clean and install a fresher or updated version of Ubuntu).

> Secondly, I installed checkbox-converged package and from it ran checkbox-gui.

checkbox-converged does not provide a checkbox-gui tool, so if you ran checkbox-gui, it ran the same one as you previously used.
Instead, just launch the dash (by pressing the Windows key on your keyboard) and search for “Checkbox Converged”. You should be able to launch it from there.

If you want to run it from the command line, you can run the following command:

    qmlscene --settings=/usr/share/checkbox-converged/settings.json $@ /usr/share/checkbox-converged/checkbox-touch.qml

Hope all this helps!

[1] https://launchpad.net/~hardware-certification/+archive/ubuntu/public

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

Thanks.

On the PPA: That page still has the old "Adding this PPA to your system" instructions more prominently.

Is this software not meant for the masses who want to contribute to a hardware database, then? I wish my Lenovo T450s would run better, but I won't bother with checkbox if it's not helping.

Also, I ran your command both ways, and the program asked me to "enter password" using its own input dialog. It did this even when I ran it with sudo from cli. I consider that inappropriate and insecure behaviour, so I stopped there.

Revision history for this message
Pierre Equoy (pieq) wrote :

Checkbox has been created to test a specific system (desktop, laptop, server, etc.) with a set of tests (manual or automatic). Its purpose is not to create a hardware database, but instead to help users/testers to check the status of a system with a given version of Ubuntu.

Thanks for your suggestions. Please feel free to join us on IRC (#checkbox channel on Freenode) or on our mailing list [1] if you want to discuss changes within Checkbox.

[1] https://lists.ubuntu.com/mailman/listinfo/checkbox-devel

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.