Bug 377040

Summary: SFTP: filesystem unmounts itself after a while
Product: [Applications] kdeconnect Reporter: Yuxuan Shui <yshuiv7>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: simonandric5
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Fix mountpoint problem
Use -o reconnect for sshfs

Description Yuxuan Shui 2017-03-01 02:27:53 UTC
In the log:

kdeconnect.plugin.sftp: stdout: "Received disconnect from <ip> port 1739:2: User idle has timed out after 600000ms.\r\nDisconnected from <ip> port 1739\r\n"
kdeconnect.plugin.sftp: stdout: "remote host has disconnected\n"
kdeconnect.plugin.sftp: Process finished (exit code:  0 )
kdeconnect.plugin.sftp: "<Phone>" Remote filesystem unmounted
kdeconnect.plugin.sftp: Unmount KProcess(0x1cdbcd0)
kdeconnect.plugin.sftp: Destroy mounter

I was expect the filesystem to only be unmounted when the device is unreachable.
Comment 1 Yuxuan Shui 2017-03-01 02:32:10 UTC
And plus, after device become unreachable, the mountpoint is still there.

sshfs is killed, but fusermount is not run.
Comment 2 Yuxuan Shui 2017-03-01 05:43:25 UTC
Created attachment 104284 [details]
Fix mountpoint problem
Comment 3 Yuxuan Shui 2017-03-01 05:43:46 UTC
Created attachment 104285 [details]
Use -o reconnect for sshfs
Comment 4 Albert Vaca Cintora 2017-03-06 21:16:54 UTC
Hey Yuxan,

Thanks for your patch! Why don't you submit it through https://reviewboard.kde.org/ ? I have some questions/comments and it's easier over there.

Thanks again,
Albert
Comment 5 Yuxuan Shui 2017-03-12 00:13:56 UTC
Review board: https://git.reviewboard.kde.org/r/129993/

This is the first patch, I don't know how to submit multiple patches..