this post was submitted on 20 Jul 2025
20 points (100.0% liked)

Linux Questions

2414 readers
8 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] brickfrog@lemmy.dbzer0.com 5 points 3 weeks ago* (last edited 3 weeks ago)

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 (?)