Backintime crashes when trying to free space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Backintime, ran with
sudo backintime-kde4 --config /root/.
quits with
INFO: Keep min free disk space: 1024 Mb
Traceback (most recent call last):
File "/usr/share/
start_app()
File "/usr/share/
take_snapshot( cfg, True )
File "/usr/share/
snapshots.
File "/usr/share/
self.
File "/usr/share/
info = os.statvfs( self.config.
OSError: [Errno 95] Operation not supported: '/tmp/backintim
It is apparent that there is no error handling after os.statvfs. I tried to reproduce the bug in a short python script after running backintime (using the mounted path):
import os
import statvfs
os.stat(
info = os.statvfs(
free_space = info[ statvfs.F_FRSIZE ] * info[ statvfs.F_BAVAIL ] / ( 1024 * 1024 )
Surprisingly this does not produce any errors.
My backintime is from ubuntu packages, version: 1.0.34 .
I guess this is because you're starting with sudo.
kdesudo and sudo behave a bit different. That's also why BIT didn't find your config automatically because with sudo $HOME is /home/USER and with kdesudo it is /root.
Please try again with 'kdesudo "backintime -b" '.
Regards,
Germar