[Samba] Windows clients disconnect periodically

Marco Gaiarin gaio at lilliput.linux.it
Thu Jun 8 20:19:17 UTC 2023


Mandi! sambalsauce1 via samba
  In chel di` si favelave...

> I am running Samba version 4.10.16-24 on RHEL7 kernel 3.10.0-1160. My Windows 10/Server 2019 clients appear to be dropping connection to the shares randomly, within hours to a couple days. There are Windows client event IDs 30808, showing that the connection to the network share is re-established (oddly, there is usually not an event showing that the connection is lost). The clients also show their mapped network drives as disconnected with a red X icon, but they immediately reconnect upon accessing them. I have tried setting smbclient configs with keepconn, sessiontimeout, and extendedsessiontimeout values raised, but it didn't resolve the issue. The server does not appear to have lost network connectivity, but I'll need to try and see if I can verify that 100%. Is there an option in the config file I might need to reconfigure?

Some users recently complain on Access, i've found:

	https://learn.microsoft.com/it-it/office/troubleshoot/access/your-network-access-was-interrupted-error
	https://learn.microsoft.com/it-it/troubleshoot/windows-client/networking/mapped-drive-connection-to-network-share-lost
	https://learn.microsoft.com/en-us/azure/governance/policy/samples/guest-configuration-baseline-windows#security-options---microsoft-network-client

I've tried to set an higher 'AutoDisconnect' timeout, and seems work.

-- 
  Una volta qualcuno chiese al Mahatma Gandhi cosa ne pensasse della civiltà
  in occidente. «Credo che sarebbe una buona idea», rispose.





More information about the samba mailing list