iTunes library disappeared, how to recover

Apologies if it's been asked multiple times but I've searched and cannot find a solution. I rarely listen to music on my computer but use my iPhone and iPad regularly. I went to listen to my music on iTunes and every song said it cannot locate the song. I use Time Machine every week and have looked at it trying to restore but it's a bit confusing. I have bought music through the iTunes Store and copied my CD's into the library. There is no issue on the devices but nowhere to be found on my MBP running OS 11.1. Suggestions would be appreciated.

MacBook Pro Retina

Posted on Dec 22, 2020 8:30 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 27, 2021 3:28 PM

tcphoto1 wrote:

Apologies if it's been asked multiple times but I've searched and cannot find a solution. I rarely listen to music on my computer but use my iPhone and iPad regularly. I went to listen to my music on iTunes and every song said it cannot locate the song. I use Time Machine every week and have looked at it trying to restore but it's a bit confusing. I have bought music through the iTunes Store and copied my CD's into the library. There is no issue on the devices but nowhere to be found on my MBP running OS 11.1. Suggestions would be appreciated.


Usually the songs would be somewhere on your computer, or could be recovered from Time Machine if it had been backing up your iTunes or Music folder. Had you moved your media to an external drive? Or have you copied the Music folder to a new computer, but not the old iTunes Media folder it was dependent on?



The "missing file" issue with exclamation marks happens if the file is no longer where iTunes or Music expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, the drive it lives on has had a name change, or you've moved a non-portable library to a different path (see Make a split library portable for details). It is also possible that iTunes or Music have changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place, or that you've been too aggressive when deleting duplicates at some point.


Select a track with an exclamation mark, use Cmd-I to get Song Info, then click No when asked to try to locate the track. Look on the file tab for the location the library thinks the file should be. Now take a look around your hard drives. Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive label has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case. If everything is where it is supposed to be try Repair security permissions for iTunes for Mac - Apple Community.


In some cases the library may be able to repair itself if you go through the same steps with Get Info, or when playing a track, but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" I think it expects to find the tracks in the same artist & album layout they were in previously, with one systematic change to the path.


If you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under iTunes|Music > Preferences > Advanced
  2. The location of a sample missing track shown under Song Info > File > Location that begins file://
  3. The true path to the file whose details you gave in 2



See also FixLinks - an AppleScript to repair broken links in Music - Apple Community.



tt2

Similar questions

7 replies
Question marked as Top-ranking reply

Jan 27, 2021 3:28 PM in response to tcphoto1

tcphoto1 wrote:

Apologies if it's been asked multiple times but I've searched and cannot find a solution. I rarely listen to music on my computer but use my iPhone and iPad regularly. I went to listen to my music on iTunes and every song said it cannot locate the song. I use Time Machine every week and have looked at it trying to restore but it's a bit confusing. I have bought music through the iTunes Store and copied my CD's into the library. There is no issue on the devices but nowhere to be found on my MBP running OS 11.1. Suggestions would be appreciated.


Usually the songs would be somewhere on your computer, or could be recovered from Time Machine if it had been backing up your iTunes or Music folder. Had you moved your media to an external drive? Or have you copied the Music folder to a new computer, but not the old iTunes Media folder it was dependent on?



The "missing file" issue with exclamation marks happens if the file is no longer where iTunes or Music expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, the drive it lives on has had a name change, or you've moved a non-portable library to a different path (see Make a split library portable for details). It is also possible that iTunes or Music have changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place, or that you've been too aggressive when deleting duplicates at some point.


Select a track with an exclamation mark, use Cmd-I to get Song Info, then click No when asked to try to locate the track. Look on the file tab for the location the library thinks the file should be. Now take a look around your hard drives. Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive label has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case. If everything is where it is supposed to be try Repair security permissions for iTunes for Mac - Apple Community.


In some cases the library may be able to repair itself if you go through the same steps with Get Info, or when playing a track, but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" I think it expects to find the tracks in the same artist & album layout they were in previously, with one systematic change to the path.


If you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under iTunes|Music > Preferences > Advanced
  2. The location of a sample missing track shown under Song Info > File > Location that begins file://
  3. The true path to the file whose details you gave in 2



See also FixLinks - an AppleScript to repair broken links in Music - Apple Community.



tt2

Dec 24, 2020 12:10 PM in response to jdo_apple

You aren't telling me anything that helps, I will attach a screenshot of the result of your suggestion. How can I have my iTunes purchases and the songs I copied from my purchased CD's on my iPhone and iPad and not have them on my MBP? The only thing that has changed in the Big Sur update. Perhaps you could tell me where the Music Library is located from my devices.

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 library disappeared, how to recover

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