SMB: File lock after aborted upload - STATUS_SHARING_VIOLATION

rosaLux161

Cadet
Joined
Feb 5, 2020
Messages
2
Hello,

I am encountering a strange problem. When I copy files to a SMB share with an Android app (FolderSync) and this copy process stops during a file (e.g. network problems), then this file can no longer be modified or deleted.

There are several messages for this:

Android: [B]STATUS_SHARING_VIOLATION (0xc0000043)[/B]

PC: File is opened by another user

TrueNAS (smbstatus):

Code:
using configfile = /usr/local/etc/smb4.conf

Samba version 4.12.9

Locked files:
Pid          User(ID)   DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
9954         1000       DENY_ALL   0x12019f    RDWR       NONE             /mnt/abc   def/xyz.part   Thu Jan 28 11:49:36 2021
10002        1000       DENY_ALL   0x12019f    RDWR       NONE             /mnt/abc   def/abc.part   Thu Jan 28 11:50:58 2021
9944         1000       DENY_ALL   0x12019f    RDWR       NONE             /mnt/abc   def/gdfsgdfgpart   Thu Jan 28 11:49:03 2021



It seems that TrueNAS assumes that this file is still open due to the dropped connection. Does anyone have any idea?

TrueNAS is running Version TrueNAS-12.0-U1.1
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Might be a bug that will be fixed in U2. If you want to verify that it's not an issue, PM me and I'll provide a dev snapshot and testing instructions.
 
Top