Bug 478377 - RFE: give nicer UI when disk fills up.
Summary: RFE: give nicer UI when disk fills up.
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-packagekit
Version: 9
Hardware: athlon
OS: Linux
low
low
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-29 06:13 UTC by David Timms
Modified: 2009-01-27 01:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-01-27 01:56:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
screnshot of yucky dialog (54.38 KB, image/png)
2008-12-29 06:13 UTC, David Timms
no flags Details
complete exception trace (3.12 KB, text/plain)
2008-12-29 06:14 UTC, David Timms
no flags Details

Description David Timms 2008-12-29 06:13:24 UTC
Created attachment 327908 [details]
screnshot of yucky dialog

Description of problem:
Ugly message in tiny error box, if PackageKit fills the disk while trying to check for updates.

Version-Release number of selected component (if applicable):
gnome-packagekit-0.3.12-3.fc9.i386

How reproducible:
Yes.

Steps to Reproduce:
1. Almost completely fill your disk where yum cache hides.
2. Let PK do it's background checking for updates.
  
Actual results:
Tiny non-expandable dialog: containing when details clicked:
Error Type: <type 'exceptions.IOError'>
Error Value: [Errno 28] No space left on device
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2280, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2277, in main
    backend.dispatcher(sys.argv[1:])

Expected results:
1. Perhaps there is already out of disk space style error dialogs available elsewhere in gnome/freedesktop/fedora, that could be triggered. If not maybe such a general thing would be a general enhancement in the future.

2. Specifically trap the exception, and provide a dialog with a nice message like "
Package detected an error:
While attempting to retrieve the list of available updates, the device containing the update cache [/var/cache/x] reported no disk space left.
PackageKit can resume normal operation once some action is taken to reduce the disk usage on that device."

Comment 1 David Timms 2008-12-29 06:14:18 UTC
Created attachment 327909 [details]
complete exception trace

Comment 2 Richard Hughes 2009-01-08 12:13:47 UTC
commit 3fb28f0b5580e02a04eb996b1793e61cfd15f850
Author: Richard Hughes <richard>
Date:   Thu Jan 8 12:12:52 2009 +0000

    yum: catch IOError and handle out of disk space. Fixes RH#478377

Comment 3 Richard Hughes 2009-01-08 12:28:02 UTC
commit e3d6ba4c21a7c21a4eafb1c16c537dc7cbb2ea68
Author: Richard Hughes <richard>
Date:   Thu Jan 8 12:26:27 2009 +0000

    trivial: add a 'no-space-on-device' error enum and use it in the yum backend

Comment 4 Fedora Update System 2009-01-08 17:11:07 UTC
PackageKit-0.3.13-1.fc10,gnome-packagekit-0.3.13-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/PackageKit-0.3.13-1.fc10,gnome-packagekit-0.3.13-1.fc10

Comment 5 Fedora Update System 2009-01-15 02:51:29 UTC
PackageKit-0.3.13-1.fc10, gnome-packagekit-0.3.13-1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update PackageKit gnome-packagekit'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0352

Comment 6 Fedora Update System 2009-01-27 01:56:35 UTC
PackageKit-0.3.13-1.fc10, gnome-packagekit-0.3.13-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.