Apple Music playlist loses links to songs

I have a 2018 Intel i5 mac mini, with an external (HD - USB 3.x) drive. Ventura. My iTunes library is stored on it, and the iTunes path goes to /My Passport for Mac/iTunes/iTunes Music. My songs are on the drive, all in the iTunes Music folder, within iTunes, and the playlist is correct, but it refuses to "find" and play the songs. iTunes will prompt to "The song “Come Inside” could not be used because the original file could not be found. Would you like to locate it?" and, when I manually locate files, iTunes will then prompt something to the affect of "would you like to use this to find the rest of your 6,0xx songs?". and it says it can't find them. I have tried option click to both make a new library and use the present one, but nothing seems to fix the problem. Then, when I quit and re- open Music, it loses some links and fixes others. How do I fix this? Thanks.

Mac mini, macOS 13.2

Posted on Mar 22, 2023 9:23 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 22, 2023 12:50 PM

The default location for a Music library in Catalina and later is ~/Music/Music with the media files consolidated into ~/Music/Music/Media. After importing your iTunes library you may want to copy your active Music Library.musiclibrary file into ~/Music/Music replacing any older copy there, then use Music > Preferences > Files to reset the media folder path, and File > Library > Organize Library > Consolidate Files to bring all the music into media folder. You can then remove the originals from the old iTunes Media folder.


Follow the guidance in these articles:

Managing your Mac media libraries - Apple Community

Use the Finder to sync your iPhone, iPad, or iPod with your computer - Apple Support

Move your iTunes library to a new computer - Apple Community


Similar questions

16 replies
Question marked as Top-ranking reply

Mar 22, 2023 12:50 PM in response to rickfromrural hall

The default location for a Music library in Catalina and later is ~/Music/Music with the media files consolidated into ~/Music/Music/Media. After importing your iTunes library you may want to copy your active Music Library.musiclibrary file into ~/Music/Music replacing any older copy there, then use Music > Preferences > Files to reset the media folder path, and File > Library > Organize Library > Consolidate Files to bring all the music into media folder. You can then remove the originals from the old iTunes Media folder.


Follow the guidance in these articles:

Managing your Mac media libraries - Apple Community

Use the Finder to sync your iPhone, iPad, or iPod with your computer - Apple Support

Move your iTunes library to a new computer - Apple Community


Mar 24, 2023 12:05 PM in response to rickfromrural hall

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.



See also Managing your Mac media libraries - Apple Community. iTunes Music is the old name for what become the iTunes Media folder, which in turn would normally be called Media in Catalina or later. It may help to bring your media folder structure up to date.



tt2

Mar 24, 2023 3:20 PM in response to rickfromrural hall

So in this example Music was looking for the file at:


My Passport for Mac/iTunes/iTunes Music/Joe Pass/The Best Of Joe Pass/Aaron's Song.mp3


(I'm assuming /iTunes Music/iTunes Music/ was a typo) when the true path is:


My Passport for Mac/iTunes/iTunes Music/Music/Joe Pass/The Best Of Joe Pass/Aaron's Song.mp3


where the difference is an extra /Music folder in one of the paths.


See Managing your Mac media libraries - Apple Community and the section on iTunes Media Organization for background info. It seems you may have a mixed layout with some files in the new layout and some in the old, but the database looking for everything in the old layout. Changing the layout flag from 0 to 1 may repair the links to tracks that are currently broken and fall into the same general pattern, hopefully without breaking anything else. The alternative approach is to move the files from the current location to the expected path, but you need to be careful not to overwrite any folders taking this approach (i.e. moving an artist folder from iTunes Music/Music to iTunes Music) as Mac doesn't merge folders and this could lead to data loss.


tt2

Mar 27, 2023 4:57 PM in response to rickfromrural hall

For the avoidance of doubt this is a user to user support forum. I don't work for Apple Support. I do have have a reasonably deep understanding of the way Music and iTunes handle files. The fact that you're repeatedly relinking files by hand suggests the work you're doing isn't being saved, which is a worry. Do you have any third party security software? If you locate the Music Library.musiclibrary package you can right-click on it and click Show Package Contents, do you see any hidden .tmp files inside? These would indicate interference with the way that Music updates the library.


tt2

Mar 24, 2023 2:13 PM in response to rickfromrural hall

Given that you are running macOS 13.2 Ventura you should be using the Music app, not iTunes, and you should be opening a Music Library.musiclibrary database. While Music can open .itl files and convert them to the .musiclibrary format, and changes are made to the .musiclibrary file, not the .itl.


From your example entry file:///Volumes/Main File Drive/Users/rldbtr/Music/iTunes/iTunes Music/Ademilde Fonseca _ Galo Garnizé/Cafe Brasil/Ademilde Fonseca _ Galo Garnizé.mp3 what would be useful to know is the true location of the file Ademilde Fonseca _ Galo Garnizé.mp3, assuming it exists somewhere on the My Passport for Mac drive.


As above see Managing your Mac media libraries - Apple Community for some background on how things are ideally organized. The script I mentioned earlier can be used to repair tracks when they are in the standard layout of <Media Folder>/[Music/]/<Album Artist>/<Album>/[D-]## <Name>.<Ext>. From the look of your example the files may not be in this layout. If the path can be reliably predicted from the file properties the script could be tweaked appropriately.


tt2

Mar 24, 2023 1:09 PM in response to turingtest2

The Music Media Folder location is

/My Passport for Mac/iTunes/iTunes Music


When I go to the unfound song info, the file path for one particular song is


file:///Volumes/Main File Drive/Users/rldbtr/Music/iTunes/iTunes Music/Ademilde Fonseca _ Galo Garnizé/Cafe Brasil/Ademilde Fonseca _ Galo Garnizé.mp3


Other playable songs' paths are all over the place-- iCloud , /My Passport for Mac/iTunes/iTunes Music/Music/Art Blakey/Unknown Album/Art Blakey.mp3, even songs from duplicated song folders in the trash.


So iTunes is no automatically locating the song files and folders


If I option / restart, iTunes "Choose library" points to my internal SSD drive, where there is no iTunes Files folder. BUT when I redirect it to match the iTunes path (Choose Library) My Passport> iTunes> and choose the itl, it is one that is a few days old and not the most recent one.


All songs are in the same folder as the iTunes path - -I called Apple and your tech helped me make sure that all songs were in a single folder, no dupes in other folders to confuse iTunes and we set that pathway.


If I try "create Library" it points to the internal drive.. But here I am confused - should a newly created itl be inside the music folder or inside the iTunes music folder? And I really must preserve my playlists..


Mar 24, 2023 2:42 PM in response to turingtest2

I was using the terms interchangeably. Of course iTunes does not come in Ventura. I found a .Musiclibrary file with the correct date, and told Music to open with it, but it still will not locate the songs. For another example after the option restart, Aaron's song will not play and get info shows:


file:///Volumes/My Passport for Mac/iTunes/iTunes Music/iTunes Music/Joe Pass/The Best Of Joe Pass/Aaron's Song.mp3


The Path for the Musiclibrary file is My Passport>iTunes>Music>Musiclibrary.


So Music is not trying to find the songs that are in My Passport>iTunes>iTunes Music


Mar 24, 2023 2:57 PM in response to rickfromrural hall

PS - so using Joe Pass's "Best of Joe Pass" as an example - it will not open Aaron's song, as I said. So I direct Music to "Best of--" then select "Aaron's song" then it plays. then it asks The song “Django” could not be used because the original file could not be found. Would you like to locate it? then it says "Music was not able to locate any of 6,429 missing files. so I clock on that, thinking that, for sure since i directed Music to the right file folder, it would find the rest of the song in "Best of--" and play them.. Nope..

Mar 24, 2023 3:13 PM in response to rickfromrural hall

I found a folder in Music that I thought I copied over when i as consolidating my music files. Checking both folders, the contents are identical. So Music is not finding the other files in either folder, even though they are dupes. I need to figure out how to direct Music to really truly look in my music folder - the pathway in Music, to find the songs. It seems to be ignoring the pathway I set for it in Music Media folders location

Mar 24, 2023 3:57 PM in response to turingtest2


Moving is what I did with your phone rep's help, and that didn't fix it. We spent a bunch of time tracking down song files and making sure everything was in the music folder, and properly transferred. But music still would not find the songs.


That was the tedious part - checking folder contents, even though I was using "merge" and checking that, too. I'll try changing the flag.. I assume that will force Music to re- connect the play lists with the songs in the unified folder. I am guessing that Music's find songs command is broken..


Yeah, but the song is in two locations, but Music did not find either one. Not the path described in song> get info> Files> path, nor in the Music settings path.

Mar 27, 2023 11:51 AM in response to rickfromrural hall

So I sat up last night, AGAIN, linking the songs to the palylist by hand and making sure the songs were all in the right folder. I found out that, if I used the Music "search" it would not show the song when I found it. But if I used the system spotlight, it would. And when I manually looked in the folder, sometimes the song name would not show up, but would, in spotlight. Fun. So I get up this morning and Music has once again, lost track of the same tunes I so carefully linked last night. And it's doing the same thing of not showing all the names of songs that came from a CD. Like a few. But if I use spotlight again, it does show the names in the same folder.

Further, Music also lost some of the playlists this morning. the same ones that were imported during the migration. Since this is client work, I have to have those playlists. I can't blame it on the ext drive, because other apps, like my Music production app and my graphics /photo editing app, don't any any problems at all.. How about somebody email me and fix this mess called "Music".

Mar 28, 2023 7:35 AM in response to turingtest2



I agree - this is weird.I was ready to blame it on using an ext. HD, not an ect SSD. But I also use the HD too record and play music, and it is a USB3.xx drive. This is a screen shot of package contents


And Music lost track again this morning - same cycle - can't find, locate. play, "can't find". Same songs I re - re located the past two days. I notice that when I do the search, it takes a few seconds for the itunes music folder to open. I would assume that the Msic file path would also be the save path, but apparently, this isn't so.

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.

Apple Music playlist loses links to songs

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