升级到High Sierra之后Time Capsule备份失败解决办法

问题

n个月前MacOS升级到High Sierra 10.13之后Time Capsule(时间机器 !H_P?)就没备份成功过。
第一次备份总是会等了很久之后显示失败。

翻查log

在Terminal输入以下可以查看Time Capsule的记录

clear; printf '\e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 24h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}'

结果显示

2018-09-13 22:49:47  Maximum urgency thinning requested!
2018-09-13 22:49:47  Completed thinning of snapshots on disk '/' in 0.0 seconds - current free space: 3.17 GB3,167,989,760 字节), target free space: 12.87 GB12,872,359,936 字节), initial free space: 3.17 GB3,167,989,760 字节), urgency: 4, remaining snapshots: (
2018-09-13 22:49:50  Starting age based thinning of Time Machine local snapshots on disk '/'
2018-09-13 22:49:50  Starting space based thinning of purgeable local snapshots on disk '/' - current free space: 3.06 GB3,062,710,272 字节), target free space: 12.77 GB12,767,080,448 字节), initial free space: 3.06 GB3,062,710,272 字节), urgency: 3
2018-09-13 22:49:50  Completed thinning of snapshots on disk '/' in 0.0 seconds - current free space: 3.06 GB3,062,710,272 字节), target free space: 12.77 GB12,767,080,448 字节), initial free space: 3.06 GB3,062,710,272 字节), urgency: 3, remaining snapshots: (
2018-09-13 22:50:32  Checking for runtime corruption on /dev/disk2s2
2018-09-13 22:50:48  Disk image /Volumes/Data/MBP.sparsebundle mounted at: /Volumes/时间机器备份
2018-09-13 22:50:51  Backing up to /dev/disk2s2: /Volumes/时间机器备份/Backups.backupdb
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.SnapshotVolumeFSEventStoreUUID' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.SnapshotVolumeLastFSEventID' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.SnapshotVolumeUUID' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.PreviousSnapshotVolumeUUID' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.PreviousSnapshotVolumeName' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.VolumeBytesUsed' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.VolumeIsCaseSensitive' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.fstypename' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to remove attribute 'com.apple.backupd.VolumeIsEncrypted' from 'file:///', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to write unlock record UUIDs as extended attribute for disk '/', error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2018-09-13 22:50:51  Failed to create APFS snapshot with name 'com.apple.TimeMachine.2018-09-13-225051' on volume '/', error: Error Domain=NSPOSIXErrorDomain Code=28 "No space left on device"
2018-09-13 22:50:51  Failed to create local snapshots
2018-09-13 22:50:51  Failed to create or mount stable snapshot.
2018-09-13 22:50:55  Starting age based thinning of Time Machine local snapshots on disk '/'
2018-09-13 22:50:55  Starting space based thinning of purgeable local snapshots on disk '/' - current free space: 4.33 GB4,330,475,520 字节), target free space: 14.82 GB14,817,637,171 字节), initial free space: 4.33 GB4,330,475,520 字节), urgency: 1
2018-09-13 22:50:55  Completed thinning of snapshots on disk '/' in 0.0 seconds - current free space: 4.33 GB4,330,475,520 字节), target free space: 14.82 GB14,817,637,171 字节), initial free space: 4.33 GB4,330,475,520 字节), urgency: 1, remaining snapshots: (
2018-09-13 22:50:57  Starting age based thinning of Time Machine local snapshots on disk '/'
2018-09-13 22:50:57  Starting space based thinning of purgeable local snapshots on disk '/' - current free space: 4.28 GB4,279,517,184 字节), target free space: 14.67 GB14,674,322,227 字节), initial free space: 4.28 GB4,279,517,184 字节), urgency: 2
2018-09-13 22:50:57  Completed thinning of snapshots on disk '/' in 0.0 seconds - current free space: 4.28 GB4,279,517,184 字节), target free space: 14.67 GB14,674,322,227 字节), initial free space: 4.28 GB4,279,517,184 字节), urgency: 2, remaining snapshots: (
2018-09-13 22:50:59  Backup failed with error 50: 50
2018-09-13 22:51:02  Starting age based thinning of Time Machine local snapshots on disk '/'
2018-09-13 22:51:02  Starting space based thinning of purgeable local snapshots on disk '/' - current free space: 4.36 GB4,358,701,056 字节), target free space: 12.87 GB12,871,098,368 字节), initial free space: 4.36 GB4,358,701,056 字节), urgency: 3
2018-09-13 22:51:02  Completed thinning of snapshots on disk '/' in 0.0 seconds - current free space: 4.36 GB4,358,701,056 字节), target free space: 12.87 GB12,871,098,368 字节), initial free space: 4.36 GB4,358,701,056 字节), urgency: 3, remaining snapshots: (
2018-09-13 22:51:27  Failed to eject volume /Volumes/时间机器备份 (FSVolumeRefNum: -157; status: -47; dissenting pid: 0)
2018-09-13 22:51:27  Failed to eject Time Machine disk image: /Volumes/Data/MBP.sparsebundle

看来是权限问题了

解决办法

想不到居然是Spotlight的问题,那就先关掉

sudo mdutil -a -i off

备份成功之后再重启Spotlight

sudo mdutil -a -i on

参考

https://discussions.apple.com/thread/8339983
https://apple.stackexchange.com/questions/304661/time-machine-failing-to-complete-backup

վ HᴗP ի


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部