Skip to main content
Trending Lyricist I
April 21, 2022
Answered

SAMBA v4.15.5 file server stopped working for Sonos connect:amp

once i upgraded the OS of my linux box its SAMBA service is not recognized anymore by my Sonos connect:amp device - while the same setup worked just fine for years.  no browsing in the directory tree, no music library update, no playing of any music files, nor mp3 nor flac…

the crucial difference i assume is in the SAMBA version, now at 4.15.5 which does not come anymore with the ancient SMB1/NT1 protocol the connect:amp relies on.  is there anybody out there that got the connect:amp work with a modern SAMBA version > 4.11 ?

here a few elements in my smb.conf file that helped in the past to make this work :

client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
follow symlinks = yes
wide links = yes
unix extensions = no

any help is greatly appreciated !

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.
pistiAnswer
Trending Lyricist I
May 6, 2022

to everybody who tried to help me here with my SMB1/SONOS problem.  i somehow got this issue resolved, it’s now QNAP that speaks to my connect:amp - see here under LinuxQuestions -  so, i took the easy route, for the moment at least…

thank you for your efforts and time !

 

27 replies

Corry P
Sonos Staff
April 27, 2022

Hi @pisti 

I’ve used Plex for years and was not aware of that limitation - I guess I don’t have enough music! Apologies for once again getting your hopes up!

It looks like you are right and @Stanley_4’s suggestion of the SMB gateway will be the way to go, though I have never looked into it myself.

One more idea, as you’re set on not adding hardware - if you were to set up a Virtual Machine on Linux that ran Windows, you could install the Sonos app there which prefers to use HTTP rather than SMB, utilising the Sonos Library Service installed with the app. I can’t say for sure that it would work - it may well take a bit of fiddling, as well as being an inefficient use of disk space - but in theory I don’t see why not. Experience with VMs would definitely help. Hopefully, the gateway solution will be tidier.

I wish you luck.

Edit: You might want to check this thread (music needn’t be stored on the Android device, just on a local UPnP server):

 

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

just as update - still no simple solution found for my SMB1 problem, working on it…

still, here a question to the SONOS OS developers : is there no way to install a read-only NFS client functionality in the S1 (or S2 as well) kernel ?  that would really really be a big favour to the linux SONOS community.  it’s so much easier to deal with NFS than with SAMBA.  i don’t think NFS requires much space nor resources, right ?  i anyway assume that the SONOS OS uses some form of embedded linux kernel.

Corry P
Sonos Staff
May 3, 2022

Hi @pisti

You are correct - our firmware is based on Linux, so I don't think that would be too difficult as NFS is as much a part of Linux as having a local file system. Whether it would be implemented, I have no idea - it may have been considered already. Windows can’t add NFS shares natively so that would make it difficult to Browse to the share in the desktop controllers - advanced users only, I guess.

It could be helpful for a non-insignificant number of people though - good idea!

I recommend you start a new topic here on the Community, making NFS a feature request in it.

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

thank you, Corry, for your suggestion - here my new feature request for adding NFS as new data sharing protocol to S1/S2.

pistiAuthor
Trending Lyricist I
May 3, 2022

here the link to the my feature request (the previous one above is not right)...

Stanley_4
Grand Maestro
May 3, 2022

I wanted NFS access to my NAS for my Sonos music so I built an NFS to SMB gateway it was quick, easy and fairly cheap. I’m hoping to not need it some day but until then…

This is on a Pi but you can do it on any Unix derived OS that includes Samba.

SMB v1 Gateway  https://stan-miller.livejournal.com/357.html

Corry P
Sonos Staff
May 4, 2022

Hi @pisti 

I’ve been given a pointer. Please try adding 

unix extensions = no

to your smb.conf file.

I hope this helps.

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

very kind of you, dear Corry, thank you !  now, i have used this option “unix extensions = no” in the past, and even last month, but without success.  i will try again tonight at home, as my smb.conf file changed somewhat following Stanley’s example on the web, and insert this option which may make it then work, who knows… 

although nothing changed for years in my setup regarding the SSD drive where i keep all music files i will nevertheless check if ownership and permission settings look fine.  that may be a last thing to look into, on the UNIX part at least.   the only thing that changed here early this year is an OS upgrade.

like you and Stanley said, a Raspberry solution may help here, or a separate server with an old Slackware 14.2 version installed.  the 2nd option means perhaps less effort for me.

what annoying problems.  will keep you posted !

Corry P
Sonos Staff
May 4, 2022

Hi @pisti 

My colleague reports from his testing that access on his drive via Sonos is switching off and on with the removal and addition of that line, so it’s worth confirming, I think.

Please also try adding

ntlm auth = yes

and try with and without 

follow symlinks = yes

wide links = yes

Please make sure that this is all done in the [Global] section of the file.

If this works, it might make up for me foolishly suggesting you make a feature request for S1, which, as was rightly pointed out on the thread, isn’t going to happen. For S2, it is at least feasible.

 

Edit: “wide links = yes” seems to be the issue. “follow symlinks = yes” shouldn’t be a problem.

https://www.samba.org/samba/docs/current/man-html/vfs_widelinks.8.html

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

no luck, sigh...tried gazillions of variations, played with all the SMB options mentioned here earlier, tried to mount SMB via linux cli, and so on.  nothing works.  i am a hardcore unix user/coder for 29 years but samba is just not my domain !

  1. i am wondering how to get hold of a *complete* example smb.conf file, best for passwordless access of a directory tree with NT1/SMB1, that proven works with SONOS ? 
  1. then the instructions what ownership & permission settings to apply to the directory tree in question.
  1. last i would like to see the corresponding three lines that need to be entered in the SONOS S1 App under Settings-System-Music Library-Music Library Setup-Add Shared Music Folder such as //IP/PATH;username(empty?);pswd(empy?)

as said, i used my SONOS connect:amp for the last 10 years with music libraries stored on Slackware linux or on the QNAP NAS, and things worked fine - though each upgrade brought its own SAMBA quirks.

a last avenue for me before starting to play with Raspberries and other old-OS linux boxes, could be to install a 1TB SSD in my QNAP NAS and use its inelegant GUI and associated services to serve my 17K music files...