Nas

2026


macOS SMB: OSError: [Errno 9] Bad file descriptor after a silent reconnect

A backup job on a macOS SMB share kept dying with EBADF. The NAS stalled under load, macOS reconnected without a word, and because the old SMB 2.1 server granted no durable handles, every open file on the share went bad, including the bash script that was running. Only the kernel log says so.
·5 mins