Apple Event: May 7th at 7 am PT

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

iTunes Library cannot be saved (Error -54)

Hey guys,

Recently started getting the following error "The iTunes Library file cannot be saved. An unknown error occured (-54)."

!http://img3.imageshack.us/img3/9720/picture1tt8.png!

I've searched the forums and Google, but can't seem to find a solution which fixes the error and which does not delete my ratings and playcounts.

Any help appreciated!

Message was edited by: snkhan

Apple iMac 20" 2GB RAM, Mac OS X (10.5.6), iPhone 3G 2.1, iLife '08, iWork '08

Posted on Feb 19, 2009 1:45 PM

Reply
Question marked as Best reply

Posted on Feb 20, 2009 5:45 AM

Have you already tried this:
Go to iTunes, "file", choose export library. Save the library.xml file on your desktop. Quit iTunes, delete the library files in the iTunes folder. Relaunch iTunes, go to "file", click on import library and choose the library.xml file.
93 replies

Jan 30, 2012 6:08 AM in response to iMacPodshuffle

iMacPodshuffle wrote:


Have you already tried this:
Go to iTunes, "file", choose export library. Save the library.xml file on your desktop. Quit iTunes, delete the library files in the iTunes folder. Relaunch iTunes, go to "file", click on import library and choose the library.xml file.

I was having this problem in OS X 10.7.2 and this simple trick fixed it. Thanks.

Mar 8, 2012 4:11 PM in response to snkhan

There's a solution that's even a bit simpler than the already-simple one outlined in this thread. Instead of exporting the library to the desktop, deleting the library files (in the iTunes folder), moving the exported library file to the iTunes folder, importing, etc...


Simply export the iTunes library to the existing iTunes library folder


(Use the same name as the existing library.xml file—and, when asked, confirm that you want to overwrite the existing file.)


Ta-da! No manual file management needed.

Mar 24, 2012 4:00 AM in response to snkhan

Thank you so much! I tried two suggestions, unsure which one fixed the problem:


1. Changed my Recently Played smart-list to only display entries from the last two days.
2. Reset my warnings via the advanced menu.


I also happened to switch from SFTP to FTP in a plugin I use. No more silly -54 errors! Thank you again for bearing with me.


I too tried two things (previously unsuggested) and not sure which fixed it. My errors began occurring after I restored my OS X install from a Time Machine backup:


1. File > Library > Organize Library... > Consolidate Files

2. Disk Utility > Repair Disk Permissions


The same error occured a crap load of times during the Consolidate Files process.


It's also worth noting that I had exported my library as suggested in this thread, but decided to give the two options above a try before deleting and importing the library file.

Apr 1, 2012 6:45 PM in response to snkhan

i had the same problem today by no reason i try to delete a song from my itunes library and shortly after i got a box with a message saying "The Itunes library file cannot be saved. error (-54) and i was concern because i never got this message before but i came here and i was reading any solution in how to get rid of this message and i just quited my itunes library and open it again and delet the same song and the box was gone i havent received it anymore

iTunes Library cannot be saved (Error -54)

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