snapcast icon indicating copy to clipboard operation
snapcast copied to clipboard

WIP: snapclient 0.28.0 (armbian/armv7l) despite repeated attempts cannot connect to snapserver 0.28.0 (openwrt/arm64) after some time.

Open davidandreoletti opened this issue 1 month ago • 2 comments

Note: The information needed to figure out what's happening is still being gathered. Relevant fields will be updated as discovery process progresses.

Describe the bug

  • After a hardware reboot, both snapcast client and server are started, the client can connect to the server and receives music.
  • After that and upon an unknown set of conditions, the snapcast client cannot connect to the server. Pinging the server machine works and netstats report the server is still listening on port 1704/1705/1780.

Steps to Reproduce

  1. No confirmed step available at the moment
  2. (suspected) Snapserver or snapclient idle for 2+ days

** Issue Ruled out **

  • Snapclient machine can ping the snapserver host IP successfully.
  • Firewall port on server machine open since snapclient can connect to the snapserver successfully.

Environment details

  • OS: (server) OpenWRT SNAPSHOT (client) armbian 23.05
  • Snapcast version: (server + client) 0.28.0

Log files

Snapserver logs after --hardware-- reboot: client can connect to the server

Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Version 0.28.0
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Adding source: pipe:///tmp/snapfifo?name=default
Mon Jun  3 14:59:56 2024 user.notice snapserver[10312]: Settings file: "//.config/snapserver/server.json"
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Adding service 'Snapcast'
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Using HTTP host name: davida-router-hw1
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: PcmStream: default, sampleFormat: 48000:16:2
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: PipeStream mode: create
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Stream: {"fragment":"","host":"","path":"/tmp/snapfifo","query":{"chunk_ms":"20","codec":"flac","name":"default","sampleformat":"48000:16:2"},"raw":"pipe:////tmp/snapfifo?chunk_ms=20&codec=flac&name=default&sampleformat=48000:16:2","scheme":"pipe"}
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Init - compression level: 2
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Creating TCP acceptor for address: 0.0.0.0, port: 1705
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Creating HTTP acceptor for address: 0.0.0.0, port: 1780
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Creating stream acceptor for address: 0.0.0.0, port: 1704
Mon Jun  3 14:59:56 2024 user.info snapserver[10312]: Number of threads: 4, hw threads: 6
Mon Jun  3 14:59:56 2024 user.err snapserver[10312]: Error reading message: End of file, length: 0, ec: asio.misc:2
Mon Jun  3 14:59:57 2024 user.info snapserver[10312]: Service 'Snapcast' successfully established.
Mon Jun  3 15:00:05 2024 user.notice snapserver[10312]: StreamServer::NewConnection: 192.168.3.137
Mon Jun  3 15:00:05 2024 user.info snapserver[10312]: Hello from davida-audiospeaker-hw0, host: davida-audiospeaker-hw0, v0.28.0, ClientName: Snapclient, OS: Armbian-unofficial 24.5.0-trunk bookworm, Arch: armv7l, Protocol version: 2

Snapserver logs after --snapserver-- reboot and unknown set of conditions triggered: client cannot connect to the server

Not yet available

davidandreoletti avatar Jun 03 '24 07:06 davidandreoletti