You are not logged in.

#1 2016-12-31 12:05:46

_pheinrich_
Member
Registered: 2014-05-26
Posts: 53

Pulseaudio System Mode Connection refused

Hi,

I need to run my pulseaudio server in system mode on my headless server. I have added a systemd configuration file and the pulseaudio server is running.

[pheinrich@ARCH_MEDIA Music]$ ps aux | grep pulse
pulse      842  0.0  0.2 348888 11396 ?        S<sl 12:47   0:00 /usr/bin/pulseaudio --system --disallow-exit --disallow-module-loading

The goups of the user 'pheinrich' are

wheel pulse-access pheinrich samba smb_admin share pulse

So the required groups pulse and pulse-access are present.

I have added an alias to control the pulseaudio server

alias pacmd='sudo PULSE_RUNTIME_PATH=/var/run/pulse -u pulse pacmd'

I have checked the sinks and all seems to be fine.

Now if I try to play something via cvlc I get the following outpout

[pheinrich@ARCH_MEDIA Music]$ LC_ALL=C cvlc Sia\ -\ Chandelier.mp3 
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[00000000010ce1f8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0000000001134958] dummy interface: using the dummy interface module...
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM sysdefault
[00000000010ce1f8] alsa audio output error: cannot open ALSA device "default": No such file or directory
[00000000010ce1f8] core audio output error: Audio output failed
[00000000010ce1f8] core audio output error: The audio device "default" could not be used:
No such file or directory.
[00000000010ce1f8] core audio output error: module not functional
[00007fad28c049d8] core decoder error: failed to create audio output

Offline

#2 2016-12-31 23:42:21

0strodamus
Member
Registered: 2014-01-22
Posts: 92

Re: Pulseaudio System Mode Connection refused

I noticed that in /etc/dbus-1/system.d/pulseaudio-system.conf there is a comment "System-wide PulseAudio runs as 'pulse' user." Did you try creating a pulse user?
EDIT: Never mind. Thanks Rasi.

Last edited by 0strodamus (2017-01-02 23:58:29)


archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

Offline

#3 2017-01-02 04:12:21

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Pulseaudio System Mode Connection refused

0strodamus wrote:

I noticed that in /etc/dbus-1/system.d/pulseaudio-system.conf there is a comment "System-wide PulseAudio runs as 'pulse' user." Did you try creating a pulse user?

[pheinrich@ARCH_MEDIA Music]$ ps aux | grep pulse
pulse      842  0.0  0.2 348888 11396 ?        S<sl 12:47   0:00 /usr/bin/pulseaudio --system --disallow-exit --disallow-module-loading

He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB