Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Photos stopped scanning people in MacOs sierra. About 2/3's complete. I have done everything as directed by having MacBook connected to power and app closed.

Photos started scanning people but is hanging at 6500 complete with about 3650 photos left. I have left the MacBook connected to power with the photos app closed per the instructions. Are there any ideas or suggestions for getting through the process.

MacBook Pro with Retina display, macOS Sierra (10.12)

Posted on Sep 21, 2016 8:30 AM

Reply
Question marked as Best reply

Posted on Nov 2, 2017 1:23 PM

Apple Engineering worked on with me on this same issue. Here are the steps they provided that fixed everything on two of my Macs.


  • Shut the Mac down completely. Restart the Mac holding down SHIFT.

    This will boot the Mac into Safe Mode and reset deletes / kernel cache / other system cache files (which apparently includes some caches for the photoanalysisd and photolibraryd you see in Activity Monitor).

    This also prevents photoanalysisd an and photolibraryd from loading during the next step (which we need to guarantee).

  • Go to the Photos application. Click SHIFT and then double click on the Photos application. This apparently opens Photos in a special Safe Mode as well and clears the application caches.

    COMMAND + Q the application and verify that the application did not crash on closure. If it did, repeat the above step again until it does not crash on closure.

  • Open Terminal and type:
    • diskutil resetUserPermissions / ‘id -u’
    • Wait for the command to run. You will receive a confirmation by seeing “User permissions have been reset”

    This will reset the permissions to the Photos Library AND all photos within the Photos Library Package Container that stores all your photos.

  • Restart the Mac.
  • Open the Photos application and allow it five minutes to reset everything that was cleared in Safe Mode (should only need 30 seconds but run it for five minutes to be safe). This kicks off the scheduler for the photo analysis process. COMMAND + Q Photos.
  • Go to System Preferences and tell your computer not to sleep for the next 24 hours. Walk away from the machine and let it run.
47 replies
Question marked as Best reply

Nov 2, 2017 1:23 PM in response to derekdthurman

Apple Engineering worked on with me on this same issue. Here are the steps they provided that fixed everything on two of my Macs.


  • Shut the Mac down completely. Restart the Mac holding down SHIFT.

    This will boot the Mac into Safe Mode and reset deletes / kernel cache / other system cache files (which apparently includes some caches for the photoanalysisd and photolibraryd you see in Activity Monitor).

    This also prevents photoanalysisd an and photolibraryd from loading during the next step (which we need to guarantee).

  • Go to the Photos application. Click SHIFT and then double click on the Photos application. This apparently opens Photos in a special Safe Mode as well and clears the application caches.

    COMMAND + Q the application and verify that the application did not crash on closure. If it did, repeat the above step again until it does not crash on closure.

  • Open Terminal and type:
    • diskutil resetUserPermissions / ‘id -u’
    • Wait for the command to run. You will receive a confirmation by seeing “User permissions have been reset”

    This will reset the permissions to the Photos Library AND all photos within the Photos Library Package Container that stores all your photos.

  • Restart the Mac.
  • Open the Photos application and allow it five minutes to reset everything that was cleared in Safe Mode (should only need 30 seconds but run it for five minutes to be safe). This kicks off the scheduler for the photo analysis process. COMMAND + Q Photos.
  • Go to System Preferences and tell your computer not to sleep for the next 24 hours. Walk away from the machine and let it run.

Oct 20, 2017 7:25 AM in response to derekdthurman

Here's how I solved this problem: I had the same issues as everyone else here and tried all of the same remedies reboots, killing processes, repairing library, leaving Photos open but minimized, closing it completely, etc), with very little luck. Here is how I finally got the people scanning to finish scanning 32k photos...


I killed all of the "Photo" processes in the Activities Monitor >> CPU Panel. Then I rebooted my MBP and I didn't open ANY programs at all (except the Activity Monitor) after about a minute, the "photoanalysisd" process started running and eating up 100%+ of the CPU. I then simply turned the brightness all the way down on my monitor (F1 key) to avoid sleeping the screen / hard drive and the "photoanalysisd" process ran for 13 hours 47 min of CPU time.


The key for me was to not open any programs (including Photos)... I could get the processes to start running after a reboot, but as soon as I open Chrome, the process would stop.


All 32k photos are now scanned for faces. Hope this helps!

User uploaded file

Apr 22, 2017 4:01 PM in response to Rolahoy22

Worked for me after a number of other suggestions didn't.


For reference; I tried rebooting, moving the Photos database, repairing the database, force quitting Photos, letting Photos stay in the background, letting Photos stay in the foreground, etc. – You get the picture (pardon the pun).


The steps I took based on Rolahoy22's suggestion: I quit Photos, found the services in Activity Monitor (I had four or five running across the two tabs) and performed a force quit on each of them, rebooted, relaunched Photos, and let it stay open in the background – and I walked away.


Nice work Rolahoy22

Nov 8, 2017 10:52 AM in response to derekdthurman

I think that I actually figured it out, after trying nearly every possible solution I found online.


If you rotate your photos clockwise & counter-clockwise, it will re-scan for all the faces


This might take a few hours depending on the size of your library.

I also recommend that you don't attempt to do a huge number at a time, as photos may crash in the middle & you will have a some-photos-rotated-and-some-not mess to deal with.


Let me know if this works for you guys as well!

Sep 23, 2016 10:03 AM in response to derekdthurman

I had the same problem too. Said it had scanned 3,700 but had 19,000 or so left to go. Left the app closed and on power the whole night but no go. I closed the app multiple times but what eventually worked was launching Activity Monitor. Under the Energy tab there should be a process called Photos Agent. I clicked the arrow to expand the process and there were more sub-processes (3 in my case) that started with "com.apple". I force quit those and then headed over to the CPU tab and force quit one more process also called Photos Agent.


After doing these steps, I relaunched the photos app and voilà, it had already started scanning more of them! Hopefully the fix is this easy for others.

Sep 24, 2016 8:15 AM in response to derekdthurman

Actually, I don't think you're supposed to quit the app. It says it will scan "when you're not using the app". My observation is that it scans when you have the app running but move your focus somewhere else, i.e. click on the desktop or use some other app. I have run the app, clicked on the desktop, and watched my scan numbers increase. However, like almost everyone else here, mine isn't scanning right now.

Photos stopped scanning people in MacOs sierra. About 2/3's complete. I have done everything as directed by having MacBook connected to power and app closed.

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