Something is locked and blocking my time machine backup

Hello,


I found an answer to this question from 2023 but it is now closed. And, I have a follow-up question regarding the resolution the problem. First, here is what's happening:


Only in the last couple of days has this error been showing up and I have had my computer set to require a password to wake it up, well for forever, really. And, I recently updated every Apple device I have to its new OS.


I, too, am having issues with Time Machine unable to finishing backups overnight while computer is locked from not being in use after one hour. I only see the error in morning when I first wake it up. note that the backups do complete while I am actively using the computer and it's awake.



The solution given in the previous post from 2023 titled 'Locked files block my time machine backup' was as follows:

"It says some files were unavailable. That could happen for many different reasons, but that message did not specify why.


It says the backup will resume when your Mac is unlocked.


To me, this implies your Mac automatically Locked itself, and refused to transfer any more files.


That could happen if your Mac went to sleep or you have screen locking and password required in:


system preferences > Security & Privacy > General ...

[√] require password after sleep or nnn minutes after screensaver begins.


There may be other more obscure reasons as well."


I have followed the directions to remove a required password to wake the computer, but I really would prefer not to do that. I have also looked what has Full Disk Access and Files and Folders access in Privacy & Security, but I am not sure what I need to grant the access to, as you can't specify Time Machine.


What are the other possibilities for this happening and how can I resolve them?


I greatly appreciate your help and have a great day!


Lisa Atlanta


Mac mini

Posted on Sep 30, 2024 6:48 AM

Reply
53 replies

Nov 14, 2024 11:06 PM in response to Focker

Hello again and thank you for you very quick answers. I tried the other string, and this is what it says:


Peters-MBP-M2-Max:~ peter$ log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 4h|grep "Operation not permitted"


2024-11-15 06:25:27.416560+0100 0x39fc91   Error       0x0                  289    0    backupd: (TimeMachine) [com.apple.TimeMachine:FileProtection] Failed to acquire device lock assertion for '/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Peters MBP-M2-Max/2024-11-15-055749/Macintosh HD - Data/Users/peter/Library/Biome/streams/restricted/ProactiveHarvesting.Mail/local/752462791393167' (assertion state: <dropped>), error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"


Peters-MBP-M2-Max:~ peter$ 

Mar 24, 2025 3:43 PM in response to jwhitt

jwhitt wrote:

I ran that and Apple will not allow me to post the result. Now what do I do? The result is long.
How do I "exclude that directory or file from the backup"

I found from Terminal that I was getting an error because of my Google Drive. It said, "Data/Users/xxx/Library/CloudStorage/GoogleDrive-xxx" (xxx = my name). So I excluded it using the Time Machine settings.


To do that you go into Time Machine settings and click on Options and then click the + to add what you want to exclude. Then you navigate to the item. In my case, I excluded the Google drive. Also my Dropbox drive and iCloud since all three of them are backed up on the cloud anyway. You have to exclude each item one at a time. I still have to test to see if that solves it. Will report back.

Mar 24, 2025 2:12 PM in response to Cartoonguy

There is only one solution but unfortunately thread is filled with some fluff, but Focker has posted the solution on the first page. First run the following command in terminal to find what directories or files TM is getting stuck on, then either use the time machine settings to exclude that directory or file from the backup or run the second command and exclude the directory or file:


log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 4h|grep "Operation not permitted"

 

tmutil addexclusion ~/Library/Containers/path.to.problem.directory

 

Mar 24, 2025 7:30 PM in response to jwhitt

You need to run these three commands separately then try back up again:

 

tmutil addexclusion ~/Library/Daemon Containers/E8568DA5-629C-42D6-A799-93E78C67C0B1/Data/com.apple.milod/milo.db-wal


tmutil addexclusion ~/Library/Daemon Containers/E8568DA5-629C-42D6-A799-93E78C67C0B1/Data/com.apple.milod/milo.db-shm


tmutil addexclusion ~/Library/Daemon Containers/E8568DA5-629C-42D6-A799-93E78C67C0B1/Data/com.apple.milod/milo.db

Feb 3, 2025 8:02 PM in response to lisaroser

I've been trying to resolve this exact issue, but NOTE that my setup might be unique: M2 Mac mini, booting off of an external TB3 NVME SSD. After a bunch of trial and failures (including double checking the logs and exclusions, disabling sleeping, cleared all local snapshots, reformat and start a new TM backup...etc), the thing that worked for me was the moment that I realized that I had, for reasons unclear to me, mounted the internal SSD "Macintosh HD." This is all the while, booting and running off of the external SSD. As soon as I ejected/unmounted the internal SSD, I was able to successfully complete a previously failed TM backup...

Somehow, with my particular setup, if the internal SSD is mounted, it confuses the OS or TM and as far as I know, I couldn't add the entire internal SSD to the exclusion list, at least via the GUI...

As a side, if you ever boot from your internal SSD, don't TM backup it on the same HDD. At least for me, that seems to confuse TM. When I boot back into the external SSD, the next TM session seems to be a full, from the scratch backup!

Mar 31, 2025 4:36 AM in response to lisaroser

I have an M4 Mac Mini and I boot from an external NVME SSD. As "mcpeteSF" previously mentioned, the only thing that worked for me was actually unmounting the internal hard drive from the Mac Mini. Once unmounted, I was able to back up my hard drive with Time Machine without any problems.

I unmounted it using Disk Utility.

I hope this works for you!


Macos Sequoia 15.3.2

Dec 29, 2024 1:22 PM in response to lisaroser

Well All these solutions are piecemeal. I tried them and got nothing. Mostly because find my was never in my widgets. But I noticed something. I did a Get info on Biome before deleting it and it only had two groups listed. Me, and everyone. Everyone has no access. So I deleted Biome and suddenly it has Me, Staff, and Everyone when recreated. Again everyone has no access. Staff has read only access. So I started checking all the folders that I've seen mentioned and none of them has Staff in the list of who could access it.

I went through my home folder and got info on everything then option clicked +. Then searched staff, added the group and copied permission to all enclosing items. This seems to have worked... For now. We'll see if it still works tomorrow.


At the moment I'm calling this a widespread permissions issue that only Apple can fix, especially since the fix permission utility is gone.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Something is locked and blocking my time machine backup

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.