Mac – Time machine freezes while copying files with no error message (on Catalina 10.15)

backupcatalinahangtime-machine

I updated to Catalina 10.15 about a week ago, and I noticed the Time Machine backups do not seem to work properly. Yesterday I thought I'd try to make it work again, but the problems I face are so weird!

The backup goes through the "Preparing backup…" with no errors, and then it starts copying files. When it has gotten about two thirds of the way through the 17 GB (I'm guessing it's so large because of the update) it just quietly stops, without any error message. If I check for the backupd process in activity monitor, the CPU usage is at 0.0 and never increases. Also the drive will stop spinning after a while, so clearly nothing is written. I figured out how to print the log from the process in a terminal, and there are no messages when the process shuts down.

  • I tried sudo sysctl debug.lowpri_throttle_enabled=0 but it doesn't make any difference.

  • I have reset NVRAM and SMC. No change.

  • I ran a First Aid on the backup drive. No issues.

  • Deleting .iprogress files to start over does not solve the problem.

  • When running in safe-mode, the backup becomes smaller and it stops earlier. But the issue remains.

I'm using a 2018 MacBook Pro, 13 inch, with Catalina 10.15 (as mentioned), and I have two external hard drives for backups (one is encrypted and one is not). They have both worked fine with Mojave, but now I have the same problem with both.

Edit 1: I updated to Catalina 10.15.1 and the problem persists.

Edit 2:
Since I am getting so little response, let me ask some more specific questions.

  1. How can I tell which file(s) is being copied when the backup process freezes? If I know which file, perhaps I can just delete it and the process will run.

  2. Can I restart the backup from scratch? Perhaps if I rename the folder which holds the backup on the disk, Time-machine won't find it and start from scratch. And if I then want to access my old backups I can take back the previous folder name? Could this work? And which folder should try to I rename?

Edit3: I have recently started to believe that there is some issue with backupd initiating too many threads. Whenever it freezes it shows 67 threads in the activity monitor.

Best Answer

Okay, my Time Machine backups work now, and I can post this answer to my own question.

To print out what files are currently being copied there is a nice command in the terminal:

sudo fs_usage -wf filesys backupd | grep HFS_update

Doing this I could see that my backup froze at certain files, and CPU was at 0.0 usage. However, even after it had frozen, intermittently it made small steps of progress before freezing again (as I could tell from the terminal printout). And even though CPU usage showed 0.0, the total number of CPU hours were very slowly creeping up. So there was some activity in backupd, but so little it rounds to 0.0. Thus I left the computer on over night, and in the morning it had finished. It took 14 hours to finish, including several hour-long pauses when no files were written to the backup drive.

I was using Catalina 10.15.1, but using the newly released 10.15.2 for my second backup disk I can tell that the problem persists. I then reformatted the second disk to see if that would make it any faster. But no, it takes even longer to create a new backup (20.5 hours).

However, after one painfully slow backup has finished it seems to work normally, with much shorter backup times.

Read more here: https://eclecticlight.co/2019/11/11/time-machine-and-backing-up-in-catalina/comment-page-1/?unapproved=42377&moderation-hash=3183957ce67228fdfbd8a9b757b038dc#comment-42377