core icon indicating copy to clipboard operation
core copied to clipboard

Google Cast output stays "Playback unavailable" (EHOSTUNREACH) after the speaker was powered off – recovers only after container restart

Open timanders22 opened this issue 1 month ago • 1 comments

Version: sonn core 4.0.0-beta.22 (ghcr.io/sonn-audio/core@sha256:f3fb20d13d28…), Docker on Raspberry Pi 4 (aarch64), container in a macvlan network with its own IP/MAC, Loxone integrated, two zones, each with one Google Cast speaker (single devices, no groups).

What happened Zone 2 ("Probe 2") had a Google Cast speaker that was without power for a while. While it was off, Play on zone 2 failed with connect EHOSTUNREACH :8009 – expected. The speaker was switched on again and worked normally (e.g. playing radio via "OK Google"). Every further Play on zone 2 still failed within ~2 ms with the same error and the zone showed "Playback unavailable": [WARN][Zones|Manager] [action=play fatal=true message="connect EHOSTUNREACH :8009" zoneId=2] output action failed [WARN][Zones|Manager] [reason="connect EHOSTUNREACH :8009" source=output title="Playback unavailable" zoneId=2] playback error At the same time a TCP connection from inside the same container (node -e "net.connect(8009, '')") to the speaker succeeded, and the ARP entry in the container was complete. The speaker's IP had not changed. Only restarting the container fixed it; afterwards zone 2 played immediately. Expected After an output error, sonn should retry the connection on the next Play (or reconnect in the background) instead of failing immediately with a cached error.

Possibly related Before the restart the log also showed, many times per second:

[DEBUG][Groups|Mixed] [bufferedBytes=589824 leader=1 member=2] mixed group pipe drop (slow member) Zone 2 was apparently still a member of a mixed group with zone 1 (left over from an earlier grouping in the Loxone app) although no group was visible in the app. After the restart this message was gone.

Happy to provide more logs (IPs/MACs masked) if needed.

timanders22 avatar Oct 31 '26 22:10 timanders22

Thanks for reporting this! A fix is included in the upcoming beta. Once it's out, could you give it a try and let me know whether it resolves the issue for you?

rudyberends avatar Nov 07 '26 12:11 rudyberends