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.

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

Apple Music won't find "missing" files

Hi there,


Somehow, I managed to make Music change the location of almost all of my files to a non-existent location. This is where Music thinks this particular file should be:


file:///Volumes/MEDIA/iTunes/Music/The Jazz Butcher/Last of the Gentleman Adventurers/08 Black Raoul.m4a


The problem is that there is no Volume called MEDIA. My files are actually located in:


/Volumes/Eleven/Media/iTunes/Music/The Jazz Butcher/Last of the Gentleman Adventurers/08 Black Raoul.m4a


I have corrected the Music Media folder location but Music remains unable to find the rest of the missing files once I click the prompt after locating one file. Additionally, Music crashes if I try to have it Find Missing files more than once. Locating each file individually is ridiculous.


How might I rectify this situation? Do I need to trash the library and rebuild it? Should I create a MEDIA volume and move all of the files? Is the "file:///" at the beginning of the missing files the issue, and if so, how so and how can I repair it?


I have a 2018 MacMini with an external drive ("Eleven") that houses my music files. I'm running Catalina 10.15.7. I would be happy to provide more info but I'm not sure what else might be important/pertinent. Thank you in advance for any assistance!

Mac mini, macOS 10.15

Posted on Oct 25, 2021 7:13 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 27, 2021 7:34 PM

The script ought to work, although renaming the volume and moving the folder as suggested would seem to be a more efficient route. Music might make a better job of using its own repair mechanism if you set the media folder as /Eleven/Media/iTunes. The additional /Music folder will be implied by a preference file before Music attempts to locate the artist and then the album folder in which to find the track it is looking for.


Once you have the library in a working state it would be possible to use steps from Make a split library portable to convert it into a portable form, after which you could then rename the drive again. The typical layout for a Music library is a Music folder that contains the Music Library.musiclibrary database and a Media folder, which has a Music subfolder, that in turn contains the artist folders.


tt2

Similar questions

6 replies
Question marked as Top-ranking reply

Oct 27, 2021 7:34 PM in response to tonoluv33

The script ought to work, although renaming the volume and moving the folder as suggested would seem to be a more efficient route. Music might make a better job of using its own repair mechanism if you set the media folder as /Eleven/Media/iTunes. The additional /Music folder will be implied by a preference file before Music attempts to locate the artist and then the album folder in which to find the track it is looking for.


Once you have the library in a working state it would be possible to use steps from Make a split library portable to convert it into a portable form, after which you could then rename the drive again. The typical layout for a Music library is a Music folder that contains the Music Library.musiclibrary database and a Media folder, which has a Music subfolder, that in turn contains the artist folders.


tt2

Oct 26, 2021 1:59 PM in response to tonoluv33

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



PS a brief review of your details suggest the easiest repair might be to rename your external drive from Eleven to MEDIA and then move the folder iTunes from /MEDIA/Media into /MEDIA.

Oct 27, 2021 5:00 PM in response to turingtest2

Thank you for your response! The dislocation happened a while ago and I haven't had the time to address it properly until now, so I'm afraid I don't recall what I might have done to instigate it. I would really prefer not to rename the external drive. I have, of course, long since tried all of the suggestions in Change Files preferences in Music on Mac, as well as repeatedly trying the "Find Files" prompt offered when I locate one file, all to no avail. In fact, for a while there, Music would crash every time I tried to "Find Files".


Here are the details you requested. The missing files are indeed located where specified in item #1.


  1. /Eleven/Media/iTunes/Music
  2. file:///Volumes/MEDIA/iTunes/Music/Jeff Buckley/Live At Sin-é [Disc 1]/1-01 Be Your Husband (Live).m4a
  3. /Volumes/Eleven/Media/iTunes/Music/Jeff Buckley/Live At Sin-é [Disc 1]/1-01 Be Your Husband (Live).m4a


Does this seem like a problem that FixLinks could address? I've never used AppleScript before and am a bit leery, but I'm game to try.


Thank you for your kind attention!

Oct 26, 2021 1:22 PM in response to tonoluv33

Thanks for posting in the Apple Support Communities tonoluv33,


We understand you're having issues with songs in the Music app not being found, or pointing to the wrong location.


The following page offers guidance you can use to update the location of your Music Library, to reflect where music is actually being stored, as well as related settings that keep your music library organized as you add new music: Change Files preferences in Music on Mac


We hope this helps!

Oct 28, 2021 4:33 PM in response to turingtest2

Thank you so much! Just changing the Music Media folder location to the /iTunes folder that contains the /Music folder did the trick. Who would have guessed that the folder Apple Music was looking to contain Music Media would not be the folder that contains the music media, but the folder that contains the folder that contains the music media?

Apple Music won't find "missing" files

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