usb_test crashed with IOError in MD5HashFile(): [Errno 2] No such file or directory: '/media/0752d43e-50a5-404a-8f80-8590d7afeb6a/tmpir4Tft'

Bug #887778 reported by Matt Fischer
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
New
Undecided
Unassigned

Bug Description

OS: Ubuntu 11.10
checkbox-gtk:
  Installed: 0.12.8

Actual Results:
The USB/storage-transfer test crashed.

I have a USB HDD that was owned by root and I cannot write to it (I didn't know this at the time) and the result is this crash. The test probably should gracefully handle this failure to write to a device.

Expected Results:
That the test doesn't crash.

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: checkbox 0.12.8
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 50e2022c70b67da9a656b835f810a8a3
CheckboxSystem: b845c366ea09c60efa3a45c1b5b21525
Date: Tue Nov 8 13:34:08 2011
ExecutablePath: /usr/share/checkbox/scripts/usb_test
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/share/checkbox/scripts/usb_test -t
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/checkbox/scripts/usb_test', '-t']
SourcePackage: checkbox
Title: usb_test crashed with IOError in MD5HashFile(): [Errno 2] No such file or directory: '/media/0752d43e-50a5-404a-8f80-8590d7afeb6a/tmpir4Tft'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Matt Fischer (mfisch) wrote :
description: updated
visibility: private → public
Revision history for this message
Matt Fischer (mfisch) wrote :

The file "checkbox logfile" was done on a second run in order to capture the logs per the bug filing directions.

Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make Ubuntu better. This particular crash has already been reported and is a duplicate of bug #877581, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
Revision history for this message
Daniel Manrique (roadmr) wrote :

The usb_test will try to write and read a file in *all* present USB devices. We assume a bunch of things in the code, mainly that the USB drives will be writable by the current user, which is true for standard-issue VFAT USB sticks, but will probably fail on an ext3/4 drive unless permissions are handled carefully. If things fail, the script will unceremoniously crash as seen in this report. So:

- The script needs to gracefully handle the case where a device is unwritable. Simplistically we could run the test as root, but I'd rather not :)
- The script needs to handle multiple USB devices in a sane maner, or at least warn the user that it's about to write files on all connected devices (the current description is less than clear about this).

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.