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

[Problem]: shairport-sync looks for /run/shairport-sync which is not created #1908

Closed
1 of 2 tasks
pedromprado opened this issue Sep 20, 2024 · 2 comments
Closed
1 of 2 tasks

Comments

@pedromprado
Copy link

What happened?

I am trying to run shairport-sync through alsa's equal and getting an error (see log output). No sound is output as a result.
If I simply create /run/shairport-sync/ and allow writing to it, I no longer get this issue. I guess this dir should be created by shairport-sync when starting?

Relevant log output

pi@pi:~ $ journalctl -u shairport-sync -f
Sep 20 12:44:28 pi systemd[1]: Started shairport-sync.service - Shairport Sync - AirPlay Audio Receiver.
Sep 20 13:20:44 pi shairport-sync[1440]: Failed to open controls file:/run/shairport-sync/.alsaequal.bin.
Sep 20 13:20:44 pi shairport-sync[1440]: warning: The output device "equal" is busy and can't be used by Shairport Sync at present.

System Information.

Raspberry PI 4B+ with IQaudioDAC HiFi pcm512x-hifi-0

Configuration Information.

>> Display Config Start.

From "uname -a":
 Linux pi 6.6.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux

From /etc/os-release:
 Raspbian GNU/Linux 12 (bookworm)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi 4 Model B Rev 1.2

Shairport Sync Version String:
 4.3.4-1-g910264e5-AirPlay2-smi10-alac-OpenSSL-Avahi-ALSA-pa-pw-stdout-pipe-soxr-convolution-metadata-dbus-mpris-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
 alsa :
 {
   output_device = "equal";
   disable_standby_mode = "auto";
 };

>> 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
@mikebrady
Copy link
Owner

Thanks for the post.

It would seem that the /run/shairport-sync directory is a requirement of the ALSA equaliser. This has nothing to do with Shairport Sync.

Shairport Sync itself does not generally use or create a run directory, so I think the solution you adopted is the correct one.

@pedromprado
Copy link
Author

Thanks @mikebrady . That's interesting... I do understand it's ALSA who's using the equalizer, not shairport-sync. Funny that the log came from shairport-sync though, I assume it's a "feedback" it got from the ALSA subsystem...

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

No branches or pull requests

2 participants