Time Machine stuck on "Preparing backup", then fails.
Whenever I try to make a Time Machine backup, Time Machine takes between 1 and 2 hours "Preparing backup", and then fails with the message "Time Machine couldn't complete the backup. An error occurred while preparing the backup."
The backup was started over a year ago and there was never a problem, up until a few days ago. It's also not corrupt, and I can enter Time Machine and browse the backup. There's also around 450GB of free space on the backup drive.
I'm running Big Sur 11.2.3 (20D91) on an early 2015 MacBook Pro, and I'm trying to back up the contents of the internal 512GB SSD onto an external 4TB USB drive.
What I've tried:
- I've deleted the .inProgress file and tried again. Failed.
- I've ran First Aid on both my Mac's drive, as well as the external backup drive. Multiple times without any issues, on all existing partitions. All drives seem in good health. Backup keeps failing.
- I've disabled automatic Time Machine backup, removed my drive from Time Machine, rebooted, re-added the drive in Time Machine... failed again.
- I've removed my drive from within the Time Machine GUI and inherited the backup via tmutil (sudo tmutil inheritbackup machine_directory), which is basically the same measure described in the previous bullet point. That seemed to have worked fine - but the next backup attempt took again failed after 2 hours of "Preparing backup".
- I've disabled Spotlight with "csrutil disable". Backup keeps failing.
- I've booted into Recovery mode from USB, and ran First Aid for all drives (internal & external) from there. No issues - all drives seem in good health.
- I've listed all partitions with "diskutil apfs list" and ran "fsck_apfs" on all disks/partitions. Nothing suspicious. All good.
- I've monitored the backupd process with the console, and now all my hope is that someone can pinpoint the real issue here, or explain what this error 303 means. I've done this over 5 times now (1-2 hours per attempt), and the log always has the same error code 303. Here is (part of) the console log from the time of failing of the backup:
error 04:05:47.960875+0200 backupd zero fileid for (00000003)
error 04:05:48.004160+0200 backupd zero fileid for (00000003)
error 04:05:48.292272+0200 backupd zero fileid for (00000003)
error 04:06:53.488248+0200 backupd Event collection timing out because no FSEvent callbacks received in more than 40 seconds
error 04:07:02.644180+0200 backupd Failed to collect events for "SSD - Data" (device: /dev/disk1s1 mount: '/System/Volumes/Data' fsUUID: FD624480-CA7E-4D85-8E3F-F1519FB8B95A eventDBUUID: 071AE26C-45E8-4950-9321-67800EF904EA), error Error Domain=com.apple.backupd.ErrorDomain Code=303 "(null)"
default 04:07:08.116447+0200 backupd Received configuration update from daemon (initial)
error 04:07:08.455054+0200 backupd Backup failed (303: BACKUP_FAILED_PREFLIGHT_STAGE_GATHER_EVENTS)
default 04:07:08.455411+0200 backupd MessageTracer: Falling back to default whitelist
default 04:07:08.873096+0200 powerd Process backupd.276 TurnedOff BackgroundTask "Time Machine backup" age:01:55:39 id:47244673101 [System: PrevIdle DeclUser kDisp]
default 04:07:08.891889+0200 powerd Process backupd.276 TurnedOff PreventUserIdleSystemSleep "Time Machine backup" age:01:55:39 id:4295000143 [System: PrevIdle DeclUser kDisp]
default 04:07:09.018682+0200 tccd AUTHREQ_ATTRIBUTION: msgID=2887.1, attribution={requesting={identifier=com.apple.TMHelperAgent, pid=2887, auid=501, euid=501, binary_path=/System/Library/CoreServices/backupd.bundle/Contents/Resources/TMHelperAgent.app/Contents/MacOS/TMHelperAgent}, },
default 04:07:09.032968+0200 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier com.apple.TMHelperAgent, type: 0: 0x7fabb4748410 at /System/Library/CoreServices/backupd.bundle/Contents/Resources/TMHelperAgent.app
default 04:07:09.083132+0200 tccd AUTHREQ_ATTRIBUTION: msgID=139.133, attribution={accessing={identifier=com.apple.TMHelperAgent, pid=2887, auid=501, euid=501, binary_path=/System/Library/CoreServices/backupd.bundle/Contents/Resources/TMHelperAgent.app/Contents/MacOS/TMHelperAgent}, requesting={identifier=com.apple.WindowServer, pid=139, auid=88, euid=88, binary_path=/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer}, },
default 04:07:09.083288+0200 tccd requestor: identifier=com.apple.WindowServer, pid=139, auid=88, euid=88, binary_path=/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer is checking access for accessor identifier=com.apple.TMHelperAgent, pid=2887, auid=501, euid=501, binary_path=/System/Library/CoreServices/backupd.bundle/Contents/Resources/TMHelperAgent.app/Contents/MacOS/TMHelperAgent
default 04:07:09.092919+0200 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier com.apple.TMHelperAgent, type: 0: 0x7fabb4748410 at /System/Library/CoreServices/backupd.bundle/Contents/Resources/TMHelperAgent.app
MacBook Pro 13″, macOS 11.2