7.5 KiB
7.5 KiB
Time Machine NAS Connection Troubleshooting
Issue
Time Machine shows "Connecting to backup disk..." but never completes, even though:
- ✅ NAS is accessible from Finder
- ✅ User
zjgumpis in administrators group (has full permissions) - ✅ Network connectivity is fine (ping works, SMB works in Finder)
Root Cause Analysis
Key Finding
zjgump is in the administrators group - This means:
- Explicit file permissions won't apply to SMB/file protocols
- Admin users have full access by default
- The "Permission denied" errors are NOT about file permissions
Actual Issues
- Credential Cache Mismatch: macOS has saved credentials for
DS224plus(without .local) but Time Machine tries to useDS224plus.local - Stale Mounts: Manual mounts interfere with Time Machine's automatic mounting
- Time Machine Process Permissions: Time Machine runs as a different user than your login user
Solutions
Solution 1: Clear Credentials and Let Time Machine Mount Itself (Recommended)
-
Unmount all existing mounts:
diskutil unmount "/Volumes/Time Machine Folder" 2>/dev/null sudo umount -f /Volumes/.timemachine/* 2>/dev/null -
Clear saved credentials:
- Open Keychain Access
- Search for
DS224plus - Delete ALL entries related to DS224plus
- Also search for
Time Machineand delete related entries
-
Remove Time Machine destination:
- System Settings → General → Time Machine
- Remove the existing backup disk (click
-button)
-
Re-add Time Machine:
- Click "Add Backup Disk..."
- Select "Time Machine Folder" on "DS224plus.local" (the one with
.local) - When prompted, enter
zjgumpcredentials - Let Time Machine mount it itself - don't mount it manually first
Solution 2: Use a Dedicated Time Machine User (Best Practice)
Synology recommends using a dedicated non-admin user for Time Machine:
-
On Synology DSM:
- Control Panel → User & Group → Create
- Create user:
tm-backup(or similar) - Do NOT add to administrators group
- Set password
-
Grant permissions:
- Control Panel → Shared Folder → Time Machine Folder → Edit → Permissions
- Add
tm-backupuser with Read/Write permission - Check "Apply to this folder, sub-folders and files"
-
Configure Time Machine on NAS:
- Control Panel → File Services → Time Machine
- Select "Time Machine Folder" as the shared folder
- Select
tm-backupas the user (or leave blank for all users)
-
On macOS:
- Remove existing Time Machine destination
- Add Backup Disk → Select "Time Machine Folder – DS224plus.local"
- When prompted, use
tm-backupcredentials (notzjgump)
Solution 3: Fix Credential Cache for Admin User
If you want to keep using zjgump (admin user):
-
Clear all DS224plus credentials:
security delete-internet-password -s "DS224plus" 2>/dev/null security delete-internet-password -s "DS224plus.local" 2>/dev/null -
Remove Time Machine destination
-
Manually connect via Finder first:
- Finder → ⌘K →
smb://DS224plus.local - Connect as
zjgump - This will save the credential properly
- Finder → ⌘K →
-
Then add Time Machine:
- System Settings → Time Machine → Add Backup Disk
- Select "Time Machine Folder – DS224plus.local"
- It should use the saved credential
Solution 4: Use IP Address Instead of Hostname
If Bonjour (.local) is causing issues:
-
Find NAS IP:
ping -c 1 DS224plus.local | grep PING # Or check your router's DHCP table -
Connect via IP:
- System Settings → Time Machine → Add Backup Disk
- If it doesn't show up, manually mount first:
- Finder → ⌘K →
smb://192.168.1.172/Time Machine Folder - Connect as
zjgump
- Finder → ⌘K →
- Then add the mounted share in Time Machine
Diagnostic Commands
Check Current Mounts
mount | grep -i "timemachine\|ds224plus"
Check Time Machine Logs
log show --predicate 'subsystem == "com.apple.TimeMachine"' --last 10m --info | tail -50
Check Saved Credentials
security find-internet-password -s "DS224plus"
security find-internet-password -s "DS224plus.local"
Test SMB Connection
smbutil status DS224plus.local
Check Time Machine Configuration
tmutil listbackups
defaults read /Library/Preferences/com.apple.TimeMachine
Common Errors and Fixes
"Time Machine could not back up the disk because it is nearly full"
- Cause: The source disk (Macintosh HD) is nearly full, NOT the destination (NAS)
- Symptoms: Error says disk is "nearly full" but NAS shows plenty of space (e.g., 1.67TB available)
- Fix: Free up space on your Mac's internal disk:
- Run the diagnostic script:
./free_disk_space.sh - Run the cleanup script:
./fix_time_machine_disk_full.sh - Or manually:
- Empty Trash:
rm -rf ~/.Trash/* - Clean caches:
rm -rf ~/Library/Caches/* - Review Downloads folder (often has large files)
- Use macOS Storage Management: Apple Menu → About This Mac → Storage → Manage
- Empty Trash:
- Run the diagnostic script:
- Why: Time Machine needs free space on the source disk to:
- Create local snapshots
- Stage files for backup
- Maintain the backup process
- Minimum: Aim for at least 5-10GB free space for Time Machine to work properly
"Deleted files but space not freed" / "Stuck Time Machine snapshot"
- Cause: APFS snapshots (especially Time Machine local snapshots) hold onto deleted file space
- Symptoms:
- Deleted 20GB+ of files but disk space didn't increase
- Error: "Stale NFS file handle" when trying to delete snapshots
tmutil listlocalsnapshots /shows snapshots that can't be deleted
- Fix:
- Quick fix - Restart Mac: Often the simplest solution - snapshots are released after restart
- Remove Time Machine destination temporarily:
- System Settings → Time Machine → Remove backup disk
- Delete snapshot:
sudo tmutil deletelocalsnapshots <date> - Re-add Time Machine destination
- Use the fix script:
./fix_stuck_snapshot.sh(guides you through the process) - Force purge:
sudo purge(if available)
- Why: Time Machine creates local snapshots before backing up. If the backup destination (NAS) is unreachable or has a stale connection, the snapshot gets stuck and holds onto space from deleted files.
- Prevention: Ensure Time Machine can reliably connect to backup destination
"Permission denied" on mount point
- Cause: Manual mount with wrong permissions
- Fix: Unmount and let Time Machine mount it itself
"Connecting to backup disk..." hangs
- Cause: Credential cache mismatch or stale mount
- Fix: Clear credentials, unmount all, re-add
"Server may not exist or unavailable"
- Cause: Using wrong hostname (DS224plus vs DS224plus.local)
- Fix: Always use
.localversion or IP address
Prevention
- Don't manually mount Time Machine shares - let Time Machine do it
- Use dedicated non-admin user for Time Machine (best practice)
- Keep credentials in sync - if you change NAS password, update on Mac
- Use
.localhostname - more reliable than IP or NetBIOS name
Notes
- Admin users (
zjgump) bypass file-level permissions on Synology - Time Machine runs as
_backupuser on macOS, not your login user - Bonjour (
.local) is preferred over NetBIOS for Time Machine - Manual mounts can interfere with Time Machine's automatic mounting