Every now and then my Samba share stops working.
$ smbclient -U sambauser '\\192.168.12.11\Apartment'
do_connect: Connection to 192.168.12.11 failed (Error NT_STATUS_CONNECTION_REFUSED)
This is incredibly annoying, since it happens somewhat frequently too. I restart the container, with no fix. It might be client-side, but I’m boggled by how that could even occur. There are no logs in systemd for smbd. The firewall is disabled.
/etc/samba/smb.conf: https://pastebin.com/HNgw8YcV


Check the log file & see if there’s any additional information you can troubleshoot with. According to your .conf it’s in /var/log/samba/log.%m
And/or maybe increase the logging level and hopefully when the issue re-occurs you’ll have lots more log info to work with. (may have to be careful with the log file sizes though) Not sure if you need to enable client specific logging or maybe just working with the main smb.conf file is enough, see the wiki
https://wiki.samba.org/index.php/Client_specific_logging
EDIT: If you’re not already seeing any logs maybe you do need to try enabling client specific logging (?)