Skip to main content
Trending Lyricist I
September 8, 2022
Answered

Problems with Sonos Connecting to iTunes via Synology NAS

  • September 8, 2022
  • 20 replies
  • 760 views

I’m dredging up what seems like an older topic, but one with conflicting answers out there--connecting Sonos to an iTunes database on a Sinology NAS.

A few months ago, my Sonos system stopped connecting to my iTunes database, hosted on a Synology NAS with their latest DSM software. I'm not sure if the problem started with an update to the Synology’s DSM, or something else. I deleted and re-added the library, but to no avail. It’s odd, the library indexes, but whenever I try to play a song it says that the file cannot be found. 

I did some initial online research, and saw that there--at least previously--had been issues because Sonos would only work with SMB1. But then I saw other posts that suggested the problem had been solved.

Fast forward a few months, and I finally had the time today to call Synology support. After two calls, nothing solved, second tech said they’d call me back in five minutes but never did.

First tech had me change settings to permit SMB1 communications, despite dire warnings from my NAS saying that it was not secure. The tech said that it was necessary. Ended call when my library was indexing after being re-added.

But the problem didn’t resolve--same error.

Called again. Second tech took my information, looked up case, gave me same advice. When I said I had done all of that, the tech said they’d call me back because they were having technical difficulties, but then never did. Both techs were kind and helpful, but nothing solved.

So I’m here. Any advice on the current state of things? Should things work with SMB2/3? Do I have to go back to SMB1 and take some additional steps? But, if that’s the case, is it safe to run with SMB1? 

Right now, I’ve reverted to my older settings (SMB2/3)  because the protocol changes the techs suggested messed up my Time Machine backups to the NAS.

Thanks in advance--hopefully I can get this solved. I have an extensive lossless iTunes library; streaming doesn't cut it for me. If I have to revert to SMB1, that’s also noxious--in addition to potentially being insecure, it looks like I’d have to choose between streaming my music or doing time machine backups to my NAS.

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.
Best answer by Subarctic Crawdaddy

One more update...I took a close look at the “Music” folder on my NAS (where iTunes lived, and realized it has an odd structure. Beneath the “Music” folder lives “iTunes.” Within “iTunes” there, is an iTunes Library file and a number of subfolders--including a “Music” subfolder where most of my music lives.

But, on this same level, there’s also folders titled “iTunes Music” (which contains nothing) and “iTunes Media” (which has further suborders, including another “Music” folder with a handful of albums in it. I’m not really sure how or why iTunes (uh….I’m sorry, Apple Music now) created a folder structure like this, but it seems a mess.

Previously, I was pointing Sonos to the “iTunes” folder right beneath the top level “Music.” Except for the weird speed-bump yesterday (really not sure what was going on there...), this is where I was getting the library indexing buy the “not found” errors when trying to play the playlists.

So, just to mess around, I pointed Sonos to the “Music” sub folder folder right beneath the “iTunes” folder, which is where most of my music seems to live. That worked, in so much as I can now play all of the albums in that folder (the vast majority of them)--just without the imported iTunes playlists. 

I’ve also double checked, and I was still able to play music on my iMac via iTunes (uh...sorry, Apple Music). I’m assuming I’ll also still, therefore, be able to move music to my iPhone.

Thoughts? Worst case, I can live with this--it will take me a little longer to find what I’m looking for on Sonos, but at least I have access to nearly all of my music. Ideally, I would like my imported playlists back, but I’ll survive without them if this is the best I can do.

20 replies

Airgetlam
September 8, 2022

Which version of the Sonos software are you using? That will determine which versions of SMB you can use.

 

S1 still requires SMB v1 and NTML v1.

 

S2 can accept SMB v2 and SMB V3.

 

There are dozens of threads on this already. Most include potential solutions for S1, outside of Sonos’ software. 

Bruce
Trending Lyricist I
September 8, 2022

I’m using the S2 software--sorry, should have specified.  That’s why I thought I could use SMB2/3.

As you mention, there have been a lot of threads on this, but it was hard for me to identify what the most recent information was. 

But, my initial read after doing my research was that I SHOULD be okay since I was using S2. If that’s correct, is something else causing the error? Any ideas? Here’s a full version of the error message…

9/8/22, 5:45 PM
Unable to play '06 Back In Black.m4a' - the file //ds718/music/Volumes/Music/iTunes/iTunes Media/Music/AC_DC/Back In Black/06 Back In Black.m4a cannot be found.

Airgetlam
September 8, 2022

Thanks, knowing you’re using S2 helps, and yes, you should be fine using SMB 2 or SMB3.

There’s a couple of potential things that I, not an expert, would be looking at. First, I’d make sure that the folder where the data is was set with appropriate permissions. i.e. it’s the speaker that’s trying to access that data, not your computer. It’s entirely possible that an update of some sort changed the permissions on that folder, and the Sonos system is unable to “reach” that location via SMB. Folder permissions can be challenging, especially because many people don’t understand that it’s not the Sonos application on their controller device, but the Sonos software on the speaker that’s reaching out via SMB. And, of course, sometimes background updates can actually change sharing permissions. 

But second, if that doesn’t work, I’d try to play a song to generate that error, then I’d submit a system diagnostic within 10 minutes, and call Sonos Support to discuss it.

There may be information included in the diagnostic that will help Sonos pinpoint the issue and help you find a solution.

When you speak directly to the phone folks, they have tools at their disposal that will allow them to give you advice specific to your Sonos system and network.

Bruce
Trending Lyricist I
September 9, 2022

Thanks again. Freed from the concern about SMB1/2/3, I have started looking at the permissions issues. But I still haven’t been able to solve the problem.

I thought I had all permissions set up correctly -- I have a unique user on my NAS titled “Sonos” that has read only access to the NAS music folder. When I point Sonos to use the folder as its music library, it requires the user and password before indexing (and I know I’m logging in because, once during the troubleshooting process, I typed the password wrong and it was rejected).

But, just to be sure, I’ve taken the following steps. First, I deleted the Sonos user from the NAS and recreated it. Next, I set up the music library from my iPhone instead of my Mac. Finally, I set up the music library by logging in--instead of as Sonos--as my admin login that has full permissions for every folder. 

Sadly, nothing has changed. Same error every time.

Anyone have ideas on what to try next? I'm at a loss. Is this a Sonos problem? A Synology problem? An Apple problem? User error because I messed something up while updating software or changing my iTunes settings?

Two Sonos related thoughts though. First, I’m glad they solved the SMB issues. Reading some of the old posts, I cringed when reading about how long it took for Sonos to move on from SMB1. Second, I did provide Sonos customer support with a system diagnostic--both techs were convinced that I need to revert my system to SMB1. But maybe they didn’t look deep enough...I might try them again next time I have the time at home to give them a call... 

Corry P
Sonos Staff
September 12, 2022

Hi @Subarctic Crawdaddy 

Welcome to the Sonos Community!

Please try adding write access for the Sonos user on your NAS drive to your music folder (and apply to all sub-folders and contained files). Although this shouldn’t be needed, I have seen it help in the past when all else fails. The errors reported in your diagnostics are “Access Denied”, though as indexing works it’s clearly not just the password that’s the issue. Even with write access enabled, Sonos will not alter your files or folders in any way.

I hope this helps.

"Common sense is the collection of prejudices acquired by age eighteen." - Albert Einstein
Trending Lyricist I
September 21, 2022

Corry P - thank your reply. I actually had tried that once before, and I just tried it again. No success. It’s interesting that it’s an “Access Denied” problem. One of the troubleshooting steps I took was to log into the NAS, not as “Sonos” (my custom user), but with my administrator login. Since my administrator login has complete access to all files on the NAS, I’m not sure why it would have been denied access.

I have had a busy week, and haven’t been able to try much else. But my next step is going to be to move my iTunes files off the server to an external hard drive, erase the entire iTunes folder and delete the Sonos login, and then build the folder from scratch and re-create the login. I hope to be able to try this sometime this week.

If there’s a simpler step to try before that, I’m open to suggestions. 

Corry P
Sonos Staff
September 21, 2022

Hi @Subarctic Crawdaddy 

I would recommend instead just copying a single album folder to a new folder on the NAS and pointing Sonos to that new folder - the test would be the same as what you described, but much quicker and simpler to achieve.

Failing that, I recommend you get in touch with our technical support team, who have tools at their disposal that will allow them to perhaps trawl your NAS settings for something none of us have thought of yet.

I hope this helps.

"Common sense is the collection of prejudices acquired by age eighteen." - Albert Einstein
Trending Lyricist I
September 23, 2022

Okay…this just gets weirder and weirder. 

I do plan to try the “single album/single folder” idea--just haven’t had the time. But today, I decided to delete and re-add the library one more time. I didn't do that after adding read/write access, and thought it might make a difference.

This time, when I tried to add the library, I was able to enter my login credentials, and then the library started to index, as it always has. But then I got an error that I have never seen before:

So...this time, I didn’t even get as far as I got before, when the library indexed but then I got error codes while trying to play from it.

I know the library exists and that it’s still in the same place--I can see it on my NAS and it’s still working fine when playing from my iMac (so at least I can still rock out on my iMac’s speakers. Sigh.)

No idea what changed. The only thing I can think of is that I ran a scrub on my NAS for periodic maintenance today and that my computer is currently backing up to my Time Machine on the NAS. But can’t see how either of those could make a difference, given that I can still play the library on the iMac. I also downloaded music today from the library to my iPhone--Sonos is the only point of failure.

I will hopefully have time this weekend to create a new, single album folder and give that a shot.

I have also been in touch with Sonos tech support, after my earlier interaction where I wasn't called back, I received a check-in email. I wrote back, explaining what’s going on, but have not gotten a response yet. 

Airgetlam
September 23, 2022

Check to see if your NAS changed your SMB settings.

Your desktop being able to see the files makes no difference, since the Sonos is reaching out from the speakers, not from your desktop. If you’re running S1 on your Sonos, then your NAS must be running SMB v1 and NTML 1. 

It has been known in the past for firmware updates to the NAS to alter these settings. 

Bruce
Trending Lyricist I
September 23, 2022

I don’t think that they’ve changed...I’m running S2, so SMB1 isn’t required. My max is set at SMB3 and the min is set at SMB2. Nothing else looks different to me. Is there anything else I should check?