Skip to main content
Contributor I
May 16, 2024

How to solve the Error 913 (Music Library) on a Mac

  • May 16, 2024
  • 251 replies
  • 34535 views

There is a reported bug fix coming mid-June 2024. If you can’t wait until then…

(I did this running Sonoma 14.4.1) And thanks to folks in a separate thread on the details - just tried to put them all in one place.

I made a video of the process if you prefer that way: https://youtu.be/kjhKhDuvgDY


Part 1 - Set up the share (System Settings/Preferences)

  1. Open System Settings (in earlier MacOS it’s called System Preferences).
    • Click on the apple in top left of your screen to find that option.
  2. Choose General
  3. Select **Sharing**.
  4. Enable **File Sharing**
  5. Click the "i" symbol
  6. Click the "+" symbol.
  7. Add a shared folder by choosing the folder where your music is stored and selecting Open
    • The name of the folder here will be the ShareName that you’ll use in Part 3.
  8. Under ‘users’, confirm that the list includes an ‘everyone’ option, and that you set ‘everyone’ to *Read Only* at a minimum (or “Read & Write”)
  9. Ensure the customer's account is set to **Read & Write**
    • I’m not 100% sure ‘customer’s account’, but I took it to mean the account I login with on the computer.
  10. Click the Options button
  11. Ensure that both SMB and the customer's account below are checked and choose Done. 

Part 2 - Find your computer’s name

  1. At the bottom (or sometimes top in earlier versions of macOS) of the Sharing page, you’ll see Local hostname. Everything before the .local is the hostname. Copy that down - that will be your MacName that you’ll need in Part 3.

 

Part 3 - Add the share to Sonos

  1. Open the Sonos app on your mac.
  2. Choose Manage > Music Library Settings
  3. Choose the + for your music folders.
  4. Instead of ‘another folder or drive’, choose Networked Device
  5. Type the network path name when prompted, and press Next. The format will be \\MacName\ShareName
    • Remember the ShareName and MacName you captured earlier? This is where you’ll use them. Make sure the \ are the right ones (not /, but \).
  6. Enter the Mac username and password. The password is the same as when you login opening your laptop.
    • If you’re not sure about the username, you can find it this way:
      • Open an app called ‘Terminal’ on your macbook. (Go into Launchpad and type ‘term’ and it’ll show up)
      • Type whoami and press enter. 
      • The result that shows is your username. (e.g. Perhaps my computer shows my login name as Salami Slices but my username technically is different (salamislices)). Copy and paste that into the username that Sonos is asking for.
  1. If that doesn’t work, someone had mentioned trying the following:
    • From System Settings, on left side, choose ‘users and groups’
    • Click on the ‘i’ next to Guest User
    • Enable “Allow guest users to connect to shared folders” and choose OK.
    • Now, from Sonos app, when get prompted for username and password, leave them blank and just choose enter.
      • The idea is it would treat it as a guest and since gave access to guests, will work.

 

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

251 replies

Trending Lyricist II
June 13, 2024

Many thanks Salami Slices...

I too have now had success adding my music library, plus two additional music collections to “The New and Improved” Sonos App. That is, with the exception of no Playlists, except for one that I have no idea where it has come from.

A tip for anyone who is about to run through this solution – make sure to carefully read all the way through the instructions twice, and watch the video, before starting. 

 

I got this from Reddit:

So I've had luck with the following.

  1. Open ITunes (Music), click on Home in the upper left, then go to File -> Library -> Eport Library

  2. This will create a "Library.xml" file. Save it to your Desktop

  3. Make a Folder and name it "iTunes" on your Desktop

  4. Rename the "Library.xml" file to "ITunes Music Library.xml" and put it in the folder you just created.

  5. Move this Folder to where your music is. And I mean that literally. Like where you have all the artists listed in your iTunes Musics files.. Put it there.

  6. Remove and Re-import via Sonos and you "should' be all set. You should be able to just "Update Music Library" instead of removing/re-adding, but I'm not 100% sure.

Note - Update Music Library worked for me. I did not have to remove and re-import. The above steps need to be repeated whenever a playlist has changed. And I was able to just put the XML file in the Media folder - a separate iTunes folder was not needed.

Good luck!

Apple Music Library user
Trending Lyricist I
June 14, 2024

This

solution works… And this brings up an interesting question: WHY? 

Let me explain what I mean: The solution puts the local music files in a network share, after which in principle I would not need the SONOS mac app to be running to get such files. And indeed this seems to be the case, you can actually quit the app and access to the files remains.

This is great, actually. I presume that if new files are added to the share a new scan will be required.

But the point I am getting at is it seems the scan is uploading the locations and metadata of the files in the share to the SONOS system, after which the SONOS system reaches out for the files itself rather than via the mac app.

Am I understanding this correctly?

Lyricist II
June 14, 2024

Thanks for sharing.

I’m just trying to use your suggestion, but I’m getting message “We’re sorry. We can’t open the document Library.xml because we found a problem with its contents.” No error details available. Location: Line 2, Column: 9

My music in on my old iMac HD running macOS Catalina 10.15.7 (Late 2012)

Thanks for any help.

Peter

Avid Contributor III
June 15, 2024

Finally, after multiple attempts since last month I got my library to appear in the Mac desktop app. But the folder is empty. Nothing showing up under Music Library.

Any further fix suggestions?

Lyricist III
June 16, 2024

Yes, I get the below as well.  No more access to any playlists!  Which is annoying.  When is Sonos going to fix this??

-----------------------------

Thanks for sharing.

I’m just trying to use your suggestion, but I’m getting message “We’re sorry. We can’t open the document Library.xml because we found a problem with its contents.” No error details available. Location: Line 2, Column: 9

My music in on my old iMac HD running macOS Catalina 10.15.7 (Late 2012)

Thanks for any help.

Peter

Lyricist I
June 16, 2024

Can’t thank you enough for posting your video...after several tries and iterations, I was able to restore my library.   Couple interesting points:  I use a desktop MAC to house my library and I had to turn off both screensaver and sleep mode or else the synch with SONOS timed-out (note that my music library is huge as I have a ton of live Grateful Dead stuff on there….) - when I did that, it all seemed to ultimately be available within the MAC interface, with the exception of the playlists (anyone figure out how to get those back?);   also, within the crappy iphone app, which is unquestionably garbage in its current form, I have noted that some of my more extensive artist catalogs are abridged….for instance, certain later years of concerts are not accessible after many shows from earlier years….and, of course, no way to search for those.   Lastly, noticing A LOT OF PROBLEMS with tracks skipping across the system since I’ve resumed playing the library.  Welcome any tips there, but to the gentleman who posted the video, you are, in fact, our hero.   Thank you!

Contributor I
June 16, 2024

Updated the Mac OS controller to the latest June Release on Catalina today and am still unable to mount a local music library on the same Mac. Very disappointed. I have to replicate my library to a second Mac with the current Mac OS and mount it from there as a NAS drive. Ridiculous. 

Lyricist III
June 17, 2024

Thank you, Salami Slices, for the considerable time and effort on your part to correct Sonos incompetence. 

However, this is a Sonos error and I refuse to waste my time on something that should have been tested before the new software was released. Sonos made the error and it is up to them to fix this. If they don’t, then my 4 Ports will be retired and I couldn't care less. I have current alternatives (old Logtitech Squeezeboxes) and a new suggestion from RichardBZ of a Bluesound Node DAC/Streamer if needed.

(iMac Ventura 13.6.7, iPhone, multiple iPads)

 

 

 

Trending Lyricist I
June 18, 2024

There is a reported bug fix coming mid-June 2024. If you can’t wait until then…

(I did this running Sonoma 14.4.1) And thanks to folks in a separate thread on the details - just tried to put them all in one place.

I made a video of the process if you prefer that way: https://youtu.be/kjhKhDuvgDY


Part 1 - Set up the share (System Settings/Preferences)

  1. Open System Settings (in earlier MacOS it’s called System Preferences).
    • Click on the apple in top left of your screen to find that option.
  2. Choose General
  3. Select **Sharing**.
  4. Enable **File Sharing**
  5. Click the "i" symbol
  6. Click the "+" symbol.
  7. Add a shared folder by choosing the folder where your music is stored and selecting Open
    • The name of the folder here will be the ShareName that you’ll use in Part 3.
  8. Under ‘users’, confirm that the list includes an ‘everyone’ option, and that you set ‘everyone’ to *Read Only* at a minimum (or “Read & Write”)
  9. Ensure the customer's account is set to **Read & Write**
    • I’m not 100% sure ‘customer’s account’, but I took it to mean the account I login with on the computer.
  10. Click the Options button
  11. Ensure that both SMB and the customer's account below are checked and choose Done. 

Part 2 - Find your computer’s name

  1. At the bottom (or sometimes top in earlier versions of macOS) of the Sharing page, you’ll see Local hostname. Everything before the .local is the hostname. Copy that down - that will be your MacName that you’ll need in Part 3.

 

Part 3 - Add the share to Sonos

  1. Open the Sonos app on your mac.
  2. Choose Manage > Music Library Settings
  3. Choose the + for your music folders.
  4. Instead of ‘another folder or drive’, choose Networked Device
  5. Type the network path name when prompted, and press Next. The format will be \\MacName\ShareName
    • Remember the ShareName and MacName you captured earlier? This is where you’ll use them. Make sure the \ are the right ones (not /, but \).
  6. Enter the Mac username and password. The password is the same as when you login opening your laptop.
    • If you’re not sure about the username, you can find it this way:
      • Open an app called ‘Terminal’ on your macbook. (Go into Launchpad and type ‘term’ and it’ll show up)
      • Type whoami and press enter. 
      • The result that shows is your username. (e.g. Perhaps my computer shows my login name as Salami Slices but my username technically is different (salamislices)). Copy and paste that into the username that Sonos is asking for.
  1. If that doesn’t work, someone had mentioned trying the following:
    • From System Settings, on left side, choose ‘users and groups’
    • Click on the ‘i’ next to Guest User
    • Enable “Allow guest users to connect to shared folders” and choose OK.
    • Now, from Sonos app, when get prompted for username and password, leave them blank and just choose enter.
      • The idea is it would treat it as a guest and since gave access to guests, will work.

 

Dear Salami Slices;

Thank You, Thank You, Thank You.

Having become fed up over the last 5/6 weeks waiting for Mr Spence to put things right and with having to play Sonos Music (and to a certain extent Spotify) as the only music sources I could get through the system after losing everything with the App Update, I followed your (very clear) instructions to the letter and “hey presto* my music library, (on my Mac Mini}, is back and functioning. Unfortunately my playlists seem to have disappeared into the ether but “hey ho” small pickings are rich pickings. I did all this running Ventura 13.6.7.

I had to do the last step (7) to get it to work which worries me a bit - giving SONOS “Guest User” access - if they can screw up their own systems what might they do to mine!!!!

Let’s hope SONOS don’t screw everything up again with their “fix” whenever it appears.

Once again thanks - you’re a saviour.

 

 

Contributor I
June 18, 2024

Sonos- Catalina and USB Drives - Spent hours with Sonos Tech support. They tried lots to get a Catalina music directory to mount to Sonos, all failed with “unable to login with account and password”. We were able to “prove” the failure appears related to external USB drives (which work BTW with Sonoma). If the music library is on the internal Mac drive, it mounts and indexes as expected. Of course, you have to have enough internal storage for your music library.