Skip navigation

Repairing Library Database won't finish

627 Views 11 Replies Latest reply: Mar 10, 2013 10:26 AM by léonie RSS
Crashkup Level 1 Level 1 (0 points)
Currently Being Moderated
Mar 7, 2013 7:52 PM

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
  • léonie Level 8 Level 8 (46,710 points)
    Currently Being Moderated
    Mar 7, 2013 10:05 PM (in response to Crashkup)

    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

  • léonie Level 8 Level 8 (46,710 points)
    Currently Being Moderated
    Mar 7, 2013 11:04 PM (in response to Crashkup)

    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

  • léonie Level 8 Level 8 (46,710 points)
    Currently Being Moderated
    Mar 9, 2013 1:22 AM (in response to Crashkup)

    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?

  • léonie Level 8 Level 8 (46,710 points)
    Currently Being Moderated
    Mar 9, 2013 3:46 AM (in response to Crashkup)

    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.

     



  • léonie Level 8 Level 8 (46,710 points)
    Currently Being Moderated
    Mar 9, 2013 9:32 AM (in response to Crashkup)

    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

  • léonie Level 8 Level 8 (46,710 points)
    Currently Being Moderated
    Mar 10, 2013 10:26 AM (in response to Crashkup)

    You are welcome!

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.