Sonos making thousands of SMB3 connections to Synology

  • 27 January 2022
  • 66 replies
  • 2525 views

Userlevel 1
Badge +1

Not sure if anyone else is experiencing issues with Sonos Music Library and the Synology NAS becoming unresponsive or very sluggish, or with random speakers disappearing from the S2 app.

 

I recently enabled the Music Library feature in Sonos (before the 13.4.1 update in Dec 2021 which introduced SMB3 support). At that time, I configured my Synology NAS to use SMB1 to allow the connection to work. I was on DSM Version: 7.0.1-42218 and running S2 13.3.2. Somewhere around 11/25/21, my Synology started going offline and become unresponsive. I was running a DS1517+ with 2GB of RAM and noticed that the SMB process was eating a lot more RAM than usual. Also, started seeing thousands of connections from the Sonos speakers, multiple times for each speaker. My Sonos updated to 13.4, but the issue still remained.

I opened a case with Synology and they determined that the Sonos speakers were opening hundreds of connections per speaker and leaving the connections open. This was slowly draining the memory until the NAS would become unresponsive.

On 12/7/21, S2 updated to 13.4.1 which introduced the SMB3 support. I turned off SMB1 on the Synology NAS and still saw the hundreds and thousands of connections. I would also see the speakers attempt an SMB1 connection still which was denied by the speakers. For testing, we tried leaving SMB1 on, but still saw the large amount of connections from the Sonos speakers.

I ended up switching to a newer DS1621+ with 8GB of RAM and the issue still continued to happen, but took several days instead of just one. At one point, the number of active connections from Sonos was near 4000.

 

After switching to the DS1621+ with more memory, the issues started getting worse on the Sonos side. Several speakers would start to show up as ZP100 (would be various speakers and not always the same ones). This marked these speakers as incompatible with the S2 app and so I couldn’t do anything relating to the music library (like remove it) until the affected speakers were rebooted. If you tried going to http://<ip of speaker>:1400/xml/device_information.xml nothing would show up, or just the XML banner stating “This XML file does not appear to have any style information associated with it. The document tree is shown below.” The speakers were acting similar to the old NAS where they would start to become unresponsive. I can only guess that with the hundreds of open connections to the NAS, the memory utilization would get very high and the speaker would stop responding correctly.

 

After rebooting the speaker that showed up as a ZP100 you could then hit the XML page and the speaker showed up correctly as a Sonos One. I would also get some speakers that would just completely drop from the application, but after a reboot, they’d show up just fine.. In all cases, my wireless controller showed all speakers connected on the network and they all responded to pings. After a reboot of all the speakers, they all showed up correctly in the S2 app and could all play music from the Synology. Also, after a reboot of the speaker, all the connections would slowly drop on the NAS and memory usage would return to normal.
 

The whole system would run fine for a couple of days and then the connections would start appearing on the NAS at various times (not just at the 2am re-indexing time). I also noticed that whenever I had the S2 app up and when I would explore a Sonos playlist that contained music from the NAS, I would get SMB1 failures in the NAS logs for the associated speaker. I believe that the code is still set to use SMB1 for some functions and is getting blocked by the NAS..

 

If I disable the Music Library, all the speakers stay connected to the wifi network and I can stream music with no issues for several days. The memory on the NAS remains at normal levels and doesn’t climb over time. I still see SMB1 connections whenever I pull up the S2 app as long as the Sonos playlists exist that point to music on the NAS, even if the Muisc Library is disabled. I still think the Sonos code is trying to use SMB1 to update something either with album art or the track icons and is having trouble. If I browse to the album directly under Music Library, the album art does show correctly. It just seems to be the track icons in the playlist has trouble populating. These playlists were created by selecting various tracks in the Music Library and adding them to the Sonos playlist.

 

I have tickets open with both Synology and Sonos and currently waiting to hear back from Sonos after giving them countless diagnostics and logs. It seems that the diagnostic logs don’t show the connections to the NAS and so support doesn’t have any visibility into the problem other than looking at the thousands of connections in the Synology logs that I’m providing them.


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.

66 replies

Userlevel 1
Badge +1

Jut received word from support that they believe they have the root cause identified and are working on a fix. I’ll let you know once the fix is out and if it resolves the issue.

Userlevel 1
Badge +1

I had noticed exactly the same thing here:

 

 

 

 

Basically, over time,  the newer firmware leaves orphaned connections to the NAS that are not cleaned up. Eventually you will run out of connections or memory.  Scrolling around and fiddling with the S2 app seems to make the problem worse.

 

I tried to work with support but they were not helpful. I’m pretty amazed that nobody else has complained much about this problem, since it can overwhelm the NAS. I guess maybe people don’t update the firmware that much - I never had the problem until December when I was forced to update due to purchasing an addition. Also its possible that some NAS’s are set up to timeout connections (see below...)

 

What I’ve done to help the problem is to set “deadtime” parameter in the [global] section of the NAS smb.conf to around 3 days. This will time out the orphaned connections -- I run with about 200 connections now since there are always going to be some dead ones  -- there should normally only be 5 or so connections I think.  You could drop deadtime lower but then if you have other devices or windows workstations using the NAS they may have to reopen connections.

 

The other parameter you could set is the max connections setting in the sections for the specific shares. I set mine to 500 which gives me enough room, considering the extent of this bug :-)

 

Some NASs may do this already, and others may have a UI to change these values, but my old NAS doesn’t so I need to edit the smb.conf

 

My main music library is on a single share called Music. If I look at the connections now I have 186 connections!

 

root@ix4-300d:/opt# /usr/local/samba/bin/smbstatus | grep Music | wc -l
186

It would be much higher (until memory ran out) if I didn’t set deadtime.

 

 

You can clearly see I have connections left over from Sunday (which are about to be cleaned up since they are almost 3 days old)

root@ix4-300d:/opt# /usr/local/samba/bin/smbstatus | grep Sun
Music        30681   192.168.1.113 Sun Feb 20 06:26:48 PM 2022 EST  -            -
Music        27294   192.168.1.139 Sun Feb 20 05:42:33 PM 2022 EST  -            -
Music        24291   192.168.1.139 Sun Feb 20 05:10:20 PM 2022 EST  -            -
Music        29298   192.168.1.168 Sun Feb 20 06:10:22 PM 2022 EST  -            -

…. (and many more).

These are all SMB3 connections btw, such as:

1688    nobody       users        192.168.1.139 (ipv4:192.168.1.139:33922)  SMB3_02           -                    -

 

 

Again, I’m not sure how most people cope with this level of connections. Maybe the problem only expresses itself  in certain configurations. Maybe nobody uses the music library anymore…..  I couldn’t convince support to figure it out with me :-)

 

 

 

 

 

Badge +17

Hi @Chewbucka,

 

I ask that you please reach out to our customer care team for some live troubleshooting, as our engineers are looking to investigate any cases where this issue persists after the 14.4 update.

Userlevel 1
Badge +1

Definitely not fixed in 14.2.

Badge +17

Hi folks,

 

I’m happy to say that this issue has been resolved with the latest S2 update (14.4). Sonos players should no longer be sending excessive requests to your NAS drives when using the music library when updated to this version.

Please let our customer care team know if you’re still experiencing this issue after updating all players and controllers to 14.4. 🙂

Userlevel 1
Badge +1

Hi folks,

 

I’m happy to say that this issue has been resolved with the latest S2 update (14.4). Sonos players should no longer be sending excessive requests to your NAS drives when using the music library when updated to this version.

Please let our customer care team know if you’re still experiencing this issue after updating all players and controllers to 14.4. 🙂

 

James since it is not resolved I just gave a courtesy call to support and uploaded my logs which are 14.6 and the problem appears hardwired and wifi so as to rule that out.

 

Support said:

“Basically what  our support doing is they will going to look at the forum and check a work around to fix the issue. You will be updated on the link that you've provided to us in the community.”

 

 

So possibly if there is anything to say they will reply back here.  I guess my next step would be to try out alternate SMB servers to see maybe there is some bug in a specific SAMBA version. I’m a little perplexed that more people haven’t complained en mass, but maybe nobody uses direct file share anymore or people don’t update beyond 13.x. It is very mysterious to me why only two people seem to reliably have the issue.

 

If it is of any help, updating the sonos firmware clears all the connection, as does switching from wifi to hardwire, or from hardwire to wifi. You can actually see all the connections cleaned up, but then the problem slowly grows again until the sonos is again switched or reset.  The Sonos seems to be holding those connections is some sort of connection queue and forgetting about them.

 

Userlevel 1
Badge +1

4.15.5 seems to do better w/r to connections but I need to let it run longer. Though they still grow It seems slower and has a slightly different behavior insofar as the older connections are actually holding open older song fiiles as opposed to being completely orphaned. 

 

I am using servercontainers/samba from dockerhub. One other setting that is hardcoded/defaulted in their config is the following:

 

 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=524288 SO_SNDBUF=524288

 

That may or may not help the situation (I have not had time to test it).

 

Not sure what smb config Sonos uses to do their QA but would be good to know. Sonos should buy a raspberry pi and just use the current vanilla version of smbd off debian bullseye to do their testing. For most NAS users, changing the version to something as current as 4.15.5 may not be supportable, and certainly setting socket_options is not recommended and may not be supported.

 

Only one of the connections below is actually active w/r to the song playing...

 

root@rpi4:~# docker exec -it samba smbstatus

Samba version 4.15.5
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing
----------------------------------------------------------------------------------------------------------------------------------------
20148   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:41080)  SMB3_02           -                    -
20120   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:41032)  SMB3_02           -                    -
26510   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:51914)  SMB3_02           -                    -
31288   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:55252)  SMB3_02           -                    -
12796   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:42204)  SMB3_02           -                    -
31315   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:55272)  SMB3_02           -                    -
12794   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:42202)  SMB3_02           -                    -
12694   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:42102)  SMB3_02           -                    -
20146   nobody       nobody       192.168.1.113 (ipv4:192.168.1.113:41078)  SMB3_02           -                    -

Service      pid     Machine       Connected at                     Encryption   Signing
---------------------------------------------------------------------------------------------
Music        12794   192.168.1.113 Thu May 12 11:29:53 2022 UTC     -            -
Music        20120   192.168.1.113 Fri May 13 14:09:58 2022 UTC     -            -
Music        12796   192.168.1.113 Thu May 12 11:29:53 2022 UTC     -            -
Music        12694   192.168.1.113 Thu May 12 11:25:48 2022 UTC     -            -
Music        20146   192.168.1.113 Fri May 13 14:11:21 2022 UTC     -            -
Music        31288   192.168.1.113 Thu May 12 23:45:23 2022 UTC     -            -
Music        31315   192.168.1.113 Thu May 12 23:46:06 2022 UTC     -            -
Music        20148   192.168.1.113 Fri May 13 14:11:22 2022 UTC     -            -
Music        26510   192.168.1.113 Thu May 12 20:36:50 2022 UTC     -            -

Locked files:
Pid          User(ID)   DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
31315        65534      DENY_NONE  0x89        RDONLY     NONE             /Music   ripped/King’s X - Ear Candy - 07 - 67.flac   Fri May 13 00:29:41 2022
26510        65534      DENY_NONE  0x89        RDONLY     NONE             /Music   Indie/VA - BP TOP 100 of June 2012 - 26 - Knife Party - Centipede (Original Mix).mp3   Thu May 12 22:14:16 2022
12796        65534      DENY_NONE  0x89        RDONLY     NONE             /Music   80s/James - Say Something - Laid.mp3   Thu May 12 20:35:58 2022
31288        65534      DENY_NONE  0x89        RDONLY     NONE             /Music   Indie/Emiliana Torrini - Rarities - 01 - Weird Friendless Kid.mp3   Fri May 13 00:29:27 2022
20120        65534      DENY_NONE  0x89        RDONLY     NONE             /Music   80s/Kinks, The - Better Ship - Ultimate Collection (1 of 2).mp3   Fri May 13 14:39:11 2022
12794        65534      DENY_NONE  0x89        RDONLY     NONE             /Music   Indie/Bloc Party - Weekend in the City - 08 - Kreuzberg.mp3   Thu May 12 23:40:22 2022

 

Userlevel 1
Badge +1

Definitely not fixed in 14.2.

I think I’ve been lucky so far and haven't seen the hundreds of connections yet.

I still see random SMB1 connections to the NAS and will need to keep pushing support to find out why that is doing that.

Also, if you remove the music library, no connections should be made to the NAS. I’m still seeing the speakers making connections which means that the software is saving the username and password even though you are deleting the service that was using it. This needs to be fixed as well. If you delete the music library which contains the username and password to connect to the share, those credentials should no longer be available and so the speakers should not be able to successfully connect to the NAS.

Userlevel 1
Badge +1

For reference, my Synology NAS is running the following SMB version:

Version 4.10.18
Synology Build 42184, Feb 17 2022 19:04:31

 

Like billfor mentioned, I didn’t notice this on 13.x, but on 14.x around the time the SMB3 fix came out. I had a library setup around Halloween last year to play music from the NAS, forgot that I had left the music library enabled and didn’t have a problem till Thanksgiving week or soon after when I had upgraded to 14.x. That’s when I noticed my old NAS kept running out of memory and required almost every other day reboots before I tracked the issue to the Sonos speakers keeping thousands of connections open.

 

14.6 seems to have helped slightly as I don’t see the connections growing out of control now.

Userlevel 1
Badge +1

root@ix4-300d:/opt# smbstatus | grep Music | grep Fri
Music        2043    192.168.1.113 Fri Feb 25 05:46:00 PM 2022 EST  -            -
Music        1316    192.168.1.113 Fri Feb 25 05:37:49 PM 2022 EST  -            -
Music        9053    192.168.1.113 Fri Feb 25 07:12:24 PM 2022 EST  -            -
Music        8574    192.168.1.113 Fri Feb 25 07:07:14 PM 2022 EST  -            -
Music        9014    192.168.1.113 Fri Feb 25 07:12:16 PM 2022 EST  -            -
Music        1307    192.168.1.113 Fri Feb 25 05:37:47 PM 2022 EST  -            -
Music        2010    192.168.1.113 Fri Feb 25 05:45:53 PM 2022 EST  -            -
Music        9064    192.168.1.113 Fri Feb 25 07:12:26 PM 2022 EST  -            -
Music        1287    192.168.1.113 Fri Feb 25 05:37:43 PM 2022 EST  -            -
Music        2012    192.168.1.113 Fri Feb 25 05:45:54 PM 2022 EST  -            -
Music        9051    192.168.1.113 Fri Feb 25 07:12:24 PM 2022 EST  -            -
Music        1312    192.168.1.113 Fri Feb 25 05:37:48 PM 2022 EST  -            -
Music        9049    192.168.1.113 Fri Feb 25 07:12:23 PM 2022 EST  -            -
Music        9055    192.168.1.113 Fri Feb 25 07:12:25 PM 2022 EST  -            -
Music        1318    192.168.1.113 Fri Feb 25 05:37:49 PM 2022 EST  -            -
Music        1314    192.168.1.113 Fri Feb 25 05:37:48 PM 2022 EST  -            -
Music        9047    192.168.1.113 Fri Feb 25 07:12:23 PM 2022 EST  -            -
Music        2005    192.168.1.113 Fri Feb 25 05:45:51 PM 2022 EST  -            -
Music        1282    192.168.1.113 Fri Feb 25 05:37:42 PM 2022 EST  -            -
Music        2039    192.168.1.113 Fri Feb 25 05:45:58 PM 2022 EST  -            -
Music        9028    192.168.1.113 Fri Feb 25 07:12:20 PM 2022 EST  -            -
Music        2041    192.168.1.113 Fri Feb 25 05:45:59 PM 2022 EST  -            -
Music        1305    192.168.1.113 Fri Feb 25 05:37:46 PM 2022 EST  -            -
Music        1303    192.168.1.113 Fri Feb 25 05:37:46 PM 2022 EST  -            -
Music        2037    192.168.1.113 Fri Feb 25 05:45:57 PM 2022 EST  -            -

 

So what happens is during a “session” the controller opens the connections. Then if you don’t use the Sonos, or go back later and change something, it opens an entire new set of connections. I’ve only ever seen SMB3_02 protocol used by the Sonos but I’m not looking very carefully. At least the orphaned connections are 3.02.  I have 75 from Thursday just sitting there doing nothing. The idea of clearing the music library is interesting, but I loath doing that because with this new bug I’ve had scan failures so I risk losing everything (I have 20000 songs on the nas).

 

 

Userlevel 1
Badge +1

I just re-added my music library and I can see the associated product making thousands of connections to the NAS. On the bright side, there’s only one active connection that is showing, so the speaker appears to be opening and closing the SMB3 connection for every song on the NAS, but so far they aren’t staying open. Not sure why the speaker has to keep closing and opening new connections. I’ll keep an eye on it and see if they start to stay open.

Userlevel 2

Still seeing the same issue on my system. 362 open connections on my DS214 from three different speakers not playing anything.

S2-System is on 14.14.

SMB-Service on Syno is 4.10.18-0327

Please help...

Userlevel 7
Badge +22

You really need to call and talk with Sonos, they are most likely to find your problem.

Userlevel 1
Badge +1

I called them months ago and they asked me to upload logs which I did. Never heard back from them. I think OP also said he called and gave logs. Considering the issue has been open for about a year now, I disagree with your premise.

Userlevel 1
Badge +1

Still seeing the same issue on my system. 362 open connections on my DS214 from three different speakers not playing anything.

S2-System is on 14.14.

SMB-Service on Syno is 4.10.18-0327

Please help...

 

I think the easiest workaround at the moment is to set deadtime on the smb.conf to 4320 which is 3 days, and also make sure that the “max connections” setting for your music shares is >= 400. Not sure how to do that on a Synology but those are pretty common adjustments.

 

If you want to live life dangerously you could also try this in the global, but I don’t think it will help much.

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=524288 SO_SNDBUF=524288

 

 

 

Userlevel 1
Badge +1

I don’t believe 14.4 has fully resolved the issue. I installed 14.4 a couple of days ago and re-added the Music Library. I haven’t seen any SMB1 connections and at first, things looked better from an open connection standpoint.

I’m sad to report that I currently have 263 active connections from what appears to be the last speaker that I played music from the Music Library. Here are some of the latest logs showing the connections within a 10 minute timeframe.

Time User Client Name and IP service Resource
2022/03/29 16:10:24 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:12 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:10 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:05 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:02 sonos 192.168.22.160 SMB3 music
2022/03/29 16:10:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:56 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:53 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:49 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:47 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:43 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:41 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:38 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:33 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:30 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:27 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:25 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:18 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:15 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:11 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:09 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:05 sonos 192.168.22.160 SMB3 music
2022/03/29 16:09:02 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:59 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:55 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:52 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:49 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:46 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:43 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:40 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:37 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:34 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:31 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:28 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:23 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:17 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:14 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:12 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:10 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:08 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:06 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:04 sonos 192.168.22.160 SMB3 music
2022/03/29 16:08:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:56 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:54 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:50 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:48 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:46 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:45 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:43 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:41 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:38 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:33 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:31 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:29 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:23 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:22 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:13 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:11 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:09 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:07 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:04 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:02 sonos 192.168.22.160 SMB3 music
2022/03/29 16:07:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:57 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:55 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:53 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:51 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:48 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:46 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:43 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:42 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:41 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:38 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:33 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:30 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:28 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:27 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:25 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:23 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:20 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:18 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:14 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:11 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:07 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:04 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:02 sonos 192.168.22.160 SMB3 music
2022/03/29 16:06:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:55 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:51 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:48 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:48 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:45 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:45 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:43 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:40 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:39 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:33 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:32 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:23 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:20 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:14 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:11 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:08 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:08 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:06 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:03 sonos 192.168.22.160 SMB3 music
2022/03/29 16:05:01 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:55 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:52 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:49 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:46 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:44 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:40 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:38 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:34 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:32 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:29 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:24 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:13 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:11 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:08 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:06 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:04 sonos 192.168.22.160 SMB3 music
2022/03/29 16:04:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:55 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:52 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:49 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:47 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:44 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:41 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:38 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:32 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:30 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:27 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:24 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:22 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:18 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:15 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:12 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:10 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:07 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:05 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:03 sonos 192.168.22.160 SMB3 music
2022/03/29 16:03:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:56 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:53 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:50 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:47 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:44 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:42 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:39 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:33 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:29 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:23 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:13 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:10 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:07 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:04 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:02 sonos 192.168.22.160 SMB3 music
2022/03/29 16:02:00 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:55 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:52 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:51 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:49 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:46 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:43 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:41 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:39 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:36 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:33 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:31 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:28 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:22 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:16 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:13 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:11 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:09 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:06 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:03 sonos 192.168.22.160 SMB3 music
2022/03/29 16:01:01 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:58 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:56 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:53 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:51 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:48 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:30 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:28 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:26 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:25 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:23 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:21 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:19 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:17 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:15 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:14 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:12 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:10 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:07 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:05 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:03 sonos 192.168.22.160 SMB3 music
2022/03/29 16:00:00 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:58 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:56 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:54 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:52 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:52 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:50 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:48 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:46 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:44 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:42 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:40 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:38 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:36 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:35 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:34 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:32 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:30 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:29 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:26 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:24 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:22 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:20 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:18 sonos 192.168.22.160 SMB3 music
2022/03/29 15:59:12 sonos 192.168.22.160 SMB3 music
Userlevel 1
Badge +1

In my case I have a theory that it may be two controllers creating connections back and forth, when played together. I have two stereo pairs in each room, but I usually play the rooms together.  When I see large numbers of connections I see both controllers from my two stereo pairs. But when things are well behaved I see only one ip sharing 5 connections. Also when it works properly with a single ip the album art is much quicker to load and I don’t get blanks when I scroll through the queue. If your system has two or more pairs that are linked to play together, this could be the root cause.

 

Userlevel 1
Badge +1

My comment about 14.15.5 appears to have been blocked for moderation for some apparent reason. TLDR; better but still an issue.

Try this in smb.conf

 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=524288 SO_SNDBUF=524288

 

Userlevel 7
Badge +18

Hi @billfor 

Due to spammers now posting a lot of phone numbers, our filters now occasionally mistake genuine posts with strings of numbers as spam. I’ve corrected this for your post above.

Userlevel 1
Badge +1

In my case I don’t have any stereo pairs, but now I’m seeing the SMB connections staying open again. Currently up to 238 connections since yesterday. If I don’t remove the NAS from the music library, this will continue to grow until the speakers stop responding on the network. Support tries to blame the wi-fi for this behavior, but it’s the number of open connections to the NAS that is consuming onboard RAM of the speaker and this causes the speaker software to stop responding. The high number of connections to the NAS is the first symptom. The second is when the http://<ip of speaker>:1400/xml/device_description.xml page stops responding. My home automation system uses these pages to query the speakers for services and I typically see the speakers drop offline just before they start crashing. The third symptom is that the speakers will either show up as ZP100 speakers and are marked incompatible, or they simply stop showing up in the mobile app.

Userlevel 1
Badge +1

If you set the “deadtime” parameter in smb.conf to close out the orphaned connections after 3 days,  the speakers will not need to reboot. I’ve never rebooted my speakers. Average use for 5 connected sonos clients is about 200 connections for a rolling 3 day average.  Amazed Sonos doesn’t seem to do anything about the issue though.

Userlevel 1
Badge +1

Definitely not fixed in 14.2.

I think I’ve been lucky so far and haven't seen the hundreds of connections yet.

I still see random SMB1 connections to the NAS and will need to keep pushing support to find out why that is doing that.

Also, if you remove the music library, no connections should be made to the NAS. I’m still seeing the speakers making connections which means that the software is saving the username and password even though you are deleting the service that was using it. This needs to be fixed as well. If you delete the music library which contains the username and password to connect to the share, those credentials should no longer be available and so the speakers should not be able to successfully connect to the NAS.

Confirmed that it’s not fixed in 14.2. I’ve reached out to support again to find out if it was supposed to be fixed. I also let them know about the continued SMB1 connections being attempted.

Userlevel 1
Badge +1

I noticed my speakers, which are all wifi connected have deauths in the router log. This causes another Zone player to take over the connections and the old ones are abandoned. Something may have changed recently where they are more likely to disconnect from the wifi network. If you have another AP, or instability in your wifi , that could be a cause. In my case it just started happening with the December update, and none of my other wifi devices are deauthing, so the problem seems specific to Sonos.

If the smbstatus shows multiple ips rather than a single ip, that is also a symptom of this same problem.

Userlevel 1
Badge +1

I spoke too soon. I was playing some songs from the NAS and now I’m up to 272 connections.

Userlevel 1
Badge +1

Sad to report that my connections grew to over 2700 and also the SMB1 connection issue is still there. I have 98 new failed attempts to the NAS for SMB1 connections which are denied. At first, it seemed like they were fixed since I didn’t have any since 2022-05-07, but then starting on 2022-06-15 through 2022-06-16, they came back. i don’t recall exactly what triggered the connections, but the speaker that made them was recently factory reset and re-added because it dropped off the network. The reason it dropped may be related to my home automation trying to play a non-existing Pandora radio station. I only mention it here, because there may be something in the onboarding process that is causing the SMB1 connections.