Bug 511408

Summary: "Cannot rename" error when moving or trashing files the first time Dolphin is opened to and from a bind-mounted folder from another disk
Product: [Applications] dolphin Reporter: Yunus İşleyen <dekamir>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: agurenko, dekamir, dolphin-bugs-null, jan-bugs, linx.system.adm, pallaswept, sephiroth_pk, surlaget
Priority: NOR    
Version First Reported In: 25.08.2   
Target Milestone: ---   
Platform: CachyOS   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=511658
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Toast error when trashing a folder on a fresh boot of Dolphin on a bind-mounted directory
Pop-up when trashing a folder on a fresh boot of Dolphin on a bind-mounted directory

Description Yunus İşleyen 2025-10-31 03:05:00 UTC
Created attachment 186351 [details]
Toast error when trashing a folder on a fresh boot of Dolphin on a bind-mounted directory

SUMMARY
When moving or trashing files/folders, Dolphin throws an error as a red toast (moving) or an error pop up (trashing).
When "extract and deleting" an archive, Dolphin throws an error as an error pop up.

"Could not rename file <original file> to <destination file>".

This happens the first time I do this after opening Dolphin. If you try again right away, it works. After restarting Dolphin, it happens again. 

This probably happens as I have bind-mounts in my home folder for some directores from one disk to another. Both disks are fine and healthy. Both partitions are EXT4. When doing these actions elsewhere on a fresh launch of Dolphin, it works fine.

/etc/fstab:
# <file system>  <mount point>   <type>  <options>           <dump>   <pass>
UUID=<uuid 1>    /boot           vfat    umask=0077          0        2 
UUID=<uuid 2>    /               ext4    noatime,commit=60   0        1 
tmpfs            /tmp            tmpfs   noatime,mode=1777   0        0 
/dev/nvme0n1p1   /depo           ext4    nofail              0        0 
# Bind mounts for user folder
/depo/aran/Documents   /home/aran/Documents   none   bind   0 0
/depo/aran/Pictures    /home/aran/Pictures    none   bind   0 0
/depo/aran/Music       /home/aran/Music       none   bind   0 0
/depo/aran/Videos      /home/aran/Videos      none   bind   0 0
/depo/aran/Downloads   /home/aran/Downloads   none   bind   0 0


STEPS TO REPRODUCE
1. Move, or trash a file or a folder (or 'extract & delete' an archive) on a bind-mounted directory from another disk


OBSERVED RESULT
Output when extract & deleting or trashing:
- As a pop up: Could not rename file "/home/aran/Downloads/<filename>" to "/home/aran/.local/share/Trash/files/<fılename>"

- Output on terminal: kf.kio.workers.file: Could not rename file "/home/aran/Downloads/<filename>" to "/home/aran/.local/share/Trash/files/<filename>"

Output when moving:
- As a red toast: Could not rename file "/home/aran/Downloads/<filename>"


EXPECTED RESULT
No errors


SOFTWARE/OS VERSIONS
Linux: 6.17.5-2-cachyos (64-bit)
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Comment 1 Yunus İşleyen 2025-10-31 03:07:37 UTC
Created attachment 186352 [details]
Pop-up when trashing a folder on a fresh boot of Dolphin on a bind-mounted directory
Comment 2 Riccardo Robecchi 2025-10-31 12:19:21 UTC
I see this too when trying to move files to an NFS mount. If I try again, it works without issues.
Comment 3 Yunus İşleyen 2025-11-04 07:09:49 UTC
The cold-start Dolphin part doesn't seem to be correct. It can happen after some time too. The exact timing is unknown.
Comment 4 JanKusanagi 2025-11-10 19:13:11 UTC
I'm seeing this same thing while moving files or folders between two different partitions, usually while moving from /home/user/ to /home/user/SymLinkedDirToAnotherPartition/SomeFolder/

I guess the bug might be in KIO, not Dolphin itself.
Comment 5 pallaswept 2025-11-11 04:05:50 UTC
I'm seeing this trashing files recently. I had not reported it as I suspected that it was pilot error, as I have recently moved my trash directory to a different BTRFS subvolume, until today I saw it on reddit and realised it's not just me.
Comment 6 surlaget 2025-11-11 16:24:10 UTC
I am also experiencing this issue with the Folder View and Trash widgets. The widgets and Dolphin seem to be separate, since I can trigger the bug once for each. And, the widgets seem to share whatever is going on. If I right click > move to trash from the folder view, it won't trigger when dragging to the trash widget, and vice versa.
Comment 7 Riccardo Robecchi 2025-11-23 23:21:07 UTC
This seems to be the same issue reported with bug 510810. If the issue persists after installing KDE Frameworks 6.20, please open a new bug. Thanks!

*** This bug has been marked as a duplicate of bug 510810 ***