macOS Spotlight Indexing Hangs at 0% After Enabling Time Machine Backups to SMB Share
Environment
macOS 13.6 MacBook Pro (Apple Silicon) using Time Machine to a Synology SMB share (SMB protocol, SMB3 negotiated). User enabled 'Back Up Automatically' and also added the SMB mount point to Spotlight indexing in System Settings. Local disk is APFS with lots of small developer files (~200k).
Symptoms
Spotlight indexing progress in System Settings shows 'Indexing: 0% (Preparing)' indefinitely (multiple hours). mdutil reports indexing is enabled for local volumes but returns inconsistent status for SMB share. System search (Cmd+Space) returns incomplete results and Finder searches for file contents return none. Time Machine backups appear to start but report 'Preparing backup' for long intervals.
Observations
Console logs include repeated Spotlight errors: 'mds encountered an error while indexing volume' and 'kMDItemFSNameProbeFor… returned -36' for items on the SMB-mounted Time Machine share. When the SMB share is unmounted, Spotlight switches to 'Indexing paused' and local indexing proceeds slowly. CPU usage for mds_stores is low; network activity to NAS is intermittent—bursts followed by idles. SMB mount uses credentials stored in Keychain; ACLs on share are read/write for the user.
Already attempted
Restarted macOS, unmounted/remounted SMB share, removed and re-added the SMB path from Spotlight preferences, ran sudo mdutil -E to erase and rebuild index for local volumes, and temporarily disabled Time Machine. None produced consistent successful indexing of the SMB path. Did not delete Spotlight database files manually.
Question
Why does enabling Time Machine to an SMB destination cause Spotlight to hang at 0% indexing, and what reversible steps can I take to restore Spotlight and Time Machine to usable state without risking backups or user data?
Verified community troubleshooting
No answers yet..