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:
- Quit Photos.
- Hold Option and Command and open Photos.
- 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.
- Make a second copy of the library. Don’t do this on your only copy.
- Control-click the copy in Finder and choose Show Package Contents.
- Check that resources/journals exists. If it doesn’t, this route won’t work.
- Move the database folder out of the copy, to the Desktop for example.
- 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:
- People names. Our test libraries had no named people, so we can’t say whether they come back. Assume they may not.
- Strays. A failed import had left a file in the library, and it came back as an item with no date and no thumbnail.
- iCloud. Apple says that switching to another library turns off iCloud Photos and Shared Albums for it. Check the copy before you make it your System Photo Library.
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.
- It reads the journals itself, which is the source Photos uses in step 3, with no copying or moving by you.
- If the journals are gone, it salvages what it can from the damaged database file, on its private copy.
- If neither works, it says that only the photo files can be saved.
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
- 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.
- Read Overview. It says what was lost, as far as that can be counted.
- Check Albums and Missing or Limited.
- 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.
Related guides
- Why won’t a Photos library on an external drive open?
- How to restore a Photos library from Time Machine
- How to export Photos albums to folders
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.