Samba4 sometimes terminates

Hello!,

So I was just playing around with Samba4, and I noticed when I start to create heavy load on the Samba4 server with multiple downloads via Windows Explorer.

My Samba share stops working and stops the connection entirely to my pc.

I was wondering how that comes and could that be prevented?

heres my ubus info:

root@OpenWrt:~# ubus call system board
{
        "kernel": "5.15.114",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 1",
        "model": "Globalscale MOCHAbin",
        "board_name": "globalscale,mochabin",
        "rootfs_type": "ext4",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.0-rc1",
                "revision": "r23069-e2701e0f33",
                "target": "mvebu/cortexa72",
                "description": "OpenWrt 23.05.0-rc1 r23069-e2701e0f33"
        }
}

I'm using a external sata III drive of 1TB where I derived 1GB to /overlay and remaining to /opt, I assume I did nothing wrong here? (I do notice sometimes my memory usage gets really high)
Fstab:

config global
        option anon_swap '0'
        option anon_mount '0'
        option auto_swap '1'
        option auto_mount '1'
        option delay_root '5'
        option check_fs '0'

config mount
        option target '/mnt/mmcblk0p1'
        option uuid '84173db5-fa99-e35a-95c6-28613cc79ea9'
        option enabled '0'

config mount
        option target '/'
        option uuid 'ff313567-e9f1-5a5d-9895-3ba130b4a864'
        option enabled '0'

config mount
        option target '/mnt/sda1'
        option uuid '4e2f758c-b5cc-4ae1-ae10-0a8fcb35b1ca'
        option enabled '0'

config mount                                              
        option target '/overlay'                         
        option uuid '4e2f758c-b5cc-4ae1-ae10-0a8fcb35b1ca'
        option enabled '1'

config mount
        option target '/mnt/sda2'
        option uuid '596e85fc-02b4-42f6-ad01-7e59c964d10e'
        option enabled '0'

config mount                                              
        option target '/opt'                         
        option uuid '596e85fc-02b4-42f6-ad01-7e59c964d10e'
        option enabled '1'

Thanks :smiley:

Do you see anything in dmesg or logread that would indicate OOM or something else? If you don't need the full-blown samba4 package, recommend you try the lighter weight ksmbd for your file sharing needs.

so far I don't see any error, but I think it might be also a windows thing maybe I gonna trail and test further, it seems to also happen with 10gb files and then with many concurent connections at once.

edit

I think I see what is happening...
inside the windows system logs I read this error:
disk error 153

after some searching it sometimes happen if the driver is wrong, but also if it is overloaded or the energy scheme is not configurated correctly.

in my case I think it is because I copy from multiple sources at once which means I have multiple devices accessing it at once so my Windows terminates it because it wants to protect the files for getting corrupt.

Thanks for the help anyway :+1: :grinning:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.