Music Library stuck, probably permissions related

Hello community (and, hopefully, turingtest2),


Moving my music library back from my Synology NAS to my Mac mini's internal drive because reasons. The problem I'm encountering is that I cannot move my Media to my local volume. First, I tried File > Library > Organize Library, but I encountered the dreaded -54 error, which seems to me a permissions problem. No amount of Get Info > Read/Write > Apply To Enclosed Items fixes it. So rather than using the Music app to pull in the NAS media files properly, I simply drag-copied the Media folder from the NAS to the directory [me]/Music/Music, and then use the Music app's Settings > Files to point the app to the local Media folder. Things seem to happen, but "Show In Finder" on every song stubbornly still shows the instance on my NAS, even when I unmount the NAS, and when I try to play it it tries to remount the NAS. Nothing I do can get my media back home where I want it. I suppose I could create a new library and import my songs somehow, but then I'd lose play counts, ratings, and maybe even my carefully curated song/album metadata. This feels very buggy. Hoping someone can help iron this out. Thanks.

Mac mini (2018)

Posted on Mar 9, 2024 6:31 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 10, 2024 11:20 AM

Hi,


Changing the media folder in preferences doesn't tell Music where to find existing content that has been moved manually. Consolidating the library only works when the files are where Music thinks they should be.


In some cases Music might be able to fix broken links if you attempt to play or use Song Info on a track that has been moved, and then locate the file when prompted. Here is my boilerplate on this topic:



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

1 reply
Question marked as Top-ranking reply

Mar 10, 2024 11:20 AM in response to Kabeyun

Hi,


Changing the media folder in preferences doesn't tell Music where to find existing content that has been moved manually. Consolidating the library only works when the files are where Music thinks they should be.


In some cases Music might be able to fix broken links if you attempt to play or use Song Info on a track that has been moved, and then locate the file when prompted. Here is my boilerplate on this topic:



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

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 Library stuck, probably permissions related

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