Bug 756482 - systemd chokes on FUSE network mounts (like sshfs)
Summary: systemd chokes on FUSE network mounts (like sshfs)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 16
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-23 18:13 UTC by T.C. Hollingsworth
Modified: 2012-01-16 21:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-16 21:16:55 UTC
Type: ---


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 43204 0 None None None Never

Description T.C. Hollingsworth 2011-11-23 18:13:52 UTC
When adding an sshfs mount to /etc/fstab thusly:

sshfs#tc.0.3:/home/tc /mnt/ssh fuse defaults,idmap=user 1 2

systemd fails to mount it with the following errors in syslog:

Nov 23 11:09:00 indestructible systemd[1]: Job sshfs\x23tc\x40192.168.0.3.device/start timed out.
Nov 23 11:09:00 indestructible systemd[1]: Job mnt-ssh.mount/start failed with result 'dependency'.
Nov 23 11:09:00 indestructible systemd[1]: Job fsck@sshfs\x23tc\x40192.168.0.3.service/start failed with result 'dependency'.
Nov 23 11:09:00 indestructible systemd[1]: Job sshfs\x23tc\x40192.168.0.3.device/start failed with result 'timeout'.

It also fails when creating a similar "mnt-ssh.mount" unit file.

$ rpm -q systemd fuse fuse-sshfs
systemd-37-3.fc16.x86_64
fuse-2.8.6-1.fc16.x86_64
fuse-sshfs-2.3-1.fc16.x86_64

Also filed upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=43204

Comment 1 T.C. Hollingsworth 2011-11-23 18:20:48 UTC
I forgot to mention: this isn't a key issue or anything like that because "mount -a" handles it just fine.

Comment 2 Lennart Poettering 2012-01-12 15:16:10 UTC
If you add _netdev to the mount options, does that fix things for you?

(Also, make sure you run "systemctl enable NetworkManager-wait-online.service")

Comment 3 T.C. Hollingsworth 2012-01-16 20:48:55 UTC
Nope, same deal.

/etc/fstab:
sshfs#tc.0.3:/home/tc  /mnt/ssh  fuse  defaults,idmap=user,_netdev  1 2

syslog:
Jan 16 13:44:47 invincible systemd[1]: Job sshfs\x23tc\x40192.168.0.3:-home-tc.device/start timed out.
Jan 16 13:44:47 invincible systemd[1]: Job mnt-ssh.mount/start failed with result 'dependency'.
Jan 16 13:44:47 invincible systemd[1]: Job fsck@sshfs\x23tc\x40192.168.0.3:-home-tc.service/start failed with result 'dependency'.
Jan 16 13:44:47 invincible systemd[1]: Job sshfs\x23tc\x40192.168.0.3:-home-tc.device/start failed with result 'timeout'.

rpm -q systemd:
systemd-37-7.fc16.x86_64

Comment 4 Kay Sievers 2012-01-16 21:09:12 UTC
What's "1 2" doing here? I doubt you can fsck it. :)

Comment 5 T.C. Hollingsworth 2012-01-16 21:16:55 UTC
(In reply to comment #4)
> What's "1 2" doing here? I doubt you can fsck it. :)

Wow, that was pretty dumb of me.  Putting 0s there fixes it with or without "_netdev".

Sorry for the noise.


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