msanger / flyback

Automatically exported from code.google.com/p/flyback
0 stars 0 forks source link

IndexError: list index out of range #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attempting to perform a backup using the GUI appears to do nothing at all.

Running the application from a command line results in the following error 
output:

$ df "/usr/local/torrents"
['/dev/mapper/vg-torrents']
Traceback (most recent call last):
  File "/usr/share/flyback/select_backup_gui.py", line 31, in open_backup
    self.register_gui( create_backup_gui.GUI(self.register_gui, 
self.unregister_gui) )
  File "/usr/share/flyback/create_backup_gui.py", line 90, in __init__
    self.refresh_device_list()
  File "/usr/share/flyback/create_backup_gui.py", line 49, in 
refresh_device_list
    free_space = util.humanize_bytes(backup.get_free_space(uuid))
  File "/usr/share/flyback/backup.py", line 150, in get_free_space
    return int(x[-3])*1024
IndexError: list index out of range

I'm guessing the error happens due to the length of the device name an the 
fact that the output takes two lines as shown below:

$ df "/usr/local/torrents"
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg-torrents
                      15481840   2637392  12844448  18% /usr/local/torrents

Original issue reported on code.google.com by jamin.co...@gmail.com on 19 Dec 2009 at 9:49

GoogleCodeExporter commented 9 years ago
i think this is fixed in revision 2b28be414c.  can you test?

Original comment by pub...@kered.org on 19 Feb 2010 at 4:43

GoogleCodeExporter commented 9 years ago
The system this was experienced on has been completely rebuilt.  Additionally, 
I've 
switched to Back in Time for backups.

Original comment by jamin.co...@gmail.com on 19 Feb 2010 at 7:14