SMB Shares dissappearing temporarily

Hello all:

I’ve been having this weird problem for the few months and I cannot figure out what is happening.

I’m running TrueNAS Scale ElectricEel 24.10.1.

I have created 10 SMB shares on this system; 8 shares for specific uses (i.e. backups, document, pictures etc), 1 share for “public” use and 1 share for “users” to store their files.

The shares sometimes just suddenly become inaccessible for a short period of time (30 seconds to about 2 minutes), then just as suddenly, become available again. I seems that I can speed up their becoming available by just doing a ping to the server.

I notice this mostly when trying to either read or write a file to the share; particularly from a web browser. As an example, I’ll go to a website and download a file and then specify it to be stored in my “downloads” share. The browser comes back with a response that the share cannot be found and if I keep trying to save the file, eventually the share becomes “found” and the file is saved.

Any ideas what might be causing this and/or how to fix it. My clients are two Win11 machines and one Win10 machine.

Thank you

GChuck

For the shares that disappear, if you edit the share what is the “Purpose” set to?

Also check the /var/log/samba4/log.smbd and see if you see anything ending in open() failed: Interrupted system call

I had an issue with shares with a purpose of "Multi-protocol (NFSv4/SMB) shares " doing the same thing and throwing the error in the log mentioned above. Switching the purpose to “Default share parameters” fixed the issue for me.

1 Like

Thanks for responding!

The purpose I have set on all my shares is “No presets”, then I have created ACLs based upon the same settings I had used on TrueNAS Core.

After looking at the samba4/log.smbd file, I noticed a large number of NT_STATUS_ACCESS_DENIED messages, which I will now have to investigate. I have never noticed and access denial when actually using the shares, only the brief disappearance of the share.

I have a cloned backup of my old TrueNAS Core system running on old hardware. I have kept the shares on this backup up to date and never have had the same disappearance issue. I was already thinking about reverting back to TrueNAS core because of other issues (no email on Scale) until I could find a replacement NAS software that works for me.

I will try and debug these access issues now. Thanks for your help putting me on the right path!

GChuck

1 Like