Skip to content

[Problem]: Can't connect even though device is appearing on network #2169

@djchadderton

Description

@djchadderton

What happened?

I've installed Raspberry Pi OS Trixie light fresh on a Pi Zero with a RP DAC Pro attached and—I think—followed the instructions exactly for installing NQPTP and Shairport.

When I tested it just with the command shairport-sync, the device appeared on the network and I managed to play through it from my iPhone.

I installed it as a service and rebooted the Pi, and also installed Shairport Metadata Reader. After that, it stopped working—it still appears on the network and I can connect, but when I press 'play', after a pause of a few seconds it drops the connection and doesn't play anything.

Running systemctl status shairport-sync doesn't show any issues.

shairport-sync.service - Shairport Sync - AirPlay Audio Receiver
     Loaded: loaded (/usr/lib/systemd/system/shairport-sync.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/shairport-sync.service.d
             └─override.conf
     Active: active (running) since Sun 2026-03-15 12:25:49 GMT; 4s ago
 Invocation: e6efbcc846ed4a27a4ee9ab654a4b3ee
   Main PID: 1543 (shairport-sync)
      Tasks: 5 (limit: 176)
        CPU: 1.752s
     CGroup: /system.slice/shairport-sync.service
             └─1543 /usr/local/bin/shairport-sync --log-to-syslog

Mar 15 12:25:49 pi-dac systemd[1]: shairport-sync.service: Scheduled restart job, restart counter is at 1.
Mar 15 12:25:49 pi-dac systemd[1]: Started shairport-sync.service - Shairport Sync - AirPlay Audio Receiver.

However, shairport-sync -v --statistics includes the following:

         0.001201458 "rtsp.c:5316" unable to listen on IPv4 port 7000. The error is: "Address already in use".
         0.000105208 "rtsp.c:5316" unable to listen on IPv6 port 7000. The error is: "Address already in use".
         0.000020417 "rtsp.c:5579" *fatal error: could not establish a service on port 7000 -- program terminating. Is another instance of Shairport Sync running on this device?

No other instance is running. sudo ss -ltnp shows:

State     Recv-Q    Send-Q       Local Address:Port       Peer Address:Port   Process                                      
LISTEN    0         255                0.0.0.0:7000            0.0.0.0:*       users:(("shairport-sync",pid=1543,fd=3))    
LISTEN    0         128                0.0.0.0:22              0.0.0.0:*       users:(("sshd",pid=902,fd=6))               
LISTEN    0         255                   [::]:7000               [::]:*       users:(("shairport-sync",pid=1543,fd=4))    
LISTEN    0         128                   [::]:22                 [::]:*       users:(("sshd",pid=902,fd=7)) 

If I stop the shairport-sync service and use the shairport-sync command again now, when I try playing anything, I get the message:

fatal error: Unexpected SPS_FORMAT_* with index 52 while outputting silence

However, the --statistics log doesn't show the port error.

Relevant log output

0.000663438 "shairport.c:674" looking for configuration file at full path "/etc/shairport-sync.conf"
         0.014124163 "shairport.c:2623" Startup in AirPlay 2 mode, with features 0x405c4a00,0x1c340 on device "2c:cf:67:f5:29:13".
         0.000176562 "shairport.c:2662" Version String: "5.0.1-1-gdc4c334a-AirPlay2-smi10-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc"
         0.000022813 "shairport.c:2681" Command Line: "shairport-sync -v --statistics".
         0.000396614 "shairport.c:2725" audio backend is "alsa".
         0.000534896 "shairport.c:3013" disable_resend_requests is off.
         0.000035781 "shairport.c:3015" diagnostic_drop_packet_fraction is 0.000000. A value of 0.0 means no packets will be dropped deliberately.
         0.000021979 "shairport.c:3019" statistics_requester status is 1.
         0.000012709 "shairport.c:3024" rtsp listening port is 7000.
         0.000012135 "shairport.c:3025" udp base port is 6001.
         0.000012292 "shairport.c:3026" udp port range is 10.
         0.000012187 "shairport.c:3027" player name is "Pi-dac".
         0.000011979 "shairport.c:3028" run_this_before_play_begins action is "(null)".
         0.000012396 "shairport.c:3030" run_this_after_play_ends action is "(null)".
         0.000012031 "shairport.c:3031" wait-cmd status is 0.
         0.000011875 "shairport.c:3032" run_this_before_play_begins may return output is 0.
         0.000012292 "shairport.c:3034" run_this_if_an_unfixable_error_is_detected action is "(null)".
         0.000012813 "shairport.c:3036" run_this_before_entering_active_state action is  "(null)".
         0.000012500 "shairport.c:3038" run_this_after_exiting_active_state action is  "(null)".
         0.000012135 "shairport.c:3040" active_state_timeout is  10.000000 seconds.
         0.000016719 "shairport.c:3041" mdns backend "(null)".
         0.000012135 "shairport.c:3043" interpolation setting is "auto".
         0.000012240 "shairport.c:3048" interpolation soxr_delay_threshold is 30000000.
         0.000012604 "shairport.c:3050" resync time is 0.050000 seconds.
         0.000042448 "shairport.c:3051" allow a classic AirPlay session to be interrupted: "no".
         0.000015156 "shairport.c:3053" busy timeout time is 60.
         0.000018333 "shairport.c:3054" drift tolerance is 0.002000 seconds.
         0.000052396 "shairport.c:3055" password is "(null)".
         0.000045833 "shairport.c:3056" default airplay volume is: -24.000000.
         0.000062553 "shairport.c:3057" ignore_volume_control is 0.
         0.000046562 "shairport.c:3061" volume_max_db is not set
         0.000044740 "shairport.c:3062" volume range in dB (zero means use the range specified by the mixer): 0.
         0.000045729 "shairport.c:3065" volume_range_combined_hardware_priority (1 means hardware mixer attenuation is used first) is 0.
         0.000069062 "shairport.c:3069" playback_mode is 0 (0-stereo, 1-mono, 1-reverse_stereo, 2-both_left, 3-both_right).
         0.000046250 "shairport.c:3072" disable_synchronization is 0.
         0.000044792 "shairport.c:3073" use_mmap_if_available is 0.
         0.000073698 "shairport.c:3074" output_format automatic selection is enabled.
         0.000045833 "shairport.c:3079" output_rate automatic selection is enabled.
         0.000099479 "shairport.c:3083" audio backend desired buffer length is 0.200000 seconds.
         0.000115677 "shairport.c:3085" audio_backend_buffer_interpolation_threshold_in_seconds is 0.060000 seconds.
         0.000047917 "shairport.c:3088" audio backend latency offset is 0.000000 seconds.
         0.000046562 "shairport.c:3091" audio backend silence lead-in time is "auto".
         0.000054532 "shairport.c:3095" zeroconf regtype is "_raop._tcp".
         0.000045677 "shairport.c:3096" decoders_supported bit field is 4 (1 == hammerton, 2 == apple, 4 == ffmpeg).
         0.000045885 "shairport.c:3099" decoder_in_use is 4.
         0.000045938 "shairport.c:3100" alsa_use_hardware_mute is 0.
         0.000054531 "shairport.c:3104" no special mdns service interface was requested.
         0.000109739 "shairport.c:3107" configuration file name "/etc/shairport-sync.conf" resolves to "/etc/shairport-sync.conf".
         0.000074532 "shairport.c:3151" loudness_enabled is false.
         0.000058020 "shairport.c:3153" loudness reference level is -16.000000
         0.001554688 "shairport.c:3316" NQPTP is online.
         0.001201458 "rtsp.c:5316" unable to listen on IPv4 port 7000. The error is: "Address already in use".
         0.000105208 "rtsp.c:5316" unable to listen on IPv6 port 7000. The error is: "Address already in use".
         0.000020417 "rtsp.c:5579" *fatal error: could not establish a service on port 7000 -- program terminating. Is another instance of Shairport Sync running on this device?
         1.501666409 "shairport.c:281" "soxr" interpolation has been chosen.
         0.000496041 "shairport.c:1997" normal exit

System Information.

Raspberry Pi Zero 2W
Raspberry Pi DAC Pro

Configuration Information.

>> Display Config Start.

From "uname -a":
 Linux pi-dac 6.12.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.62-1+rpt1 (2025-12-18) aarch64 GNU/Linux

From /etc/os-release:
 Debian GNU/Linux 13 (trixie)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi Zero 2 W Rev 1.0

Shairport Sync Version String:
 5.0.1-1-gdc4c334a-AirPlay2-smi10-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

The Configuration file contains no active settings.

>> Display Config End.
>> Goodbye!

PulseAudio or PipeWire installed?

  • Check if your system uses a Sound Server.

How did you install Shairport Sync?

Built from source

Check previous issues

  • Confirm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions