[pulseaudio-discuss] PulseAudio server connection failure: Connection refused
alexander.fieroch at mpi-dortmund.mpg.de
Fri Jul 19 08:52:18 UTC 2019
I'm running a Rasperry Pi with squeezelite using pulseaudio as
unattended radio station.
I'd like to let cron play a file at a special time of day and mixing it
with the already playing stream.
Unfortunately I cannot connect to the pulseaudio server while it is
already playing and an additional sound file is not played.
The user "radio" is in group "pulse-access" and starts pulseaudio with
$ ps aux | grep pulse
radio 665 8.6 2.0 716220 19132 ? S<sl Jul17 272:13
radio 786 6.3 1.9 390488 18596 ? Ssl Jul17 200:53
/usr/bin/squeezelite -o pulse -n radiopi -z -a 16
Using ssh (user radio) to this remote Raspberry Pi radio station and
trying to play a file I get
radio at radiopi:~ $ cvlc --play-and-exit
VLC media player 3.0.7 Vetinari (revision 3.0.7-0-g86cee31099)
 vlcpulse audio output error: PulseAudio server connection
failure: Connection refused
[00555db0] dbus interface error: Failed to connect to the D-Bus session
daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00555db0] main interface error: no suitable interface module
[004c8b70] main libvlc error: interface "dbus,none" initialization failed
 main interface error: no suitable interface module
[004c8b70] main libvlc error: interface "globalhotkeys,none"
 dummy interface: using the dummy interface module...
[005274c8] main playlist: end of playlist, exiting
Same with paplay:
$ paplay /usr/share/sounds/alsa/Front_Center.wav
Connection failure: Connection refused
How can I play additional files and to mix these streams?
Why is the connection refused although I am the same user?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5184 bytes
Desc: S/MIME Cryptographic Signature
More information about the pulseaudio-discuss