Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

owntone breaks RPiPlay #337

Open
frankusb opened this issue Apr 3, 2022 · 3 comments
Open

owntone breaks RPiPlay #337

frankusb opened this issue Apr 3, 2022 · 3 comments

Comments

@frankusb
Copy link

frankusb commented Apr 3, 2022

If I have owntone running, which has support for Airplay devices, rpiplay will not allow connections. On startup I get:

pi@raspberrypi:~ $ /usr/local/bin/rpiplay -d
stream info: channel = 2 sample_rate = 44100 frame_size = 480 aot = 39 bitrate = 0
Initialized server socket(s)
*** WARNING *** The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
Accepted IPv4 client on socket 15
Local: 192.168.1.169
Remote: 192.168.1.88
httpd receiving on socket 15
Connection closed for socket 15
Destroying connection

192.168.1.88 is running the owntone server.

If I stop owntone before running rpiplay, then connections work normally.

pi@raspberrypi:~ $ /usr/local/bin/rpiplay -d
stream info: channel = 2 sample_rate = 44100 frame_size = 480 aot = 39 bitrate = 0
Initialized server socket(s)
*** WARNING *** The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
Accepted IPv4 client on socket 15
Local: 192.168.1.169
Remote: 192.168.1.106
httpd receiving on socket 15
conn_request
Handling request GET with URL /info
INFO len = -1288718124
httpd receiving on socket 15
conn_request
Handling request POST with URL /pair-setup
httpd receiving on socket 15
conn_request
Handling request POST with URL /pair-verify
httpd receiving on socket 15
conn_request
Handling request POST with URL /pair-verify
httpd receiving on socket 15
conn_request
Handling request POST with URL /fp-setup
httpd receiving on socket 15
conn_request
Handling request POST with URL /fp-setup
httpd receiving on socket 15
conn_request
Handling request SETUP with URL rtsp://192.168.1.169/3534893432778148038
DACP-ID: 409FA59793145CC1
Active-Remote: 499953737
....

@frankusb
Copy link
Author

frankusb commented Apr 3, 2022

The owntone log shows:

[2022-04-02 20:27:19] [ LOG] raop: No response from 'RPiPlay' (192.168.1.169) to OPTIONS request
[2022-04-02 20:27:19] [ LOG] player: The AirPlay 1 device 'RPiPlay' failed to activate

@frankusb
Copy link
Author

frankusb commented Apr 4, 2022

Owntone can be modified to not try to connect to every airplay device it sees and doing this does allow other devices to connect. See issue 1440. But if owntone tries to connect, it fails and the RPiPlay will no longer accept connections.

@frankusb frankusb changed the title owntone owntone breaks RPiPlay Apr 4, 2022
@frankusb
Copy link
Author

frankusb commented Apr 5, 2022

Owntone is a red herring. Basically, rpiplay allows one connection then subsequent connections fail. I've tried both buster and bullseye light on a Raspberry Pi Zero W.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant