Answered

USB memory stick


My music is stored on a USB memory stick plugged in to a BT hub5 router. The music normally plays for a few minutes before it stops with the message that the music is in the wrong format. Any ideas anybody. Thanks
icon

Best answer by Stanley_4 11 October 2018, 22:22

You could submit a diagnostic within a few minutes of seeing the problem and post the number here or to one of the other support sites and see what Sonos can tell you.

There are other options for hosting your music if it is a USB drive or router issue, a WD Ethernet connected drive is dead easy, a Raspberry Pi is inexpensive or there are a lot of other options. Most will work as long as they support SMB v1 connections.
View original

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.

16 replies

The 'wrong format' error is often a bit misleading - it is perceived that way by the system because it comes through corrupted, for example. It may be that the USB drive is not fast enough to stream reliably to Sonos. That's just a guess though.
Userlevel 7
Badge +21
You could submit a diagnostic within a few minutes of seeing the problem and post the number here or to one of the other support sites and see what Sonos can tell you.

There are other options for hosting your music if it is a USB drive or router issue, a WD Ethernet connected drive is dead easy, a Raspberry Pi is inexpensive or there are a lot of other options. Most will work as long as they support SMB v1 connections.
Many thanks
Hi Stanley_4 do you have a step by step guide in respect of using the Raspberry Pi option ?
Userlevel 5
Badge +13
There are a lot of tutorials on this topic online, typically though they're directed at the computer or networking literate. Here's one to start with: https://www.cnet.com/how-to/raspberry-pi-as-cheap-nas-solution/
Userlevel 7
Badge +21
This is pretty complete: https://en.community.sonos.com/home-theater-228993/where-to-store-my-music-library-6798931#post16196657

If you have any questions I'll try to answer them, my Pi music library is happily working away with no issues.

If you do get a Pi take a look at the http://pascalopitz.github.io/unoffical-sonos-controller-for-linux/ his AppImage works great on a Pi and if you enable VNC you can control your Sonos (in a limited fashion) from any computer, no need to be on the Sonos LAN segment. Couple topics on it here if you want assistance with it. https://en.community.sonos.com/controllers-software-228995/linux-6764091
Thanks for your help I shall take a look
Hi Stanley_4 so I bought a raspberrypi and have added samba. Thought it was going ok until after 2 songs playing from the flash disk attached to the raspberrypi I get the 1002 error and now it won’t play from the flash disk at all. Any ideas? Thanks
Userlevel 7
Badge +21
Which Pi do you have?
How are you connecting the Pi to your network?
How are you connecting to your SSD?

That error is usually speed related, could be a bad cable, noisy WiFi or even problems connecting to the drive.

It might be load related if the Pi is very busy or one of the older or smaller versions. Check the top command to see if that is an issue. Mine hovers around 0.2 on a 3b.

============
code:
top - 20:10:25 up  4:51,  2 users,  load average: 0.32, 0.14, 0.04
Tasks: 165 total, 1 running, 112 sleeping, 0 stopped, 1 zombie
%Cpu(s): 0.3 us, 0.2 sy, 0.0 ni, 99.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 949448 total, 402880 free, 208256 used, 338312 buff/cache
KiB Swap: 102396 total, 102396 free, 0 used. 660988 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
539 root 20 0 31836 21508 14104 S 35.0 2.3 0:06.80 vncserver-x11-c
876 root 20 0 141460 50208 28920 S 25.0 5.3 0:39.16 Xorg
26960 pi 20 0 343300 99456 62664 S 15.0 10.5 0:15.14 sonos-controlle
27180 pi 20 0 8244 3356 2832 R 10.0 0.4 0:00.07 top
26911 pi 20 0 448936 98604 67188 S 5.0 10.4 0:05.56 sonos-controlle
1 root 20 0 27096 6024 4848 S 0.0 0.6 0:03.36 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd

==========

https://support.sonos.com/s/article/2401?language=en_US

Error 1001 / Error 1002
These error messages occur when Sonos tries to add or connect to your music share, but the computer or NAS drive takes too long to respond. This can happen when the computer or NAS is having trouble maintaining a reliable connection to the network.

The most common causes of these errors are detailed above under “Common Issues and Solutions.” If you see this error, check your computer or NAS and make sure that it’s powered on and awake. If the computer is on WiFi, make sure it has a strong wireless connection to the router.

A firewall can also block Sonos from properly connecting to the computer. If a firewall is installed on the computer, make sure it’s configured for Sonos by following these steps.
Hi Stanley_4 I have a pi 3b. I have tried connecting both wirelessly and by Ethernet. My flash disk is connected to USB port of the pi and followed this video to load samba and mount the drive https://m.youtube.com/watch?v=lJgF8WQauGE . After running the TOP command I have the following figures load average 0.02, 0.05, 0.07. I can access the flash disks files via my laptop with no problem. Thanks John
Hi Stanley_4 Sonos just started working for about 30 seconds then music cut out, although the graphic equaliser graphic next to the song is still moving indicating it is playing (I assume) and the load average figures are now 30.5, 16.60, 7.16 and increasing.
Userlevel 7
Badge +21
What does top show for the running programs, not just the load numbers? What is causing the load is more important than just seeing the load levels.

Which IP are you connecting to your Samba over the Ethernet or WiFi? The Ethernet would be best.

Did you make the SMB v1 edits to the config file? Most things will work fine with no SMB v1, Sonos is not one of them.

Did you hard mount your drive or let the auto mounter do it? Hard mount is better and avoids things breaking when the USB setup changes. Just look at the output of the mount command and copy the music drive info into the /etc/fstab file.

PI > mount
/dev/sda1 on /mnt/ssd-music type xfs (rw,nosuid,nodev,noexec,relatime,attr2,inode64,noquota)

PI > cat /etc/fstab
(my notes on the UUID info on my drive in the # lines and
-- the command I'm using in the one without the #. I am using an xfs formatted drive.)
# standard /dev mount, may be confused by changing the USB port used
#/dev/sda1 /mnt/ssd-music xfs defaults,auto,users,rw 0 0
#PARTUUID="54285699-bf0c-4f92-b846-082114177b6b" is the whole drive
#PARTUUID="d450bd65-603d-4e13-8b32-41ed9ea3e354" is sda1
PARTUUID="d450bd65-603d-4e13-8b32-41ed9ea3e354" /mnt/ssd-music xfs defaults,auto,users,rw 0 0
# If UID mount fails this will work until you can fix it
#/dev/sda1 /mnt/ssd-music xfs defaults,auto,users,rw 0 0
Hi Stanley_4 as you can probably guess I am new to all this and pretty annoyed that I’m having to do it. Please can you show me how to ensure smbv1 is running. I know how to get in to the samba sub configure file but can’t see any mention of smbv1. Also I followed the video in my previous response to mount my flash disk so I have probably done this wrong as well. Any help you can offer will be appreciated. Many thanks
Userlevel 7
Badge +21
To enable the v1 SMB settings edit the config file:

sudo nano /etc/samba $ cat smb.conf

Under the global settings, the heading [global] should already be there add these two lines:

[global]
# enable v1 authentication for Sonos access
ntlm auth=yes

You will also need a section for your share, this is mine so you'll need to edit the path line to match your setup.

[music]
Comment = Pi shared folder
Path = /mnt/ssd-music
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0555
directory mask = 0555
Public = yes
Guest ok = yes
Userlevel 7
Badge +22
Get a cheap NAS drive for backing up all your files.
Userlevel 7
Badge +21
A cheap NAS may work but getting one that has decent support and isn't abandoned, leaving it open to security issues (I'm looking at you Western Digital) can be a problem. Also getting support for SMB v1 can be an issue, either on purchase or after a firmware update. The cheap part can be a problem too.

I wouldn't recommend against getting one, just being aware of the issues involved.