Skip navigation

iTunes Library cannot be saved (Error -54)

132944 Views 84 Replies Latest reply: Mar 31, 2014 4:01 AM by Henrik Stilling RSS
  • jordanfrank Level 1 Level 1 (0 points)
    Currently Being Moderated
    Mar 2, 2011 5:10 AM (in response to snkhan)
    I recently moved my iTunes library to an external drive. This allows me to open it from a 2nd computer as well as the one it is connected to.

    I had it open on the 2nd computer where I was syncing a phone. I pulled the phone out before the sync was done (had to go to work) and then had to do a force shut down on that computer.

    When I tried returned to iTunes on the main computer, it gave me this error repeatedly. When I quit and tried to come back to iTunes, it would not let me open the library.

    After opening iTunes on the 2nd computer once more (and doing a full phone sync - not necessarily related to fixing the problem) and closing it down... then I was able to open it happily again on the primary computer.
    G5, Mac OS X (10.5.8)
  • splurben Level 1 Level 1 (80 points)
    Currently Being Moderated
    Jan 26, 2012 3:17 PM (in response to iMacPodshuffle)

    This link is dead.

  • bediddleby Level 1 Level 1 (35 points)
    Currently Being Moderated
    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.

  • PattieLennoah Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 8, 2012 3:46 PM (in response to bediddleby)

    I'm running 10.6.8 and just started getting this error today. So, if I do what you're suggesting, I won't lose my playlists or anything?

  • bediddleby Level 1 Level 1 (35 points)
    Currently Being Moderated
    Feb 8, 2012 9:21 PM (in response to PattieLennoah)

    No, I retained all my playlists, etc.

  • handyman3 Calculating status...
    Currently Being Moderated
    Feb 11, 2012 5:52 AM (in response to bediddleby)

    Hey, just a quick question, you mentioned  "delete the library files in the iTunes folder". I was wondering if you meant to delete all library files ? I have "Library Extras.itdb" "Library Genius.itdb" and "Library.itl". Just want to make sure this stuff is all new to me, Thanks !

  • bediddleby Level 1 Level 1 (35 points)
    Currently Being Moderated
    Feb 12, 2012 8:44 AM (in response to handyman3)

    The XML. Mine is called "iTunes Music Library.xml"

  • handyman3 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 13, 2012 6:09 AM (in response to bediddleby)

    I have saved the library.XML as you mentioned, on the desk top. I was just wondering about which other libraries were to be deleted. I have the 3 I mentioned earlier. "iTunes extras.itdb" "iTunes Genius.itdb" and "iTunes library.itl". I appreciate your help, Thanks very much !

  • bediddleby Level 1 Level 1 (35 points)
    Currently Being Moderated
    Feb 13, 2012 6:14 AM (in response to handyman3)

    Oh, I see what you're saying. I don't believe I deleted any of those other files. They might get recreated after you create your new main library file anyway, but I'm not 100% sure. Maybe someone else can offer better insight here.

  • handyman3 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 13, 2012 8:47 AM (in response to bediddleby)

    No worries, I appreciate your time thanks.

  • Jason Warth Level 1 Level 1 (10 points)
    Currently Being Moderated
    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.

  • BaristoSan Calculating status...
    Currently Being Moderated
    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.

  • nenis26 Calculating status...
    Currently Being Moderated
    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

  • francese02130 Calculating status...
    Currently Being Moderated
    Apr 18, 2012 5:15 PM (in response to snkhan)

    Same error (-54) here. There are lots of solutions in this thread, but this did it for me:

     

    - deleted all my podcasts and emptied the trash. Restarted itunes. Deleted them again and restarted itunes again.

  • Annalea Level 1 Level 1 (0 points)
    Currently Being Moderated
    May 21, 2012 4:58 PM (in response to BaristoSan)

    Fwiw, Consolidating files did nada for me.  Still waiting on the permissions repair to see if that makes a difference.  Considering the nature of the error, that's the one that seems it would work, out of the two.

     

    Well, repairing disk permissions seems to have done it.  Thanks!

1 2 3 4 ... 6 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (5)

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.