You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Newsroom Update

Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >

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 Top-ranking 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

Aug 19, 2013 4:54 PM in response to snkhan

Thought I'd share the following:


I just bought and connected a Griffin iMic to my Mac Mini so I could listen to my headphones via USB rather than using the 3.5 mm headphone jack on the back of the Mac Mini. For some reason this recreated the (Error -54) problem after having solved the problem using Annalea's suggestion. I've been (Error-54) free for almost a year. The error message occurred right after using the iMic so I assume it had to be the iMic. Repeating Annelea's protocol below solved the problem once again. Thanks Annelea!


I've already solved the issue, through repairing disk permissions. (Applications>Disk Utility>Repair Permissions)

Oct 12, 2013 6:22 PM in response to snkhan

I saw this podcast and thought folks coming to this discussion may find it helpful. You will notice that at one point in the video there is a screen that shows options for things that can be done to address problems with iPhoto. The top option is "Repair permissions." This targets the permissions associated with your iPhoto library. I'm guessing that it may accomplish what our niche celebrity :-), Annalea, discovered. It also gives additional steps that may solve other issues.


The podcast wouldn't have attracted my attention had it not been for the power of Annalea's solution!


http://macmost.com/taming-large-iphoto-libraries.html

Oct 20, 2013 8:20 PM in response to snkhan

So far, I've repaired permissions a number of times, with no luck in removing this error nor in getting iTunes to stop freezing up (beach ball spinning) after a short bit of usage.


I'm running a Mac Mini that is really doing no other job than acting as a media server for my house (with a connected drobo), and all of this started happening with the most recent update.


I've had severe issues making iTunes mostly unusable; I'd have to remote into my Mac Mini and kill and then restart iTunes if I wanted to watch anything stored locally. I haven't even been able to successfully sync movies to my iDevices, either.


Today, I decided to do a fresh install of iTunes. So far, this seems to be working--functioning as iTunes the media server, and iTunes that syncs again.


Painful to go through this; hope my pain helps someone else figure things out. Or helps others help me figure it out.

Nov 10, 2013 6:45 AM in response to snkhan

For what it's worth.

https://discussions.apple.com/thread/1082953


I read in that thread about the same error. -54 is a software lock on a file. A disk utility permissions repair can fix it. However, for some individuals the problem persists. In the examples in that thread, it was one or several mp3-files that were locked. Their solution was to find those files and unlock them by marking them and choose "cmd+i" to "get info". At the bottom of the new info popup window, you see the permissions.


That is a tedious task if you hace 19000 mp3's in your library. It can probably be automated in the Terminal but don't ask me how. Also, it could probably happen to any file - book - song - video - app. Even iTunes library files themselves I guess.

Nov 10, 2013 9:47 AM in response to Annalea

Hi Annalea,

I have started getting this Error-54 message intermittently when I open iTunes 11.1.3 on my G5 iMac running ML 10.8.5.

My large iTunes library is on an external drive.

My question is what file you used to fix permissions on via Disk Utility-was it the iTunes library .xml file or another one?

TIA

Caroline

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 Account.