Bug 377040 - SFTP: filesystem unmounts itself after a while
Summary: SFTP: filesystem unmounts itself after a while
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-01 02:27 UTC by Yuxuan Shui
Modified: 2017-03-15 18:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Fix mountpoint problem (4.67 KB, patch)
2017-03-01 05:43 UTC, Yuxuan Shui
Details
Use -o reconnect for sshfs (1.07 KB, patch)
2017-03-01 05:43 UTC, Yuxuan Shui
Details

Note You need to log in before you can comment on or make changes to this bug.
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..