I saw there were a lot of ksmbd changes (commits) in kernel 6.1.71.
Having compiled a new build this morning I cannot access the root directory of shared disk. Actually it opens but is shown as empty on all devices.
but not visible in file explorers on different devices.
Writing to the root shared folder is not possible either. I can write to the down directories if I access them directly via address bar.
It worked normally with kernel 6.1.69.
I can view and access the mounted device directories with cd and ls commands via router SSH console and I can open some shared directories down the root directory from Windows File Explorer typing the address in the address bar.
Anyone else seeing this?
I agree, although they removed even the experimental warning with the last updates because it became mature enough. But the issue I've faced looks really prime one and cannot be neglected.
I would like to ask for your help with KSMBD.
My configuration is:
Router: TP-Link Archer C2600 with OpenWrt 22.03.6
KSMBD: ksmbd-server 3.4.5-4
USB1: USB 3.0 Sata adapter, 960GB Sandisk SSD, EXT4 file system
USB2: USB 3.0 SanDisk Ultra USB Flash Drive, exFAT file system
Problem: I randomly get 0x8007003B error when I copy files (usually bigger, 2GB+ files) to the KSMBD share.
So mostly I cannot copy big files because at some random point, they will fail. Windows Explorer says "An unexpected network error occurred.", Total Commander says "Please remove the write protection!"
Normally I used only the SSD, but for testing purposes I connected a USB flash drive also. Same error with the flash drive. Small files are usually OK, but with big files I get this error.
After some searching, I set the server max protocol to SMB1. I'm not sure if it has any effect or not, with KSMBD. uci set ksmbd.@globals[0].server_max_protocol='SMB1'
But unfortunately it did not fix the problem.
There is nothing in the logs of the router.
The SSD works perfectly when I use VSFTPD and it also worked with my previous Netgear R6260 router.
Thanks for the info, but on the link you put above I see the latest release is 3.4.8.
Maybe someone who maintains the package should update the version at least on the OpenWrt master branch.
last time I tried it I could not use capitals letter in the share name
but the big one was wile one pc is writing files to the device
another pc could access it or was timing out
looking back in here it was user rights related and hidden share "$"
maybe it's better now it's been a while
I want to share now another possible bug. After trying the version 3.5.1 I see another glitch.
On Windows 11 PC that is a wireless client of shared SSD I see really slow browsing of the shares. Forward and backward browsing trough shares (directory changing) takes a lot of time - 30 seconds and even more sometimes. Restating of the OS didn't help.
With previous build the browsing through shares was normal.
All other clients browse the shares normally. Windows 11 wired PC, Android TV set-top boxes, Android Smart Phones, all of them browse OK.
Doing more tests seems like this is random and sometimes changing from one to another shared directory is immediate but most of the time there is a delay before the directory is opened and strange or not it takes exactly 40 seconds every time.
It seems the problem is "solved" now. I think it was something about overwriting files and/or changing/deleting folders. As I was testing it more and more, I realized it happened when I was overwriting files. When I was copping into a different folder, I think it always worked correctly. (I copied about 80GB of files without overwriting and it succeeded.)
But there was also a problem with deleting folders with content. It showed that it was deleted, but after a refresh it was still there. Empty folders were deleted without a problem, so first I had to empty the folders and then delete the folder.
But to "fix" it (or "avoid" it), I installed OpenWrt 23.05.2 because it had a newer version of KSMBD. So I also installed the latest KSMBD 3.4.8, then using the same configs, same SSD, same partitions, it is all OK now.
I do not know what went wrong, but after an OpenWRT update and a fresh KSMBD install it works well. I wish I could max out the Gbps speed, but ~400Mbps (~50MB/s) is OK for now