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

How to prevent iPhoto from getting corrupted?

This is the second time in the last couple months where I've had to rebuild/repair my iPhoto library, i.e. I get prompted at iPhoto startup that the library cannot be read, with the suggestion to rebuild or repair my library by starting with Command + Option. While I've found plenty of links on how to rebuild/repair the library, my concern is that it's not addressing the root cause.


1. What are the reasons a library would be corrupt? Is it because the iPhoto database doesn't match with what's in the filesystem? If so, what specifically doesn't match - file permissions, file properties, etc.? Or, is it something with the filesystem itself that's corrupted, causing iPhoto to not be able to find a file(s)?

2. How can I prevent corruption in the future?


I was able to rebuild/repair or restore from Time Machine backup, but again, my concern is without knowing the root cause, I could be losing data and not realizing it, or even propagating errors in the Library.


I'm using OS X ver. 10.8.3. iPhoto 11, ver. 9.4.3 (720.91).

MacBook Pro, OS X Mountain Lion (10.8.3)

Posted on May 6, 2013 11:08 PM

Reply
9 replies

May 7, 2013 12:46 AM in response to burvil

iPhoto is built around an SQL database. This db is liable to damage if it's interrupted while writing to the db. What can cause this? A crash or force quit are the most likely. Other possibiities: if the db is sitting on an inappropriately formatted disk, if the disk it's on is damaged and so on.


As you've had to rebuild/restore twice in a short space of time (by comparison, I've been using iPhoto since v1 and I've never had to) I would suspect that the fix isn't fixing and the damage is also present in the back up.


In your case I would make a new database and here's how to do it with the minimum interruption:


Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)



This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.



Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

May 7, 2013 8:18 PM in response to burvil

Hi Terence -

I've seen your posts on a few threads about backing up iPhoto and rebuilding the library due to the triangle / exclamation point problem. I cannot solve this problem despite repeated attempts and I fear that more and more photo files are being corrupted and lost.


First of all, can this be possible?

Secondly, I have backed up the library at least once and I've had to upgrade to a new version of iPhoto. I have backups on an external G drive mini and all the same photos are missing. Am I simply backing up a corrupt library? How can the broken link to the original files actually be repaired?


Can you provide any more assistance?

Thanks.

May 7, 2013 9:33 PM in response to Keith Barkley

I was able to rebuild/repair or restore from Time Machine backup, but again, my concern is without knowing the root cause, I could be losing data and not realizing it, or even propagating errors in the Library.
MOST IMPORTANTLY, DON"T MUCK AROUND IN THE iPHOTO LIBRARY FILE!

If you are sharing your iPhoto library between two user accounts and did not take precautions that the second user has no write access or if you are trying to sync your library in a Dropbox folder or on another kind of network storage it can get corrupted over and over again. In that case, restore your iPhoto library to your Pictures folder or a directly connected external drive and stop sharing it this way.

May 7, 2013 10:37 PM in response to Keith Barkley

OK, I'll try rebuilding the library using Library Manager. However, I'll admit the one exception I had done some time ago is edit the videos in the Iphoto Library with Quicktime. Would I need to upgrade to Aperture or some other program to do this safely? Or would it be better to move the videos in a completely separate application?

May 7, 2013 11:08 PM in response to burvil

Would I need to upgrade to Aperture or some other program to do this safely? Or would it be better to move the videos in a completely separate application?

In iPhoto you can only trim the videos (double click the video and use the "Action" menu).


Aperture will allow you to set an external video editor, so you could use Quicktime Player or Quicktime 7 to edit the video.


But it might be simpler to manage and edit your videos in iMovie and use the Media Browser, if you need to use a video in other applications.

How to prevent iPhoto from getting corrupted?

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