sshfs mounted device got disconnected.

Bug #371776 reported by Tien Nguyen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sshfs-fuse (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: sshfs

After upgraded to 9.04. This command:
sshfs user-name@192.168.1.2:/media/my-disk ~/fs/my-mount-folder/

executed propely as usual. However, after copying files for roughly 5 minutes, the mount point got disconnected and copy operation failed. I have use rsync, cp, and even nautilus GUI to copy the folders. They all failed after the mount point disconnected.

This only happened after upgraded to 9.04. And there is nothing showed in "dmesg"

Regards,
Tien,

Revision history for this message
Geoffrey (geoffrey-dommett) wrote :

I have seen this before, and in 9.04 as well.

When running a program that continuously appends lines of text data to a file over an sshfs mount, sshfs crashes every time.

Ironically, turning on the debug output with the -d switch is the only thing that makes the problem go away, though it cripples the execution speed, so this supplies no information.

I am 99% sure that it must be some kind of stack or buffer overflow as:

 trickle -s -u 150 -d 150 sshfs -f Geoffrey@xxxxxxxxxxx: xxxxxxxxxxxx/

executes successfully, albeit with the program executing at a quarter the speed it should.

(trickle limits the network bandwidth available to the process)

This would indicate a problem with outstanding requests, but, setting -o max_read=1 and / or -o max_write=1 does not solve this, or make any discernible difference whatsoever.

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. If you could test the current Ubuntu development version, this would help us a lot. If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect 371776, and any other logs that are relevant for this particular issue.

Changed in sshfs-fuse (Ubuntu):
status: New → Incomplete
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Further information from the sshfs FAQ file at
http://apps.sourceforge.net/mediawiki/fuse/index.php?title=SshfsFaq

Solution: add

ServerAliveInterval 15

in your .ssh/config (or use -o ServerAliveInterval=15 on the sshfs command line but I did not test that solution). This will force the ssh connection to stay alive even if you have no activity.

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in sshfs-fuse (Ubuntu):
status: Incomplete → Invalid
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.