don't crash if sshfs is not found

Bug #1316288 reported by sjjh on 2014-05-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Back In Time
Fix Released

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/backintime/gnome/", line 1294, in <module>
    main_window = MainWindow( cfg, app_instance )
  File "/usr/share/backintime/gnome/", line 340, in __init__
    hash_id = mnt.mount()
  File "/usr/share/backintime/common/", line 79, in mount
    return tools.mount(check = check)
  File "/usr/share/backintime/common/", line 200, in mount
  File "/usr/share/backintime/common/", line 104, in _mount
    subprocess.check_call(sshfs, env = env)
  File "/usr/lib/python2.7/", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden

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).

Germar (germar) wrote :

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.

Changed in backintime:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Germar (germar)
milestone: none → 1.0.36
Germar (germar) on 2014-05-05
Changed in backintime:
status: Triaged → Fix Committed
Germar (germar) on 2014-08-06
Changed in backintime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers