MAC Generating Multiple music Libraries in Multiple Subfolders - Help!

I have totally confused what my Mac is doing with my music files. This has been going on for a LONG time first on my old iMAC and now on my new Mac mini. I don't understand why the system keeps creating new libraries and setting up new subfolders. Here are the steps I take to view my music libraries:


  1. Hold option key while opening Music.
  2. Click Choose Library.
  3. I am shown four folders: Audio Music Apps (4 items), Garage Band (No Items), Media (1 Item), Music (4 items).
  4. I click on Music and am shown two folders and two files: Media (2 Items), Previous Libraries (7 Items), Music Library, Old Music Library
  5. I click on Previous Libraries and I am shown 3 Music Libraries, 2 Old Music Libraries, Previous Libraries Folder and Media Folder.
  6. I click on Previous Libraries and I am shown 2 Music Libraries, 1 Old Music Libraries, Another Media Folder and another Previous Libraries Folder.
  7. This continues for 3 more subfolders.


What is going on? I have never to my knowledge created a new music library other than the original one years ago. I have added music periodically over time but it seems when I do the system generates a new library. It also appears when I make a new playlist it somehow becomes a new library. Many of the files in the Previous Libraries seem to be identical or with a slightly different list of music.


Any assistance anyone can provide would be appreciated. I would like to get all this merged so that I have one music library and multiple playlists of certain types of music. Thank you.

Mac mini, macOS 13.4

Posted on Nov 27, 2023 5:23 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 28, 2023 3:58 AM

See Managing your Mac media libraries - Apple Community. Your active .musiclibrary database should be the one that was most recently modified. The standard location for this is ~/Music/Music/Music Library.musiclibrary where ~ is your user's home folder. Typically updates to the Music app that change the internal structure of the database cause the library to be archived to the Previous Libraries folder. If for any reason you choose one of these libraries to see what is inside it, that may cause that library to be updated again, and another nested Previous Libraries folder to be created.


Once you have selected your preferred library you may want to remove all of the others to avoid confusion.


See also Repair security permissions for iTunes/Music for Mac - Apple Community. When Music cannot write to the intended folder it may save the library in a parent folder, or sometimes even put it on the desktop.


It may also help to hold down option+cmd when starting Music to open it in its safe mode. This can sometimes fix odd inconsistencies in the database.


tt2

Similar questions

5 replies
Question marked as Top-ranking reply

Nov 28, 2023 3:58 AM in response to bkerea66

See Managing your Mac media libraries - Apple Community. Your active .musiclibrary database should be the one that was most recently modified. The standard location for this is ~/Music/Music/Music Library.musiclibrary where ~ is your user's home folder. Typically updates to the Music app that change the internal structure of the database cause the library to be archived to the Previous Libraries folder. If for any reason you choose one of these libraries to see what is inside it, that may cause that library to be updated again, and another nested Previous Libraries folder to be created.


Once you have selected your preferred library you may want to remove all of the others to avoid confusion.


See also Repair security permissions for iTunes/Music for Mac - Apple Community. When Music cannot write to the intended folder it may save the library in a parent folder, or sometimes even put it on the desktop.


It may also help to hold down option+cmd when starting Music to open it in its safe mode. This can sometimes fix odd inconsistencies in the database.


tt2

Dec 23, 2023 11:10 AM in response to 77imain15

The dated library files in the Previous Libraries folder are expected when the Music app gets an update that makes a change to the .musiclibrary format. Typically that might happen once or twice a year, not 273 times. I suspect something has happened that prevented the upgrade of the library from completing successfully such that each launch of Music created a new backup of the library.


2a? No idea. Perhaps some of these files are not unique but aliases, a bit like how Time Machine works with many pointers to the same file.


2b? Copy the active Music Library.musiclibrary to another location as a backup. Delete the Previous Libraries folder. Empty the Trash. Launch Music. See if the Previous Libraries folder is recreated. If it is it may help to close Music, then press and hold down option+cmd when you launch it again to open Music in its safe mode. This can repair certain inconsistencies in the library and may possibly help. Are new files still being created?


tt2

Dec 23, 2023 10:46 AM in response to turingtest2

Understanding music libraries on my Mac Music app


1. Here are the facts: In the ~Music/Music folder, there is:

a. one standalone file, “Music Library.musiclibrary” with Get Info size of 3.1 Gb

and 

b. one folder, “Previous Libraries” with Get Info size of 750.54 Gb

1) this folder has 273 files

2) each file is labeled, “Music Library[YYYY-MO-DD xxxxx].music library

a) each file is approx 3 Gb

b) the xxxxxx in each file name is a set of numbers


2. Here are the questions:

a. If my SSD is 245 Gb, how is it possible to have a folder with 750 Gb in it?

b. Why do I have 273 files named xxx.musiclibrary? Are they just the history of the music library as it has evolved? Can I just delete them without affecting the Music app? 

Dec 23, 2023 2:28 PM in response to turingtest2

Followed your instructions from 2b above with following results:

Moved the active library to a different location.

Moved Previous Libraries folder to Trash, then deleted it from trash.

Launched Music app: No Previous Libraries folder created; new Music Library.musiclibrary created, but with size of only 1.5 Gb ILO the previous 3.1 Gb.

Launched Music app in Safe Mode: Still no Previous Libraries folder, nor any new files.

Music app contents (albums, Songs, etc) looks the same and random selection of songs play as supposed to.


For 2a above, checked SSD storage after deleting Previous Libraries, and it remains unchanged for the Gb available. Again, each of the 273 previous libraries were dated. Weird.


Thanx for your help.

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.

MAC Generating Multiple music Libraries in Multiple Subfolders - Help!

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