mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.2k stars 571 forks source link

[Problem]: Doesn't work on iOS 4.2.1 #1671

Closed Diacius closed 1 year ago

Diacius commented 1 year ago

What happened?

When, trying to airplay to shairport on an iPod Touch 2nd Generation running iOS 4.2.1, it looks like it has connected and then the audio output just returns to the device with no error message.

If I remember correctly, with shairport-sync I had previously used this device and it worked perfectly, I assume that iOS 4 is so old that the AirPlay protocol has changed enough for it not to work.

Is this a known issue? This isn't a massive issue for me as I have newer devices I could use and obviously my hardware choices are quite rare lol ๐Ÿ˜….

Relevant log output

Apr 29 16:18:12 endeavour systemd[1]: Started Shairport Sync - AirPlay Audio Receiver.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.005956898 "shairport.c:1729" Started!
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.005619903 "shairport.c:1756" software version: "3.3.7-libdaemon-OpenSSL-Avahi-ALSA-jack-p>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000194996 "shairport.c:1762" log verbosity is 3.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000114998 "audio_alsa.c:998" alsa: init() -- alsa_backend_state => abm_disconnected.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000108999 "audio_alsa.c:1015" alsa: alsa_maximum_stall_time of 0.200000 sec.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000308994 "audio_alsa.c:1299" alsa: disable_standby_mode is "never".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000105998 "audio_alsa.c:1303" alsa: disable_standby_mode_silence_threshold is 0.040000 se>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000109999 "audio_alsa.c:1305" alsa: disable_standby_mode_silence_scan_interval is 0.00400>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000166997 "audio_alsa.c:1345" alsa: output device name is "default".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000780986 "shairport.c:1777" The processor is running little-endian.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000180997 "shairport.c:1810" disable resend requests is off.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000111998 "shairport.c:1811" diagnostic_drop_packet_fraction is 0.000000. A value of 0.0 >
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000110998 "shairport.c:1815" statistics_requester status is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000113998 "shairport.c:1817" daemon status is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000106998 "shairport.c:1818" daemon pid file path is "/run/shairport-sync/shairport-sync.>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000089999 "shairport.c:1820" rtsp listening port is 5000.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000094998 "shairport.c:1821" udp base port is 6001.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000106998 "shairport.c:1822" udp port range is 10.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000095999 "shairport.c:1823" player name is "Sideboard Speaker".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000092998 "shairport.c:1824" backend is "alsa".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000090999 "shairport.c:1825" run_this_before_play_begins action is "(null)".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000102998 "shairport.c:1826" run_this_after_play_ends action is "(null)".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000096998 "shairport.c:1827" wait-cmd status is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000096998 "shairport.c:1828" run_this_before_play_begins may return output is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000093999 "shairport.c:1829" run_this_if_an_unfixable_error_is_detected action is "(null)>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000105998 "shairport.c:1830" run_this_before_entering_active_state action is  "(null)".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000099998 "shairport.c:1831" run_this_after_exiting_active_state action is  "(null)".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000095999 "shairport.c:1832" active_state_timeout is  10.000000 seconds.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000108998 "shairport.c:1833" mdns backend "(null)".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000102998 "shairport.c:1834" userSuppliedLatency is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000096998 "shairport.c:1835" interpolation setting is "auto".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000097999 "shairport.c:1838" interpolation soxr_delay_threshold is 30.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000092998 "shairport.c:1839" resync time is 0.050000 seconds.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000115998 "shairport.c:1840" allow a session to be interrupted: 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000097998 "shairport.c:1841" busy timeout time is 120.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000090999 "shairport.c:1842" drift tolerance is 0.001995 seconds.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000100998 "shairport.c:1843" password is "(null)".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000103998 "shairport.c:1844" ignore_volume_control is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000096999 "shairport.c:1848" volume_max_db is not set
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000090998 "shairport.c:1849" volume range in dB (zero means use the range specified by th>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000094998 "shairport.c:1851" volume_range_combined_hardware_priority (1 means hardware mi>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000106999 "shairport.c:1855" playback_mode is 0 (0-stereo, 1-mono, 1-reverse_stereo, 2-bo>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000106998 "shairport.c:1857" disable_synchronization is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000096998 "shairport.c:1858" use_mmap_if_available is 1.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000090998 "shairport.c:1859" output_format automatic selection is enabled.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000104999 "shairport.c:1863" output_rate automatic selection is enabled.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000097998 "shairport.c:1867" audio backend desired buffer length is 0.200000 seconds.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000099998 "shairport.c:1869" audio_backend_buffer_interpolation_threshold_in_seconds is 0>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000098998 "shairport.c:1871" audio backend latency offset is 0.000000 seconds.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000108999 "shairport.c:1873" audio backend silence lead-in time is "auto".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000094998 "shairport.c:1877" zeroconf regtype is "_raop._tcp".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000094998 "shairport.c:1878" decoders_supported field is 1.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000093999 "shairport.c:1879" use_apple_decoder is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000109998 "shairport.c:1880" alsa_use_hardware_mute is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000097998 "shairport.c:1884" no special mdns service interface was requested.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000186997 "shairport.c:1887" configuration file name "/etc/shairport-sync.conf" resolves >
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000124998 "shairport.c:1894" metadata enabled is 1.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000117998 "shairport.c:1895" metadata pipename is "/tmp/shairport-sync-metadata".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000124998 "shairport.c:1896" metadata socket address is "(null)" port 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000098998 "shairport.c:1898" metadata socket packet size is "500".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000090998 "shairport.c:1899" get-coverart is 1.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000108998 "shairport.c:1902" mqtt is enabled.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000097999 "shairport.c:1903" mqtt hostname is fredrick.local, port is 1883.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000107998 "shairport.c:1904" mqtt topic is sideboard-speaker.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000099998 "shairport.c:1905" mqtt will not publish raw metadata.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000106998 "shairport.c:1906" mqtt will publish parsed metadata.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000096999 "shairport.c:1907" mqtt will publish cover Art.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000092998 "shairport.c:1908" mqtt remote control is enabled.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000094998 "shairport.c:1912" convolution is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000107999 "shairport.c:1913" convolution IR file is "(null)"
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000092998 "shairport.c:1914" convolution max length 8192
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000095998 "shairport.c:1915" convolution gain is 0.000000
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000098999 "shairport.c:1917" loudness is 0.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000104998 "shairport.c:1918" loudness reference level is -20.000000
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000952983 "rtsp.c:1665" metadata pipe name is "/tmp/shairport-sync-metadata".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.018551681 "audio_alsa.c:1943" keep_dac_busy is now "no"
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.007694867 "rtsp.c:158" Creating metadata queue "pipe".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.019063672 "rtsp.c:158" Creating metadata queue "multicast".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000600989 "rtsp.c:158" Creating metadata queue "hub".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000322995 "rtsp.c:158" Creating metadata queue "mqtt".
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.049071154 "mqtt.c:191" Initialising MQTT
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.132446718 "mqtt.c:27" Client Sideboard Speaker sending CONNECT
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.012738781 "mqtt.c:27" Client Sideboard Speaker received CONNACK (0)
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000254995 "mqtt.c:83" [MQTT]: connected
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000192997 "mqtt.c:27" Client Sideboard Speaker sending SUBSCRIBE (Mid: 1, Topic: sideboar>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.042403270 "mqtt.c:27" Client Sideboard Speaker received SUBACK
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.101227256 "dbus-service.c:548" >> setting loudness threshold to -20.000000.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.024699574 "dbus-service.c:561" >> setting drift tolerance to 0.001995 seconds
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.002991948 "dbus-service.c:909" >> ALACDecoder set to "hammerton"
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.007310874 "dbus-service.c:914" >> Active set to "false"
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.003654937 "dbus-service.c:919" >> disable standby mode set to "off"
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000398994 "dbus-service.c:940" >> interpolation set to "auto" (soxr support built in)
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000382993 "dbus-service.c:456" >> deactivating disable standby
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000261995 "dbus-service.c:538" >> deactivating loudness
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000242996 "dbus-service.c:472" >> deactivating convolution
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000590990 "dbus-service.c:441" >> log verbosity set to 3.
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000273995 "dbus-service.c:428" >> stop logging statistics
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000245996 "dbus-service.c:390" >> stop including elapsed time in logs
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000267995 "dbus-service.c:400" >> start including delta time in logs
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000278996 "dbus-service.c:413" >> start including file and line in logs
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.001048982 "mdns_avahi.c:209" avahi: service '9E2D6A0FA417@Sideboard Speaker' group is not>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.036379373 "mdns_avahi.c:244" avahi: request to add "_raop._tcp" service with metadata
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.030472475 "mdns_avahi.c:375" avahi_dacp_monitor_start Avahi DACP monitor successfully sta>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.000686988 "dbus-service.c:1045" Shairport Sync native D-Bus service started at "org.gnome>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.010177825 "mdns_avahi.c:213" avahi: service '9E2D6A0FA417@Sideboard Speaker' group is reg>
Apr 29 16:18:13 endeavour shairport-sync[2860]:          0.024312581 "mpris-service.c:341" MPRIS service started at "org.mpris.MediaPlayer2.Shairpor>
Apr 29 16:18:14 endeavour shairport-sync[2860]:          0.872473976 "mdns_avahi.c:180" avahi: service '9E2D6A0FA417@Sideboard Speaker' successfully>
Apr 29 16:18:14 endeavour shairport-sync[2860]:          0.126541822 "shairport.c:194" soxr_delay_index: 69.
Apr 29 16:18:14 endeavour shairport-sync[2860]:          0.002928949 "shairport.c:200" "basic" interpolation has been chosen.

Configuration Information.

uname -a : Linux endeavour 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux

shairport-sync -V : 3.3.7-libdaemon-OpenSSL-Avahi-ALSA-jack-pa-dummy-stdout-pipe-soxr-convolution-metadata-mqtt-dbus-mpris-sysconfdir:/etc

How did you install Shairport Sync?

A package manager (apt, apt install, yum, pkg, etc.)

Check previous issues

ghost commented 1 year ago

iOS 4.2.1 ๐Ÿ™ˆ๐Ÿ˜‰ It is a long time ago ๐Ÿ™‚

mikebrady commented 1 year ago

Thanks for the post. iOS 4.2.1 was indeed a long time ago.

However, I don't see any sign in the logs that an output device connected to Shairport Sync. It appears that MQTT did something, but there is no sign of any connection.

Diacius commented 1 year ago

Thatโ€™s odd! I know shairport-sync used to work with this device, but to be honest, I only made this issue because I was curious if there was a known reason this doesnโ€™t work, I might try with some of my devices running iOS 9 and 12 to see if they work

mikebrady commented 1 year ago

Thanks, yeah, it would be interesting to know alright...

github-actions[bot] commented 1 year ago

This issue has been inactive for 45 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.