SMB users on macOS randomly being disconnected from SMB share

ElectricEel-24.10.2.1

This is happening (or being noticed) so randomly, we’re not sure when it started. It could have been since we moved from Core to Scale. Users report, maybe 2-6 times per week, being disconnected from the SMB share. Sometimes it reconnects, sometimes they have to reboot their Mac to reconnect. I’ve had pings running on the workstations and server, and don’t see any connection fallout that correlates with the server disconnect. I have noticed “rpc_worker_exited” entries in the log that may correlate with the disconnects - but of that I’m not even sure, since they aren’t working in the SMB shares all day long, so may not notice a disconnect/reconnect unless they happen to be actively working in a share.

/var/log/samba4/log.samba-dcerpcd:

[2026/03/03 09:45:01.423273,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2091043
[2026/03/03 10:37:37.068241,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 10:48:18.027624,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 10:48:18.080560,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2186008
[2026/03/03 10:48:18.080635,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2186012
[2026/03/03 11:04:26.089838,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 11:04:26.142292,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2210377
[2026/03/03 11:04:26.142361,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2210373
[2026/03/03 11:22:14.042988,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 11:22:14.095509,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2237014
[2026/03/03 11:22:14.096317,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2237015
[2026/03/03 11:32:43.510715,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 11:32:43.562593,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2252910
[2026/03/03 11:32:43.562906,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2252911
[2026/03/03 11:40:36.394858,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 12:35:23.567354,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 12:35:23.619330,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2346748
[2026/03/03 12:35:23.619915,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2346752
[2026/03/03 12:35:23.619950,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2346754
[2026/03/03 12:53:06.958331,  0] ../../source3/rpc_server/rpc_host.c:2905(main)
  samba-dcerpcd version 4.20.5-truenas started.
  Copyright Andrew Tridgell and the Samba Team 1992-2024
[2026/03/03 12:53:07.006562,  1] ../../source3/rpc_server/rpc_host.c:1812(rpc_worker_exited)
  rpc_worker_exited: No worker with PID 2373053

Is there a reason for staying on Electric Eel 24.10.2.1 and not upgrading? You may be missing out on implemented fixes.

From what I can google, this error may be resolved with a new SAMBA version. Is there anywhere that lists what version of SAMBA is on which release of TrueNAS? We have tight maintenance windows, so I don’t like to upgrade unless I have a very good notion it will resolve an issue.

Well, sorry I didn’t look at your link before asking the question about SAMBA versions. It’s in there. OK, I will try upgrading to 25.04.2.6 this weekend.

Not sure but it lists it a few times in the Release Notes. Just look for Samba.

https://www.truenas.com/docs/scale/25.10/gettingstarted/versionnotes/#25.10.1
https://www.truenas.com/docs/scale/25.10/gettingstarted/versionnotes/#25.10.2.1