11 Replies Latest reply: Mar 10, 2013 10:26 AM by léonie
Crashkup Level 1 Level 1 (0 points)

Running Aperture 3.4.3 on Mac OS X 10.8.2 15" retina

I have a vexing situation. I have found it impossible to open my library. If I double click with command and option pressed and choose repair permissions I get the checking library consistency dialogue. When it finishes this I automatically get a dialogue that says "Aperture has detected inconsistencies". Then I choose repair. Aperture then takes about 45 minutes or more to get to 70 or 71% done... and never gets beyond that. I am unable to open the library. And I am of course in a rather difficult state as a result (presently in Bombay and really needing this library to open!) The library is on an external disk. I tried to transfer the library onto my internal drive but I was unable to copy it (unreadable sections.) ago.

The library was working fine a few days.

The library is somewhere between 12-20

 

Please help! Thanks.


MacBook Pro with Retina display, OS X Mountain Lion (10.8.2), 2.3 ghz 8 gb ram
  • 1. Re: Repairing Library Database won't finish
    léonie Level 9 Level 9 (51,775 points)

    How large is your library?  For a large library the repair may need a long time, so let it run.

    Aperture then takes about 45 minutes or more to get to 70 or 71% done... and never gets beyond that

    How long have you waited after the repair starts to hang? Be prepared to wait all day or even longer, if your library is large. Let it run.

     

    The library is on an external disk.

    Is this drive formatted correctly - MacOS X Extended?

    I tried to transfer the library onto my internal drive but I was unable to copy it (unreadable sections.) ago.

    Do you have a backup of your library?

     

    What happened directly before you could not open the library any longer? Did you import new images?  Did Aperture crash?

     

    Regards

    Léonie

  • 2. Re: Repairing Library Database won't finish
    Crashkup Level 1 Level 1 (0 points)

    Thanks, Leonie,

     

    It's between 12 and 20 gigs.  I guess i misinterprated that if force quit tells me Aperture is not responding I should still let it run. I only waited a coule hours at 70 and 71%.

     

    The disk is OS X extended.

     

    I do not have a recent backup I am afraid...

     

    Directly before the crash the plug was accidentally pulled out without the drive being ejected.  I think the library was not open at the time though.

  • 3. Re: Repairing Library Database won't finish
    léonie Level 9 Level 9 (51,775 points)

    I do not have a recent backup I am afraid...

    Whatever you do next, you need to create a backup first before you proceed. Any fixing of a broken library may corrupt it further. In Bombay it should be possible to buy a cheap thumbsdrive that can hold your 20 Gigs library.

    If you cannot copy it by dragging the Library to your internal drive or a second external, select the library in the Finder and ctrl-click it; select "Show Package Contents" from the Pop-up menu, then try to copy the sub folders one by one.

     

    Directly before the crash the plug was accidentally pulled out without the drive being ejected.

    Have you checked the file system on the drive with Disk Utility - pulling the plug may have damaged the file system? Disk Utility has a "First Aid" panel that lets you verify the disk. If the File System needs repairing, use the "Repair Disk" button, but you still need to run Aperture's "repair" or "rebuild" afterwards.

     

    Regards

    Léonie

  • 4. Re: Repairing Library Database won't finish
    Crashkup Level 1 Level 1 (0 points)

    Thanks.  Can I ask, what do I do after I copy the ackage contents?  I am attempting to do that right now.  i had NO IDEA that was possible.

  • 5. Re: Repairing Library Database won't finish
    léonie Level 9 Level 9 (51,775 points)

    Can I ask, what do I do after I copy the ackage contents?

    Keep it as a backup. If you do not succeed to fix the original library, or something goes wrong, you then can try to launch Aperture from this copy.

    If you copy the package contents to a folder called "Aperture Library Backup.aplibrary" or something, you should be able double click it and try to launch Aperture using this library. Hopefully you can repair it in the new location.

     

    But I'd try to copy in small installments. If one partial copy does not succeed, you will know exactly, which item in your Aperture library is causing problems and cannot be read. Maybe it is just a single image or video.

     

    Have you run Disk Utility? Did it show any problems with the disk?

  • 6. Re: Repairing Library Database won't finish
    Crashkup Level 1 Level 1 (0 points)

    Leonie, Fascinating. I had no idea about “show package contents.”  I did this. The only folder that would not copy was the database folder. So I went into the database folder and copied it manually – the only file that would not copy was library.apdb (database/apdb/library.apdb). 

     

    Now  have the whole library tree copied – minus library.apdb file. It is on my internal lptop drive. What do I do next?

  • 7. Re: Repairing Library Database won't finish
    léonie Level 9 Level 9 (51,775 points)

    Good!

     

    database/apdb/library.apdb

    That is one of the files that Aperture recreates when rebuilding the library.

    You could try (on your copy, not on the original) to double-click your copied folder "Aperture Library Backup.aplibrary" and to launch Aperture this way on the copy. Aperture should prompt you, if you want to rebuild you library, since database files are missing. Go ahead. This may take some time and may even crash. If it crashes, click "reopen". If you are lucky, your library will be rebuild.

     

    Good luck.

     



  • 8. Re: Repairing Library Database won't finish
    Crashkup Level 1 Level 1 (0 points)

    Wow.  It opened.  Thanks!!!

     

    Two things seem to be lost. Some or all of the keywords are gone (which is how I find things, so that's rather frustrating.) And there are no thumbnails for the videos. I assume there is a way to rebuild video thumbnais I just haven't figrued it out.

     

    Thanks so much for helping Leonie!

  • 9. Re: Repairing Library Database won't finish
    léonie Level 9 Level 9 (51,775 points)

    Great, so the library is working again? Check it carefully, if all images are o.k.

    Two things seem to be lost. Some or all of the keywords are gone

    That is puzzling; I just tried this on one of my test libraries, and all keywords survived the removal of the library.apdb file. How are you checking the keywords? Have you all metadata overlays enabled? If you show the Keywords HUD (Window > Keywords HUD) are all your keywords still defined?

     

    Movie thumbnails:

     

    Maybe there is a simpler way, but I recreate the movie thumbnails by resetting the poster frame: Select the movie in the browser, open it, advance it to a frame you like, then click the cogwheel and select "set poster frame". That will create a new thumbnail.

    posterframe.png

  • 10. Re: Repairing Library Database won't finish
    Crashkup Level 1 Level 1 (0 points)

    Thanks again. You have been such a help. So conscientious.

  • 11. Re: Repairing Library Database won't finish
    léonie Level 9 Level 9 (51,775 points)

    You are welcome!