Unmount of sshfs fails

Bug #188811 reported by none
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
fuse (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have my account at a web hosting provider mounted via sshfs. If I only use fusermount to mount and unmount, everything works perfectly. I thought I'd use fstab instead and added the line

sshfs#nullinfinity.org: /home/jbr/Desktop/nullinfinity fuse user,noauto

to /etc/fstab. I can then still mount my account using "mount /home/jbr/Desktop/nullinfinity" and access my files normally.

BUT: when I try to unmount the account using "umount /home/jbr/Desktop/nullinfinity" the umount goes haywire:

$ ps auxw |grep umount |wc -l
269
$ ps auxw |grep umount |wc -l
bash: pipe error: Too many open files in system
bash: start_pipeline: pgrp pipe: Too many open files in system
$

Now there's lots of disk activity and the OOM killer starts killing random processes. If I do Ctrl-C on the umount process quickly enough, I can recover. But sometimes the only thing that helped was a hard poweroff.

This is with fuse-utils 2.7.2-1ubuntu1 on Hardy/amd64 and kernel 2.6.24-5.8-generic. I've also tried running the system with the Feisty kernel and the same thing happened.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in fuse:
status: New → Incomplete
Revision history for this message
none (ubuntu-bugs-nullinfinity-deactivatedaccount) wrote :

With a fully up-to-date Intrepid, the unmounting no longer kills the system. However, it's still buggy. When I carry out the exact same steps as above and try to unmount I get

$ umount ~/Desktop/nullinfinity
umount: /home/jbr/Desktop/nullinfinity mount disagrees with the fstab

Revision history for this message
Scott Talbert (swt-techie) wrote :

I see the same problem with Intrepid. I can't un-mount sshfs with 'umount'. 'fusermount' works fine.

Changed in fuse:
status: Incomplete → Confirmed
Revision history for this message
Dawning (dawning) wrote :

My Intreprid (amd64) that's fully up to date is also having these "..disagrees with the fstab" issues. I have been dealing with it by unmounting with "sudo umount -f <mount dir>" - but I don't like that "fix" as I mount the shares as a user and of course that's not addressing whatever the problem really is.

I've also noticed on a box that I'm sshfs connecting to a new problem involing (I think) a kernel module crashing. My /var/log/messages has core dumps from several processes that periodically die. That issue is causing my UI to freeze for minutes at a time - I'm not convinced that it is related to this issue.

Revision history for this message
Luke Schlather (luke2760) wrote :

The umount bit is documented in this bug:

https://bugs.launchpad.net/ubuntu/+source/sshfs-fuse/+bug/243298

If the thrashing crash issue has disappeared, then I think this bug can be marked as fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.