Itunes 12.3 (Corrupt) Library without update

Today when I opened my iTunes Library it saids me that the iTunes Library was damaged and approximately 2500 tracks and almost all my playlist disappeared (it seems like iTunes used a previous Library of mine, like 6 months ago or so). I tried with the last iTunes Library.itl file in the "previous iTunes Library" folder, but since I hadn't done any update, the most recent file I found was from December last year (and I downloaded more than 1000 songs and made lots of new playlist since then). I also tried to import the iTunes Music Library.xml in my iTunes but he says me that some tracks from "iTunes Music Library.xml" hadn't be imported because they're unfindable.

Thanks in advance for your help and sorry for my bad english

Luca

MacBook Pro, OS X El Capitan (10.11.4)

Posted on Mar 31, 2016 4:42 AM

Reply
13 replies

Mar 31, 2016 7:03 AM in response to Lucaborsato

All of your song (and other media) files are still on your computer's storage (and likely to be fine), even if the iTunes library (database) file has become corrupted. If you use the default iTunes settings for where media files are stored, they are located at


[startup disk]/Users/[user account folder]/Music/iTunes/iTunes Media


NOTE: In some cases, that last folder is called iTunes Music.


That iTunes Media folder has sub-folders for each media type. Songs are in the Music sub-folder (in iTunes Media), organized by into additional sub-folders by Artist name and then Album name. Take a look using Finder, to confirm they are there.


The Previous ITunes Libraries folder has backups of your iTunes Library.itl file. These backups are made by iTunes, when you install a major update to iTunes. The backup allows you to recover, if you have problems with the new version. What you probably did was this procedure (or something close to it)


If you don't see your content after you update iTunes - Apple Support


Do you use the built-in Time Machine feature to back up your data? If you do, you can restore your iTunes Library.itl file to a version just before this corruption occurred. That would be ideal.


Otherwise, I see these choices, and none are ideal.


(1) Start with a brand new (empty) iTunes library. Use the Add to Library command to import your entire iTunes Media folder. If all of your existing media files are stored in that iTunes Media folder, you should have all of your songs (and other media) in that new iTunes library. However, you won't have any of your playlists, so you'll need to recreate them. You also won't have any "history" data, such as play count, ratings, date added, etc.


(2) Use the procedure linked above to go back to the last available backup of your iTunes Library.itl file. Manually add missing songs (and other media) from the iTunes Media folder. This could be a pain, if you added "more than 1000 songs" since that older version of your iTunes library. And you'll need to recreate missing playlists too.


(3) Use this method (linked below) to "rebuild" your iTunes library using the .xml files, if that file is fairly recent. If it's old, option (1) is better. If it's called "iTunes Music Library.xml," it may be MUCH older than the last available backup from option (1). But if it's recent, this article provides a good description of how to "rebuild" your iTunes library using the .xml file


http://www.mcelhearn.com/how-to-rebuild-your-itunes-library/


Please post back with any questions about the above.

Mar 31, 2016 7:06 AM in response to Kenichi Watanabe

Yeah, all the files are in the Finder so I can use option (1) to make my iTunes again. I'm just wondering why iTunes is automatically creating those 3 files I've mentioned above (iTunes Library (Corrupt) Extras.itdb, iTunes Library (Corrupt) Genius. itdb and iTunes Library (Corrupt).itl) even when I use option (1). It don't really is a problem since it's working but I'm afraid the problem could reappear any time with those files staying...


Sadly I don't configured Time Machine so I don't have any backup of my iTunes.

Mar 31, 2016 7:18 AM in response to Lucaborsato

I don't think those "Corrupt" files were created after the problem. Those ARE the corrupted files that caused the problem. iTunes probably named them that way, instead of deleting them, when they became corrupted and unrecoverable, and gave you new files.


It's possible that your Mac's drive is becoming unreliable, which caused this problem to appear. You may want to run Disk Utility, and do a First Aid check on your startup disk. Be sure to select the startup disk volume (indented below the drive) in the Disk Utility sidebar.


And now would be a good time to get an external drive and start using Time Machine. Then, even if you have another problem, you can quickly recover to a backup state before the problem occurred.

Mar 31, 2016 7:27 AM in response to Lucaborsato

When you rename a file on OS X, or move it within the same volume, OS X will try to match up any request for the file to the original unless there is a different file at the original path to connect to. It would seem that you've renamed the broken library as iTunes Library (Corrupt).itl, but have not supplied an iTunes Library.itl to replace it. iTunes Library (Corrupt).itl is now the default library. When iTunes accesses an itl file it will make the support files <Library Name> Extras.itdb, <Library Name> Genius.itdb and, if share XML is enabled, <Library Name>.xml if these files don't already exist.


You should copy your most recent library file from the Previous iTunes Libraries folder up into the main iTunes folder, rename it as iTunes Library.itl and then option-start iTunes to connect to this version of the database. Note however my previous questions. There may be a .tmp file in your iTunes folder which is the full library that you want to restore. If so copy and rename this instead. Otherwise you can import the media folder to add in any new tracks that were not listed in the old library.


Can you post a screenshot that lists the content of your iTunes folder?


tt2

Mar 31, 2016 7:32 AM in response to Limnos

(Yes, that what I've done, while iTunes is closed. And when I open it again it shows me an empty library and create new (corrupt) files which i've just deleted...)


Sorry guys, it now works with option and the latest iTunes Library which is from last December. I guess I have to import all the last files manually now.. Because I don't find any .tmp files and don't use Time Machine..


Thanks a lot for your help (And if you have any other ideas please tell me)

Mar 31, 2016 7:50 AM in response to turingtest2

I tried it and still no .tmp.. But now I've got an iTunes with tracks dates from October (mmmh not December strangely), so I have a last question : is it possible when I'm in the Add to library option to have them timeless sorted with the Add Date (Because when I click on it it shows me "Yesterday", "Last 7 Days", "February", "January" so perfect for that but after "2015" and I don't really precisely know what I've added after October 2015 and what before.) But it is not a big problem else

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Itunes 12.3 (Corrupt) Library without update

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