Unable To Write To Library Iphoto Library Error Mac

Posted on  by 

If your iPhoto Library resides on an external drive accessed by multiple Mac users, there can be a conflict of permissions on that drive disabling a certain user to access it. To correct this factor, connect the drive to your Mac. Open the Finder application. If iScrapbook, Business Card Shop, Labelist, PrintLife, or Greeting Card Shop can't open your iPhoto library, it may be corrupt. IPhoto provides built-in tools to repair itself. Here's how: a) Quit iPhoto, if it's open. B) Hold down th.

This is a fairly common error taking many forms, shown when opening a photos library with the Photos app. Your library is most likely still intact and your photos still stored safely. Just because Photos can’t automatically repair the library on launch doesn’t mean it is unrecoverable. Here’s some steps you can take to recover your photos.

Photos library could not be opened

The library could not be opened.
Photos has attempted to repair the library Photos Library.photoslibrary but is unable to open it.

The most common cause of this is a permissions problem. Not necessarily that you don’t have the permission, as Photos will prompt for administrator permissions if that’s simply the case, but that permissions can’t be obtained, even with administrator. For example, if the library is open elsewhere: on another Mac on the network, for example.

If that didn’t fix it for you, you can manually try repairing the library. If it’s a permissions problem, Photos.app doesn’t like to ask for administrator privileges automatically, instead just saying that Photos attempted to repair the library but is unable to open it without actually trying to repair it. You can force Photos to try to repair the library by holding ⌥option and ⌘command whilst launching Photos. Photos.app will try to repair the library and it may ask you for administrator privileges.

Photos library could not be created

Photos could not upgrade your library because it is on an unsupported disk volume

This error is likely due to an incorrect partition format, such as NTFS which can’t be written to. Photos requires write permission to create a library or to migrate a library from iPhoto. You can fix this by copying the library to somewhere where you can write to, such as your ~/Pictures directory — the default location for photos in your home folder.

Using Console.app for error research

For more information on an error message shown in Photos like this, open Console.app, in /Applications/Utilities/ and search for “photo”, perhaps choosing Process for this search. This can be extremely telling in what the problem is. For example, in my case, the important lines here is that photolibraryd “failed to open library” with an error message:

photolibraryd: Failed to open library Photos Library.photoslibrary Error: Error Domain=com.apple.lithium Code=54 “locked by remote host” UserInfo=0x7fafbbb48d90 {NSURL=file:///Volumes/Server/Shared%20Folders/Photos/Photos%20Library.photoslibrary/database/metaSchema.db.lock, NSLocalizedDescription=locked by remote host, NSLocalizedFailureReason=locked by host georgegarside.com}

The important content here is why the library failed to open. Here, the problem is that the library is “locked by remote host” which means that the library is open somewhere else on the network, as specified by the NSLocalizedDescription. The NSLocalizedFailureReason also includes the hostname of the Mac on the network which has locked the library—in this case, the device with the hostname of georgegarside.com. If you find that messages in the Console are hidden as <private>, you may need to set the Console privacy level to see private logs.

The solution to this issue: close Photos.app on the other Mac, or open a different library on that Mac if there are multiple libraries available.

If iScrapbook, Business Card Shop, Labelist, PrintLife, or Greeting Card Shop can't open your iPhoto library, it may be corrupt. iPhoto provides built-in tools to repair itself. Here's how:


a) Quit iPhoto, if it's open.

b) Hold down the Command and Option keys as you click the iPhoto icon. The Photo Library First Aid window opens.

c) Select Repair Permissions to repair permissions and unlock necessary files and folders.

d) Click Repair.

Unable to write to library iphoto library error mac os

e) If the Repair Permissions option doesn't solve the problem, try the other options as well.


If iPhoto's built-in first-aid tool don't solve the problem, then there's a chance that it's because the AlbumData.xml file inside of the iPhoto library is corrupt. If it is corrupt, you'll see an error message that looks something like this:

Couldn't load iPhoto library because an error occurred: Error Domain=NSCocoaErrorDomain Code=3840 'The data couldn’t be read because it has been corrupted.' (Unknown character '(' (0x28) in <integer> on line 93429) UserInfo=0x100863200 {NSDebugDescription=Unknown character '(' (0x28) in <integer> on line 93429, kCFPropertyListOldStyleParsingError=The data couldn’t be read because it has been corrupted.}
Fortunately, it's fairly easy to repair this type of problem. Here's how:
a) Quit the Chronos product you're using (iScrapbook, Business Card Shop, Labelist, PrintLife, or Greeting Card Shop)
c) Switch to the Finder

Unable To Write To Library Iphoto Library Error Mac Os

d) Locate the iPhoto library you're having troubles with

Unable To Write To Library Iphoto Library Error Machine

e) Control-click on this library file and choose 'Show Package Contents'
f) Locate the file inside of this package called 'AlbumData.xml'
h) Launch iPhoto
j) Launch the Chronos product you're using
k) Open the Photo Browser. Your photos should appear correctly now.

Coments are closed