why is photoanalysisd not scanning my library in Big Sur?

I installed Big Sur when it became available - firstly, big improvements on Catalina!


I've some big photo libraries, and initially there was a big acceleration in scanning of the one set as System Photo Library. Then dead stop - nothing now for a week. Still plenty to scan... I've tried setting other libraries as the System Photo Library, both big and small libraries in terms of photo count, again, nothing. And photoanalysisd shows no work on the Activity Monitor.


I'm leaving it overnight with no other apps running. The libraries are on an external hard drive - this hasn't previously been a problem in their being scanned. And wasn't after the initial installation of Big Sur.


I realise most people want to stop photoanalysisd and related - I get it. I want to get the job done by a useful tool, then I might seek to block it. But I do at the moment want it running - and it isn't.


Any advice appreciated!


J

iMac 27″, macOS 11.0

Posted on Nov 28, 2020 12:42 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 12, 2021 4:14 AM

*Another Possible Solution*


After troubleshooting this for a looong time I discovered that the issue was with my specific library, not an issue with the system. Something to do with old caches, leftovers, and general garbage from having a large, old library. Here’s what worked for me:


PLEASE EITHER MAKE A DUPLICATE OF YOUR LIBRARY OR A BACKUP BEFORE DOING ANY OF THIS. I DID SCREW IT UP ONCE AND LOST ALL MY ALBUMS AND TAGS.


You want to first un-hide invisible files, go to the Terminal and type:

defaults write com.apple.finder AppleShowAllFiles -boolean true
killall Finder


Quit Photos.


In the Finder, select your library, right click and go to Show Package Contents.


You’ll see several folders, we’re going to focus on database, private, and resources.


In the database folder:

  • Delete any hidden folders
  • Open the search folder, delete any files inside
  • Back in the main database folder, delete anything with a .db, .plist, or no extension
  • IMPORTANT: leave anything with a .sqlite extension alone


In the private folder:

  • You’ll see several folders called com.apple.something, delete the contents of these folders


In the resources folder:

  • Delete the contents of the caches folder
  • Delete the contents of the journals folder


Restart, open the library, quit Photos, and you should start to see some activity. My computer scanned ~20k photos in one day.

Similar questions

55 replies

Dec 28, 2020 8:11 AM in response to doncarlosdon

I *think* I'm having the same issue but would appreciate a consensus view from others here. Here's what I'm seeing:


*Setup*

A library of around 13,000 photos, stored on the inbuilt disk on my Mac Book Pro, with years of investment in facial/people scanning, geo-tagging etc. but library in good shape overall (on Catalina) before the upgrade to Bug Sur.


*Problem*

Since the upgrade to Big Sur, new photos imported to my library do not detect any faces in them (been waiting more than 3 weeks) but all faces in previous photos are still there.


Photos app is not suggesting there are any other faces/photos to be scanned and seeing occasional CPU usage by photoanalysisd in Activity Monitor. Have also tried quitting Photos app, minimizing it and leave it run behind other windows, all to no avail.

Dec 28, 2020 11:51 AM in response to jmernin

Hello jmernin


Yes, based on what you provided, looks like the same issue. When I last spoke with media tech from Apple, I told him that photoanalysisd in my activity monitor showed activity as well (like yours). The tech said "it could be for any number of reasons if your photo album is open....it is not necessarily because it is scanning faces/people specifically, so you can't go by just that".


As a recap of what I previously said in my posts, the tech said the answer may be forthcoming in an apple update. About a week ago or so I downloaded an apple update hoping the fix was in that, but it wasn't. Still waiting. But the more people complain about this directly to apple, the better. How do you complain? Chat to them via support is what I do.


Concerning your post that says Photos app is not suggesting there are any other faces/photos, Here is where I see it, go to People, and scroll to the bottom page. That is where I see " 0 Photos Scanned, 108,233 Remaining." It should have a message like that. The issue is scanning, in People. For instance when it is scanning for People, it would say 98% scanned and 500 photos remaining. My scanning was working right up until the day I installed Big Sur. Now the question may be that when it starts scanning will you have to wait for the remaining photos to be scanned, or will it pick up where it left off and only scan new photos imported. I think it picks up where you left off on the new photos . But we will all see right?


Hopefully Apple provides a fix soon. And too, hopefully my information does not cause further confusion to others. Remember I am just a "user" like the rest of us, and only providing information I have directly obtained from Apple, and/or surmised by trying stuff out.


Patiently waiting for the fix.


Best Regards

Don


Dec 28, 2020 1:39 PM in response to jmernin

I contacted Apple Support and they suggested trying an SMC reset [1] (or a NVRAM reset) to see if this helps. To be honest, I was quite skeptical at first but, to be fair, the SMC reset has actually fixed a multitude of weird issues for me in the past and the support engineer also said that it's no bad idea to do this after an upgrade anyway (especially a major version upgrade like Big Sur was), so I decided to give it a try.


While my issue is still not fixed, one hopeful outcome is that I *am* now seeing the standard message (i.e. People will finish updating when Photos is in the background) at the bottom of the People view, which at least suggests that Photos may be attempting to scan the photos after all.


I'm guessing I'lll have to give it a day or so to see if things improve so will report back here to let you know either way.


[1] https://www.youtube.com/watch?v=WMAdyMkv-Lg

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.

why is photoanalysisd not scanning my library in Big Sur?

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