don't crash if sshfs is not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Fix Released
|
Medium
|
Germar |
Bug Description
By updating from Ubuntu 13.10 t0 14.04 sshfs somehow got de-installed, which I did not notice.
Starting bit being configured taking snapshots to a ssh-destination showed the gui for some seconds and then crashed. On the cl bit gave me following backtrace:
simon@laptop:~$ gksudo backintime-gnome
Back In Time
Version: 1.0.34
Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime-gnome --license' for details.
Traceback (most recent call last):
File "/usr/share/
main_window = MainWindow( cfg, app_instance )
File "/usr/share/
hash_id = mnt.mount()
File "/usr/share/
return tools.mount(check = check)
File "/usr/share/
self._mount()
File "/usr/share/
subprocess.
File "/usr/lib/
retcode = call(*popenargs, **kwargs)
File "/usr/lib/
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
simon@laptop:~$
After "sudo apt-get install sshfs" bit now works.
For the user it would be better to not crash, but show a notice that sshfs could not be found and suggest to install it (or to change the config to a local destination).
Changed in backintime: | |
status: | Triaged → Fix Committed |
Changed in backintime: | |
status: | Fix Committed → Fix Released |
BIT does already check if sshfs is installed. But only after pressing OK in Settingsdialog. I'll change this to run every time sshfs will be called.