Q: Error while repairing permissions
Just upgraded to the new Photos app, during the 'Preparing Library...' phase I received the following error "An error occurred while repairing permissions"
I rebooted to the recovery console (⌘R during a restart) and ran Disk Utility to repair permissions and repair the disk. After rebooting the same error appears after starting photos.
My console log shows the following:
2015-04-08 5:33:49.369 PM Photos[550]: Attempted pid lock for: file:///Users/jj/Pictures/iPhoto%20Library/, <PLPHgPIDFile: 0x61000024e400>, 1, retries: 3
2015-04-08 5:33:49.398 PM Photos[550]: Running permission check before migration
2015-04-08 5:33:49.398 PM Photos[550]: Begin Library Permission Check
2015-04-08 5:33:55.533 PM Photos[550]: End Library Permission Check, error: Error Domain=com.apple.library-repair.error Code=4 "The operation couldn’t be completed. (com.apple.library-repair.error error 4.)"
2015-04-08 5:33:55.533 PM Photos[550]: PLMU migration failed: Error Domain=RKRepairLibraryPermissions Code=3 "The operation couldn’t be completed. (RKRepairLibraryPermissions error 3.)" UserInfo=0x600000270f00 {NSUnderlyingError=0x610000255b70 "The operation couldn’t be completed. (com.apple.library-repair.error error 4.)"}
2015-04-08 5:33:55.541 PM Photos[550]: PLMU migration failed permission check: Error Domain=RKRepairLibraryPermissions Code=3 "The operation couldn’t be completed. (RKRepairLibraryPermissions error 3.)" UserInfo=0x600000270f00 {NSUnderlyingError=0x610000255b70 "The operation couldn’t be completed. (com.apple.library-repair.error error 4.)"}, underlying error: Error Domain=com.apple.library-repair.error Code=4 "The operation couldn’t be completed. (com.apple.library-repair.error error 4.)"
Anyone else see this already, or know how to report an issue directly to Apple?
Posted on Apr 8, 2015 4:46 PM
Fixed it. My Photos library is now updating. Here is what worked for me.
The Photos app seems to import every image from your iPhoto library. Over the last 7 years it turns out that a few of my photos became corrupted at the system level (even low level tools fail to read from the file). So, when Photos fails to open a file, it simply reports an error and quits. Not the most robust error handling, but what can you do.
I resolved the problem by watching my system console (Spotlight Console to open the app). Next start Photos, and wait for the Photos app to fail. Look for something like the following in the console:
2015-04-08 6:40:33.000 PM kernel[0]: /SourceCache/AppleFSCompression_kexts/AppleFSCompression-68.1.1/Common/ChunkCom pression.cpp:264: /Users/jj/Pictures/iPhoto Library/Masters/2009/22-09-2009/Lighthouse Heceta.psd: invalid resource map
In my case above the kernel (the operating system) couldn't open one of my images. I deleted the file through Finder (Control-Click on the iPhoto folder using Finder and choose 'Show Contents'). I repeated this process until Photos imported my iPhoto library.
I'll try to restore the lost photos from a backup, but depending on when the corruption occurred to the file, I may have simply been backing up a corrupted file for years.
Posted on Apr 8, 2015 6:01 PM