Mac – Time Machine fails shortly after starting to prepare backup

errortimetime-machine

I have a problem with the Time Machine backup: 1-2 mins after starting the process (Backup is being prepared), it stops.

Console logs:

Backup failed (304: BACKUP_FAILED_PREFLIGHT_STAGE_SNAPSHOT_DIFFING)

Failed to collect events for "Macintosh SSD – Daten" (device:
/dev/disk1s1 mount: '/System/Volumes/Data' fsUUID:
37BA4BE5-ACF2-37EE-81E7-41B277B3CACE eventDBUUID:
E0435E75-595E-4699-A798-47ADB7F3E85A), error Error
Domain=com.apple.backupd.ErrorDomain Code=304 "(null)"

Failed to enumerate snapshot diffs, error: Error
Domain=NSPOSIXErrorDomain Code=83 "Device error"

I switched already the HDD, it runs for 2-3 weeks and then I get the same error.

Anybody can help?

Best Answer

For others who may read, the following will give you 24 hours of Time Machine logs...

log show --style syslog --last 24h --predicate 'senderImagePath contains[cd] "TimeMachine"' --info

I stumbled across your post because I've gotten the same thing, which is not the first time. Apple has broken Time Machine in previous OS updates as well. I'll bet this started when you upgraded to 11.3, as I did.

I see other errors which probably give more info...

localhost backupd[1175]: (TimeMachine) [com.apple.TimeMachine:EventCollection] Event store UUIDs don't match for volume: Macintosh HD - Data ...

and also...

localhost backupd[1175]: (TimeMachine) [com.apple.TimeMachine:EventCollection] Failed to enumerate snapshot diffs, error: Error Domain=NSPOSIXErrorDomain Code=22 "Invalid argument"

localhost backupd[1175]: (TimeMachine) [com.apple.TimeMachine:EventCollection] Failed to collect events for "Macintosh HD - Data" (device: /dev/disk1s2 mount: '/System/Volumes/Data' fsUUID: ... : ...), error Error Domain=com.apple.backupd.ErrorDomain Code=304 "(null)" UserInfo={FailedStrategy=32}

localhost backupd[1175]: (TimeMachine) [com.apple.TimeMachine:General] Backup failed (304: BACKUP_FAILED_PREFLIGHT_STAGE_SNAPSHOT_DIFFING)

I would guess our friends at Apple are learning the hard way as others have done that UUIDs are a bad means of storing a unique ID, because they wind up changing for unknown reasons and then your thing is broken.

In any case, the last in the string of failures for me was an invalid excluded directory...

localhost com.apple.prefs.backup.remoteservice[37280]: (TimeMachine) [com.apple.TimeMachine:General] Failed to size '/Users/robertclayton/VirtualBox VMs', error: -43

I would classify this as a bug as well, since a directory being excluded doesn't need to be "sized," after all I told it to exclude the folder there's no reason for the OS to want to know how big it is.

So if you've restored a backup recently, check and see if you have excluded folders in your Time Machine settings that are no longer present. If you do, on 11.3, apparently that causes the backup process to fail. After I removed the non-existent excluded folder mine started back up again normally.