owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD media server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
1.99k stars 227 forks source link

Cannot play on Any Airplay Device #1740

Closed Ben-Sky closed 1 week ago

Ben-Sky commented 2 months ago

Hello,

I've spent two evenings on this issue, trying to read the former issues on GitHub and also on other forums, but no luck so far.

Here are the details:

>   
> # Enable/disable IPv6
>   ipv6 = false // I have tried "yes", "no". But I can try again. 
>   
>   # AirPlay per device settings # I have done the same for another Airplay device
>   airplay "HomePod mini" {
>   # present. The speaker will remain until restart of OwnTone.
>   #       permanent = false
>   # Disable AirPlay 1 (RAOP)
>   raop_disable = true
>   # Name used in the speaker list, overrides name from the device
>   #       nickname = "My speaker name"
>   }
>
ejurgensen commented 2 months ago

Are the Airplay speakers shown in the speaker list? (I didn't read the log since it's rather lengthy)

I guess in any case the most likely cause is that you are running in a container.

Btw I would suggest dropping the per speaker config, it shouldn't be necessary.

Ben-Sky commented 2 months ago

Yes, the Airplay speakers are showing in the speaker list. When I try to activate one of them (to play a song through one of them), I see the handshake between the AirPlay speaker (HomePod Mini) in the debug log, but then nothing happens. Should I do something with the firewall and ports? Is running in a container not recommended? What is the best hardware setup? A Pi? Should I try different OS, such as FreeBSD?

ejurgensen commented 2 months ago

Should I do something with the firewall and ports?

Airplay opens connections both ways and using random ports, so you should try disabling any firewall. If you have another Airplay speaker, then give that a shot too. While HomePod Mini should work, I think it can be set in the Home app to some grouping mode that can cause difficulties (my memory is a bit vague on that - I don't have one myself).

Is running in a container not recommended? What is the best hardware setup? A Pi? Should I try different OS, such as FreeBSD?

People run it on all sorts of platforms, but the easiest is probably a Pi, where you can just add the repo (see the Install instructions). @hacketiwack has also made it available via Docker, if you prefer a container, so that should also be quite easy.

hacketiwack commented 2 months ago

@BenDataAnalyst, I never used Linux Containers (LXC). I'm curious how you configured OwnTone within a LXC container. Do you have any documentation? It could be worth adding this information to the OwnTone installation guide.

Just a side note about OwnTone. OwnTone itself is quite easy to get. However, it might be difficult to get it run properly, mostly because, it requires avahi (Bonjour protocol) which in turn might require a specific network configuration. This is why Docker / Podman containers for OwnTone can be considered a bit unusual compared to other containerised applications.

Porco-Rosso commented 2 months ago

Just chiming in: I am running owntone in an LXC container under Proxmox. Didn't have to do any thing, using the default bridged network interface. Avahi installed, without any special work besides apt install.

marioscube commented 1 month ago

I today made a post about owntone not working with my homepod mini (airplay).

It used to work and the only thing I recently changed was this setting in the conf file: ipv6 = no to ipv6 = yes

Strangely enough is has worked (I think) but now it does not.

I reverted the setting to ipv6 = no and now it all seems to work again.

Ben-Sky commented 1 week ago

I close this issue. I will follow up later.