Music app on my Mac can no longer find my music files

Music app can't find my music files on my external hard disk drive. This came about al of a sudden. I've not made any changes in my Music preferences. Everything is where it's been for a long while. Yesterday after restarting the mac (Catalina), fired up Music to play from playlist. It played the first song, then nothing. all the songs in that playlist displayed the "missing file" icons with exclamation marks.


  1. Location of the media folder - /OWC Part 2/cd music etc/iTunes/iTunes Media/Music
  2. Location of a sample missing track under song info - file:///Volumes/OWC Part 2/cd music etc/iTunes/iTunes Media/Music/Brewer & Shipley/Weeds _ Tarkio Road/02 Rise Up (Easy Rider).aif
  3. True path to the file - /OWC Part 2/cd music etc/iTunes/iTunes Media/Music/Brewer & Shipley/Weeds _ Tarkio Road/02 Rise Up (Easy Rider).aif


All this after having made no changes. Been reading the post from Jan 16 2023, but the solution wasn't posted. Hopefully a simple fix.

iMac 21.5″, macOS 10.15

Posted on Jan 8, 2024 10:18 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 12, 2024 5:07 AM

The .Trashes part of that path doesn't look encouraging. That suggests the content was deleted at some point in the past with the library remaining connected to it, and is now no longer in the trash if it won't play.




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, (see the iTunes Media Organization section of Managing your Mac media libraries - Apple Community for details) 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

21 replies
Question marked as Top-ranking reply

Jan 12, 2024 5:07 AM in response to amdun

The .Trashes part of that path doesn't look encouraging. That suggests the content was deleted at some point in the past with the library remaining connected to it, and is now no longer in the trash if it won't play.




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, (see the iTunes Media Organization section of Managing your Mac media libraries - Apple Community for details) 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

Jan 12, 2024 3:27 PM in response to amdun

A script is a program written in plain text that you can potentially read and modify rather than a pre-compiled application. The script checks each track that was selected when you started running the script and tests to see if Music knows where that track is located, if Music says no the script works through a pattern of potential locations and if found updates the location property in the library. No playlists or other metadata are modified. The user tip gives instructions on how to copy and paste the program into the Script Editor, or a link to a file you can download. The script itself will guide you through its operation.


tt2

Jan 12, 2024 9:47 AM in response to amdun

Hi,


As above, if you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under Music > Settings > Files. - At at guess it should be OWC Part 2/cd music etc/iTunes/iTunes Media, but you might have selected something else.
  2. The location of a sample missing track shown under Song Info > File > Location that begins file:// - I've got file:///Volumes/OWC Part 2/.Trashes/501/02 Rise Up (Easy Rider) 1.aif from above, but I'd normally expect to see artist and album folders in that path somewhere. Music probably cannot make the repairs itself if you locate one broken track and ask it to fix others when prompted.
  3. The true path to the file whose details you gave in 2 - I can read that from the screenshots. It looks like the file is in the standard layout, which increases the chance that my FixLinks script can fix things for you.


tt2

Jan 13, 2024 4:28 PM in response to amdun

You don't need to edit the downloaded version. You can open the script from the current location and press the run button in the script editor to run it. If you want to access the script from Music's menu bar then you would use Finder to move/copy the script ~/Library/Music/Scripts. ~ is your user's home folder, Library is a hidden folder that can be revealed with Shift+Cmd+. and you have to manually create the Music and Scripts folders if they don't already exist.


tt2

Jan 12, 2024 8:47 AM in response to turingtest2

Hi, thx for responding... I'll try to provide a bit more info.


I went to where the file resides & the files appear to be in place...


... what's more, the file plays on QuickTime player...


Just not sure how to get Music to locate. I've checked the security permissions... seem to be ok. This all begs for some simple fix... something I overlooked (?).


Right now, it's beyond me.




Jan 18, 2024 12:49 PM in response to turingtest2

From a random sampling of various files, script seemed to work... the missing files show up upon viewing the tracks in Music list... actually looks like affected tracks are things i've messed with in some fashion, so easy enough to track down... my thanks to you, tt2 for having a fix at the ready & for my learning experience in this endeavor... will upvote you for good info & patience.

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.

Music app on my Mac can no longer find my music files

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