Replies: 4 comments 21 replies
-
I got the same problem here.
thats really annoying. i cant find sth to solve this. |
Beta Was this translation helpful? Give feedback.
-
My issue turned out to be a horribly underperforming nfs store I was streaming the music from. Once that was fixed snapcast works like a charm. Basically, the file system couldn't keep up with the stream no matter how much buffer I gave it. |
Beta Was this translation helpful? Give feedback.
-
I'm also having this issue, in a microk8s cluster, with mopidy on a fifo over a shared volume (with a local music library, so no network issues getting in the way there) and librespot inside the same container as snapserver. Every client I've connected has suffered stuttering, with an onResync error and some small number of ms delay. The browser client kept reporting age issues with chunks. "Chunk is too young" was one of them. The container, its host, and the client computer are all synced to the same ntp server. Thing is, I had the exact same setup on bare metal - mopidy through a fifo, librespot, snapserver - and it showed no issues. No pause or stutter whatsoever, no matter the client. I can only assume it's something about the container environment that's bottlenecking snapserver somehow. I just can't work out what. |
Beta Was this translation helpful? Give feedback.
-
I came strait to this issue looking for an answer to the same performance issue and errors but with mpd in docker In this case I am running docker on my NAS server so it has direct access to the data without NFS. I've even tried putting the fifo on /tmp/ shared between mpd and snapserver containers but the resyncs still regularly happen.
I only started having this problem after moving my mpd+snapcast setup to my docker container. Before this I was running it on a raspberry pi-4 over wireless and nfs to the same NAS without any problems. |
Beta Was this translation helpful? Give feedback.
-
I have mpd and snapserver (v0.25) running in docker containers. I'm getting onResync dropouts pretty consistently from all snapclients. I've tried adjusting buffer sizes, process nice values and various other things. Could someone explain what onResync coming from the snapserver indicates? Even better, does someone have any suggestions on where to look to debug this? Thanks.
Here's a log excerpt from the snapserver:
2021-10-08 01-15-16.282 [Info] (PosixStream) next read < 0 (default): -26.34 ms
2021-10-08 01-16-01.239 [Info] (PosixStream) next read < 0 (default): -43.726 ms
2021-10-08 01-16-16.345 [Info] (Server) onResync (default): 89.0416 ms
2021-10-08 01-18-31.279 [Info] (PosixStream) next read < 0 (default): -3.907 ms
2021-10-08 01-18-46.254 [Info] (Server) onResync (default): 99.0411 ms
2021-10-08 01-19-46.259 [Info] (PosixStream) next read < 0 (default): -14.421 ms
2021-10-08 01-21-06.262 [Info] (PosixStream) next read < 0 (default): -37.867 ms
2021-10-08 01-21-41.377 [Info] (Server) onResync (default): 52.8366 ms
2021-10-08 01-21-46.358 [Info] (Server) onResync (default): 131.043 ms
2021-10-08 01-21-51.274 [Info] (Server) onResync (default): 65.3169 ms
2021-10-08 01-21-56.324 [Info] (Server) onResync (default): 80.0499 ms
2021-10-08 01-22-01.312 [Info] (Server) onResync (default): 77.5323 ms
2021-10-08 01-22-21.874 [Info] (Server) onResync (default): 172.427 ms
2021-10-08 01-22-26.748 [Info] (PosixStream) next read < 0 (default): -23.595 ms
2021-10-08 01-22-31.903 [Info] (Server) onResync (default): 138.783 ms
2021-10-08 01-22-36.909 [Info] (Server) onResync (default): 155.693 ms
2021-10-08 01-23-51.255 [Info] (Server) onResync (default): 75.2173 ms
2021-10-08 01-24-51.215 [Info] (PosixStream) next read < 0 (default): -30.458 ms
2021-10-08 01-25-36.330 [Info] (PosixStream) next read < 0 (default): -24.771 ms
2021-10-08 01-26-46.359 [Info] (Server) onResync (default): 153.792 ms
2021-10-08 01-27-46.181 [Info] (PosixStream) next read < 0 (default): -11.592 ms
2021-10-08 01-29-52.187 [Info] (PosixStream) next read < 0 (default): -18.369 ms
2021-10-08 01-30-02.389 [Info] (Server) onResync (default): 140.471 ms
2021-10-08 01-30-07.299 [Info] (Server) onResync (default): 59.3572 ms
2021-10-08 01-30-17.391 [Info] (Server) onResync (default): 141.797 ms
2021-10-08 01-30-22.389 [Info] (Server) onResync (default): 87.6404 ms
2021-10-08 01-30-27.454 [Info] (Server) onResync (default): 155.466 ms
2021-10-08 01-30-32.656 [Info] (Server) onResync (default): 351.765 ms
2021-10-08 01-30-37.383 [Info] (Server) onResync (default): 56.7804 ms
2021-10-08 01-30-42.243 [Info] (PosixStream) next read < 0 (default): -9.334 ms
2021-10-08 01-30-47.261 [Info] (Server) onResync (default): 107.277 ms
2021-10-08 01-30-52.271 [Info] (Server) onResync (default): 99.6124 ms
2021-10-08 01-30-57.233 [Info] (Server) onResync (default): 52.1851 ms
2021-10-08 01-31-02.276 [Info] (Server) onResync (default): 72.4037 ms
2021-10-08 01-31-12.318 [Info] (PosixStream) next read < 0 (default): -31.83 ms
2021-10-08 01-31-17.415 [Info] (Server) onResync (default): 149.546 ms
Beta Was this translation helpful? Give feedback.
All reactions