Mac Photos App Repair Library

It’s easy from the perch of writing the Mac 911 column to appear as if I have all the answer. Dear readers, I do not. I am always delighted to research on your behalf, but sometimes problems fall into my lap that I know will help you all, because I’m unable to find a ready solution and nobody in any forum or on any blog has found an answer, sometimes across many years.

Mac Photos App Repair Library

Photos

Photos for macOS is a bugbear for many of you, one of the most regular sources of questions. But I encountered a sync problem that no one has written in about, yet I can find a history of frustrated people across the Internet trying to solve it. I did find a solution—but you might not like it!

How to repair mac photos library

My problem emerged a few weeks ago, when I noticed that Photos for macOS on my office computer, an iMac running Mojave, was out of date. I checked my laptop Mac, my iPhone, and iCloud.com: photos were synced and up to date in each of those locations.

How To Repair Mac Photos Library

This has happened before, and I go through a series of escalating troubleshooting steps:

Delete the Library (or Libraries) Launch Photos; Drag the Masters folder into Photos to import the photos back in; And whatever you do, don't go deleting any old iPhoto library on your system. As a part of the migration from iPhoto to Photos app, the developers chose to simply link to the photos already in the old library while adding photos to. After backing up the file to your external storage (if that's where you put it), eject the drive, so that the Photos app doesn't see this file later and want to use it. 6) Delete the original Photos.Library.photoslibrary file from your MacBook. 7) While holding down the options key ⌥ launch the Photos app again. PowerPhotos works with the built-in Photos app on your Mac, providing an array of tools to help you get your photo collection in order. Create and manage multiple libraries Instead of being limited to putting all your photos in a single library, PowerPhotos can work with multiple Photos libraries, giving you many more options for how to.

  1. Quit Photos and re-launch it.
  2. Using the Terminal to “kill” certain Photos-related background agents and jobs. (This is a little tweaky and can cause problems, so I hesitate to recommend it. In any case, it didn’t help.)
  3. Restart my Mac.
  4. Rebuild the Photos database by holding down Command-Option while launching the app and following prompts.
  5. Disabling iCloud Photos and re-enabling it in Photos > Preferences > iCloud. This can force a re-sync, though often it’s relatively fast as Photos and iCloud seem to bypass pictures that are in both places.

None of this worked. After reading years’ worth of posts of people trying to overcome the problem, I tried one suggestion: deleting a deeply nested folder in the Photos library that tracks iCloud synchronization.

Warning! Apple doesn’t advise making these kinds of low-level changes. I strongly recommend making a full backup of your Photos library, if not a fresh full clone of your drive or forcing a Time Machine update, before proceeding.

Photos

Find your Photos library and Control-click it, and then select Show Package Contents. Now traverse down to:

private/com.apple.cloudphotosd/CloudSync.noindex

With Photos not running, I deleted the contents of this folder, which required entering an administrative password. I then-relaunched Photos.

Photos and iCloud apparently had a behind-the-scenes confab and decided my copy of Photos had never synced with iCloud at all. This led Photos on my Mac to re-upload about 45,000 images and videos, even though they were identical in my library at iCloud.com.

Fortunately, I have gigabit Internet service with no cap on usage and no overage fee. (The local legacy wired telephone company has rolled out fiber like mad and charges a relatively low amount for it—even less than slower service via a cable ISP.)

If you have more normal broadband service, even in the 50Mbps to 100Mbps range, or get throttled, blocked, or charged overage fees above a certain amount of monthly data, this won’t seem like a good solution to you at all. (Although during the pandemic, a number of ISPs with home broadband service have removed caps and overage charges, including AT&T and Comcast.)

The resync took about two days and showed steady progress. At the end, all my media remained in exactly the same state, but my Mac’s Photos library was finally up to date with other devices in its iCloud account set.

Ask Mac 911

Mac Photos App Repair Library Mac

We’ve compiled a list of the questions we get asked most frequently along with answers and links to columns: read our super FAQ to see if your question is covered. If not, we’re always looking for new problems to solve! Email yours to mac911@macworld.com including screen captures as appropriate, and whether you want your full name used. Not every question will be answered, we don’t reply to email, and we cannot provide direct troubleshooting advice.

Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read ouraffiliate link policyfor more details.

    Related:
Glenn Fleishman is the author of dozens of books. His most recent include Take Control of Your M-Series Mac, Take Control of Securing Your Mac, Take Control of Zoom, and Six Centuries of Type and Printing. In his spare time, he makes Tiny Type Museums. He’s a senior contributor to Macworld, where he writes Mac 911.

Comments are closed.