Bug 464009

Summary: Deleting multiple big files though SMB causing errors
Product: [Frameworks and Libraries] kio-extras Reporter: gudvinr+kde
Component: SambaAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kdelibs-bugs, nate, sitter
Priority: NOR    
Version: 22.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description gudvinr+kde 2023-01-08 16:45:36 UTC
SUMMARY

When I remove a lot of big files via SMB (in dolphin), I get "Device or resource busy" error.

If it's small files or when I remove just single file it doesn't seem to happen.

STEPS TO REPRODUCE
1. Connect to SMB share (not CIFS mounted FS)
2. Go to folder with multiple big files (e.g. movies, series, etc)
3. Select multiple files
4. Delete

OBSERVED RESULT
Device or resource busy error

EXPECTED RESULT
No errors, files are deleted

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8
Kernel Version: 6.1.3-zen1-1-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

I don't know if it's KIO issue but it doesn't seem to be dolphin or generic filesystem bug so I put it here.
Comment 1 Harald Sitter 2023-01-11 12:41:50 UTC
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_IOSlaves/Debugging_kio_smb#Reporting_Bugs

Sound like an upstream samba bug though TBH.
Comment 2 Harald Sitter 2023-01-11 12:45:48 UTC
I also cannot reproduce this with samba 4.15.9
Comment 3 Harald Sitter 2023-01-11 12:50:57 UTC
Oh oh oh, it could also be a variant of this bug https://bugs.kde.org/show_bug.cgi?id=396630

In case your server is samba you can run smbstatus on the server side to check out the locked files, are the failing files maybe locked there?
Comment 4 gudvinr+kde 2023-01-11 13:08:54 UTC
I use samba 4.17.4 on client side and 4.13.13-Debian on server side.

Yes, smbstatus says there are locked files that I am trying to delete.
Comment 5 Harald Sitter 2023-01-11 16:08:50 UTC
Alright, pretty sure it's a duplicate then. Also explains why big files are more affected since they may take longer to generate previews for.

*** This bug has been marked as a duplicate of bug 396630 ***
Comment 6 gudvinr+kde 2023-01-12 10:12:51 UTC
Thumbnails and SMB don't work together very well indeed. I found another issue (bug 464009) a while ago.
Comment 7 gudvinr+kde 2023-01-12 10:17:26 UTC
I meant bug 457592, wrong number copied from clipboard