Skip to main content
Enthusiast II
May 14, 2021

Recent Sonos update is broken on non-ASCII characters in file names

  • May 14, 2021
  • 45 replies
  • 1657 views

It appears that the recent Sonos update, 13.1, is broken with regards to non-ASCII characters in files when updating the library. I have a job that daily generate 30 playlists, and the format of the name of the playlists is Pnn Artist - Albuim.m3u. They are located on a NAS from Synology that I have had for quite a few years.

For instance, there is a file of which the name is P05 - Järngustav - Tiden läker inga sår.m3u. But in the Windows controller, this appears as P05 - Jrngustav - Tiden lker inga sr.m3u. In the Windows controller I see a square with a cross in instead of the å and the ä. Another example is P23 Cicala Mvta - Live at 磔磔- 結成20周年記念.m3u. Here all Kanji characters comes out as question marks. And it is not only matter of prettiness; when I open the list, there is nothing there, and I can’t put it into the queue.

This was working without problem until yesterday, until it was broken. It obviously needs to be fixed - and fixed soon!

 

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.

45 replies

controlav
Lead Maestro
May 14, 2021

What codepage are your playlists in? Is there a BOM on it? Was there a Synology update recently (I ask because I’d be surprised if Sonos changed something as frozen-in-time as imported playlists).

Author of the leading independent Sonos apps for Android, MacOS, iOS, Windows and Xbox.
Enthusiast II
May 14, 2021

I applied an update to Sonos yesterday. It was over a month since I last applied an update to the NAS.

I believe the NAS is running Linux, so I would expect file names to be in UTF-8. I would not expect there to be BOMs in the file names. (The playlists are actually created on a Windows system, and then copied to the NAS. Thus, the names are originally in UTF-16LE, but that is not a concern to Sonos, as Sonos does not know about the Windows system. And, yes, I did check the names on the NAS before I made my post.)

The issue is not isolated to Playlists, but names are broken when I check the Folders node as well. In fact, here is also some extra confusion, because some artists with non-ASCII characters appear multiple times.

So it seems to be a general problem in how file names are read and stored.

 

 

controlav
Lead Maestro
May 14, 2021

I applied an update to Sonos yesterday. It was over a month since I last applied an update to the NAS.

I believe the NAS is running Linux, so I would expect file names to be in UTF-8. I would not expect there to be BOMs in the file names. (The playlists are actually created on a Windows system, and then copied to the NAS. Thus, the names are originally in UTF-16LE, but that is not a concern to Sonos, as Sonos does not know about the Windows system. And, yes, I did check the names on the NAS before I made my post.)

The issue is not isolated to Playlists, but names are broken when I check the Folders node as well. In fact, here is also some extra confusion, because some artists with non-ASCII characters appear multiple times.

So it seems to be a general problem in how file names are read and stored.

I misunderstood, I thought the problem was with paths in playlist files, hence my speculation regarding BOMs.

I know nothing about Linux, but I do know that Sonos generally uses UTF-8 for its strings, as that is how UPnP works. I assume other clients of this NAS see those files correctly?

Could Sonos have finally updated the Samba client in S2 to no longer need SMBv1 and introduced this bug? That is the only reason I can think of they would touch this code with a 10ft barge-pole.

You should probably create a diagnostic and submit it to Sonos support, and also share what NAS you are using for others to chime in.

Author of the leading independent Sonos apps for Android, MacOS, iOS, Windows and Xbox.
Enthusiast II
May 14, 2021
 

I misunderstood, I thought the problem was with paths in playlist files, hence my speculation regarding BOMs.

...

You should probably create a diagnostic and submit it to Sonos support, and also share what NAS you are using for others to chime in.

The contents of the playlists files themselves is utterly dull. The entries are just 01.lnk.mp3 and so on.

 

Yeah, maybe I should have taken the occasion and called Sonos support today, as it is a day off due to Ascension Day. On the other hand, sitting the telephone queue to Sonos is not particularly entertaining. The exact model of the NAS is a DS213 and the version of the OS is DSM 6.2.3-25426 Update 3.

Enthusiast II
May 14, 2021

I made a test and changed the settings for the music library, so that I removed the share for the playlists on the NAS, and instead I mapped the music library to read the playlists from my Windows machine. This changed things to the better, so that file names now appears correctly in the Sonos app, and the files on the playlists are visible.

So it appears that this is only an issue when reading files from Linux, or possibly certainly flavours of Linux.

While this is a workaround for me, I still prefer to have everything on the NAS, which has a higher uptime than the Windows machine.

 

Enthusiast II
May 21, 2021

I called Sonos support to report the issue, but lo and behold: they had a solution! In my NAS (a Synology DS213), I was told to go to the Control Panel, and then select File Services. There is a tab SMB/AFP/NFS. In this tab, select Advanced. In this UI there is “Max SMB-protocol” and “Min SMB-protocol”. They should be set to SMB2 and SMB1 respectively. I applied these changes and restored the setting for the music library to use the NAS for the playlists - and now things are working properly. Well, almost. Folder names with non-ASCII names are still broken, but that is less of an issue, since I don’t use folders that much, and it is still possible to get to the tracks.

 

Hats off for Sonos Support!

Enthusiast II
May 22, 2021

Nah, it was not that simple. I think incorrectly assumed that the music library already had been updated when I was on the phone with Sonos support. This morning, things were rather worse. The names of the playlists were wrong, and when I tried to play Dire Straits’ second album, Communiqué, selecting it from the Album menu, Sonos could find the file. You may notice the accent in the title (and the name if the file path includes that accent)..

Nevertheless, things are working now. I fooled around and tried various things. While I was at it, I applied the most recent update of DSM, the operating system for the NAS. I don’t know if the upgrade was a required step, or if was just the reboot, or it was some other of the knobs that I tried, but now the file names are displayed properly and the playlists work. Who knows, maybe Sonos and Synology have a conspiracy? :-)

 

Lyricist II
May 24, 2021

Hello,

I have the same problem…

I tested to change Synology parameter without success :disappointed_relieved:

Like @Erland Sommarskog , the filenames is correctly showed but folders don’t.

This is a huge problem. There are several of us using the system and I can't leave it as it is.

Any solutions ?

Regards

Enthusiast II
May 24, 2021

At least I am not alone. :-)

What I have found is that in my case things go wrong with he scheduled update of the music library, but if I start the update manually, either from the Windows controller from my phone, the filenames are read correctly. Or at least so it seems.

But that is certainly weird. My speculation is that when the scheduled update runs, player X runs the indexing, but when I start it manually, it is player Y. And this could happen, because different players have different software, since they are different models. Again, this is pure speculation. I looked port 1400 to see if I could see in the logs which players that have been doing the indexing, but it seems that this information is not exposed anymore.

This is my set of players:

2x Play:3 (and of these two is the only with a network cable).

1 Sub, Gen 1 (paired with the two Play:3)

2xSonos Five

2xPlay:1

2xPlay One SL

1 Port

I should also add that I’m confident that the SMB parameter has nothing to do with. The Min setting must be SMB1. I tried to set it to SMB2, and now Sonos were not able to access the NAS at all.

 

 

 

 

Lyricist II
May 24, 2021

I have only two “Sonos One SL” for now.

For now, I launch indexing manually.

I test this night the scheduled!,

We'll see tomorrow morning