network_check crashed with OSError in _execute_child(): [Errno 2] No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
checkbox (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
On systems where zenity is not installed or otherwise fails to run, the network_check test crashes with an exception which may also trigger a bug report and is confusing to the user.
The error message is:
network_check crashed with OSError in _execute_child(): [Errno 2] No such file or directory
The development branch fixes this by properly catching the exception and outputting a useful error message to stdout instead. That way the test result will still be available even if zenity is not usable.
[Test Case]
- Either uninstall zenity (undesirable because it also removes metacity and unity-2d) or render it inoperable by renaming the executable.
- Manually run /usr/share/
- An exception trace will appear and the user will be asked to report a problem.
[Regression Potential]
A regression in the sense of the old behavior reoccurring is virtually impossible, as we're simply catching an exception that was previously being ignored. The new code is very unlikely to fail as it's just a print statement so no unrelated failures are introduced.
ProblemType: CrashDistroRelease: Ubuntu 11.10
Package: checkbox 0.12.8
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CasperVersion: 1.287
CheckboxSubmission: 1be3304fd540677
CheckboxSystem: d00f84de8a55581
Date: Wed Apr 25 10:34:02 2012
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.7
LiveMediaBuild: Lubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcCmdline: /usr/bin/python /usr/share/
ProcEnviron:
PATH=(custom, no user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
Title: network_check crashed with OSError in _execute_child(): [Errno 2] No such file or directory
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- Daniel Manrique (community): Approve
- Nathan Williams (community): Needs Resubmitting
-
Diff: 15 lines (+4/-1)1 file modifiedscripts/network_check (+4/-1)
tags: | removed: need-duplicate-check |
Changed in checkbox (Ubuntu): | |
importance: | Undecided → Medium |
Changed in checkbox (Ubuntu): | |
status: | Fix Committed → Fix Released |
description: | updated |
network_check calls the zenity command to display a success/failure graphical dialog box. My guess is that you didn't have zenity installed, which caused this failure when trying to call it as seen in the attached traceback.txt.
This is present on the most current version of the test, a way to fix it would be to wrap the "call" call (pardon the redundancy) on line 57 in a try:except block, so the exception thrown (OSError) is handled gracefully, maybe by just outputting a message to stdout.