What to do when a Photos library could not be opened, or repair failed

By Kayabyte · Last updated 3 November 2026

Short answer: copy the library first, then try Apple’s repair tool (hold Option and Command while opening Photos). If repair fails and you have the copy, there is a free route Apple does not describe: in a copy, remove the database folder and open the copy in Photos, which rebuilt the library from its own change journals in our test. If that also fails, restore from a backup, or read the library without Photos.

Step 1: Copy the library before anything else

Every later step can change the library. If it’s on a healthy disk with room, quit Photos and duplicate the library in Finder. If you suspect the disk, copy it to another disk. Apple also asks you to back up first. Keep this copy untouched and work on another copy.

Step 2: Try Apple’s repair tool

From Apple’s page:

  1. Quit Photos.
  2. Hold Option and Command and open Photos.
  3. Click Repair. You may need your account password.

Apple says it analyses the database and repairs inconsistencies, that it can take some time on a large library, and that Photos opens the library when it finishes. If you use iCloud Photos, iCloud then checks that the library is in sync.

It didn’t help. That happens. In our test we cut a real library’s database to 60% of its size. Photos asked for Repair Library Permissions and the password, then said “The library could not be opened (-1)”. One case isn’t a statistic, but don’t treat a failed repair as the end. If repair sits at 100% for a very long time, we have no tested answer. Your copy from step 1 is what lets you stop safely.

Step 3: Rebuild it from its own journals, on a copy

A library holds more than its database. Inside it, a folder called resources/journals keeps a running record of albums, folders, captions, keywords, favourites and dates. In our tests, Photos rebuilt a library from those files when the database folder was missing, for free. Apple doesn’t document this, so it may change.

  1. Make a second copy of the library. Don’t do this on your only copy.
  2. Control-click the copy in Finder and choose Show Package Contents.
  3. Check that resources/journals exists. If it doesn’t, this route won’t work.
  4. Move the database folder out of the copy, to the Desktop for example.
  5. Quit Photos, hold Option while opening it, click Other Library and choose the copy.

What we saw on macOS 26.6.2, on the database cut to 60%: everything came back, including 6 albums, 3 folders, captions, keywords, favourites and hidden photos, on a small test library. A larger one will take longer. Things to know:

Step 4: Restore from a backup

If you have a Time Machine backup from before the trouble, use it. See how to restore a Photos library from Time Machine. The same journals are what make that work.

Step 5: Get the files out by hand

As a last resort, Show Package Contents and open the originals folder. Your original files are there if they were on this Mac, in folders and under names that mean nothing to you, without albums or captions. It’s free, it works with no database at all, and it loses the organisation. With Optimize Mac Storage on, originals may not be there.

Where AlbumRescue adds something

Steps 1 to 5 cost nothing and may be all you need. AlbumRescue is for when you want to see what can be saved before you try them, when step 3 doesn’t work, or when you want folders instead of a library. It reads a private copy of the database, repairs nothing in the library, and doesn’t need Photos to agree that the library opens.

What it can’t do: it can’t fix the library or make it open in Photos. Damage can lose things: the report counts what it can, and links between a photo and an album can disappear without a count. People names are not read from journals. Originals that are not in the library can’t be saved.

Steps with AlbumRescue

  1. Open AlbumRescue, click Choose a Library and pick the damaged library, then click Scan. It says when the database is damaged and reads what it can.
  2. Read Overview. It says what was lost, as far as that can be counted.
  3. Check Albums and Missing or Limited.
  4. Choose Export. The first 10 photos are free, so you can check the files before paying.

The scan, lists, comparison and 10 saved photos are free. The full export is USD 34 once, for 2 Macs.

Download AlbumRescue and scan for free. macOS 15 or later.

Questions

How do I repair a Photos library on a Mac? Back it up, quit Photos, hold Option and Command while opening it, and click Repair. Apple’s page has the details.

What if Photos repair fails? Keep a copy, then try the journal rebuild on another copy (step 3), restore from a backup, or read the library with a tool that doesn’t need Photos. Apple’s own page only suggests contacting support.

Is it safe to delete the database folder in a Photos library? Only in a copy. Move it rather than delete it, and keep your original untouched. In our test Photos rebuilt from the journals, but Apple doesn’t document this, and a library with no journals has nothing to rebuild from.

Can I recover a corrupted Photos library without a backup? Often some of it. Try steps 2 and 3 on copies. The original files, if they are on the disk, are in the originals folder inside the library.

Will a rebuilt library have my People names? We don’t know. Our test libraries had no named people, so assume they may be lost.

Apple, Mac, macOS, iCloud and Time Machine are trademarks of Apple Inc. AlbumRescue is made by Kayabyte and is not affiliated with or endorsed by Apple.