Bug 357731 - Unable to copy files/folder from local fs to a remote sshfs mounted using afuse.
Summary: Unable to copy files/folder from local fs to a remote sshfs mounted using afuse.
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.1.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-09 10:43 UTC by Infanta Xavier
Modified: 2022-12-29 05:24 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Infanta Xavier 2016-01-09 10:43:38 UTC
Unable to copy paste files/folder from local fs to a remote sshfs mounted using afuse.
Using the following.

Afuse : https://github.com/pcarrier/afuse
Systemd unitfile : https://gist.github.com/xavier83/5a536805f9b65d62cdc9


Reproducible: Always

Steps to Reproduce:
1. mount afuse /usr/bin/afuse -f -o big_writes -o auto_unmount -o flushwrites -o mount_template=sshfs -o ServerAliveInterval=10 -o reconnect %r:/ %m -o unmount_template=fusermount -u -z %m /home/user/.mnt/ssh
2. Navigate to /home/user/.mnt/ssh/<remote> using dolphin (automounts)
3. Navigate to <local fs> on another tab.
4. copy a file/folder from local fs tab and try to paste it on afuse tab.

Actual Results:  
files/folder not getting copied

Expected Results:  
files/folder to be copied

tested using cp and it copies the files. not working only on dolphin. strangely creating new directory or file using context menu works.
Comment 1 Frank Reininghaus 2016-01-14 21:19:47 UTC
Thanks for the bug report. Might be a KIO issue.
Comment 2 Infanta Xavier 2016-01-16 07:41:04 UTC
@Frank(In reply to Frank Reininghaus from comment #1)
> Thanks for the bug report. Might be a KIO issue.

You are right, when I run dolphin connected to a terminal. I receive the following log message when I try to reproduce the bug.

kf5.kio.core: KLocalSocket(0xbdb240) Jumbo packet of 35296 bytes
Comment 3 Infanta Xavier 2016-01-16 10:11:25 UTC
(In reply to Infanta Xavier from comment #2)
> @Frank(In reply to Frank Reininghaus from comment #1)
> > Thanks for the bug report. Might be a KIO issue.
> 
> You are right, when I run dolphin connected to a terminal. I receive the
> following log message when I try to reproduce the bug.
> 
> kf5.kio.core: KLocalSocket(0xbdb240) Jumbo packet of 35296 bytes

i was trying to debug, and noticed that 
job->errorString() was "Could not write file .\nDisk full." in
void DolphinView::slotPasteJobResult(KJob *job) in dolphinview.cpp:1100

also noticed that the statusbar free space widget when on /home/user/.mnt/ssh/<remote> reported "Unknown Size".

the corresponding mounts:
afuse on /home/user/.mnt/ssh type fuse.afuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
fedold:/ on /tmp/afuse-fqPWBG/fedold type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

but df -h returned
fedold:/              50G   21G   26G  45% /tmp/afuse-fqPWBG/fedold
Comment 4 Infanta Xavier 2016-01-17 09:28:36 UTC
this could be the cause of the bug but not sure.

https://github.com/pcarrier/afuse/issues/4

the issue could be this,
in KDiskFreeSpaceInfo::freeSpaceInfo method 
KMountPoint::currentMountPoints().findByPath(path) returns "/home/user/.mnt/ssh"
had it returned the actual proxy path which is "/tmp/afuse-fqPWBG/fedold"
the subsequent statvfs call on the mount point path would've returned the correct freespace info
Comment 5 Nate Graham 2018-08-22 19:58:43 UTC
Similar problem to Bug 344146, where KIO incorrectly sees the mount has hazing zero free space.
Comment 6 Justin Zobel 2022-11-29 05:06:08 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-12-14 05:12:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-12-29 05:24:30 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!