Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1599265 - Pulseaudio refuses connections from applications
Summary: Pulseaudio refuses connections from applications
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-09 11:11 UTC by Lukas Ruzicka
Modified: 2018-11-03 16:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Lukas Ruzicka 2018-07-09 11:11:24 UTC
Description of problem:
===========================

On Fedora 28 (updates-testing on) in Fluxbox, whenever the computer is freshly started, pulseaudio refuses to connect applications which results in no sound available. The daemon is running.

The journal reports the following:
====
Jul 09 12:52:10 platypus rtkit-daemon[1101]: Successfully made thread 2069 of process 2069 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 09 12:52:10 platypus pulseaudio[2069]: bind(): Address already in use
Jul 09 12:52:10 platypus pulseaudio[2069]: Failed to load module "module-native-protocol-unix" (argument: ""): initialization failed.
Jul 09 12:52:10 platypus pulseaudio[2069]: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
Jul 09 12:52:10 platypus rtkit-daemon[1101]: Successfully made thread 2074 of process 2074 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 09 12:52:10 platypus pulseaudio[2074]: E: [pulseaudio] pid.c: Daemon already running.
Jul 09 12:52:10 platypus pulseaudio[2074]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Jul 09 12:52:10 platypus rtkit-daemon[1101]: Successfully made thread 2087 of process 2087 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 09 12:52:10 platypus pulseaudio[2087]: E: [pulseaudio] pid.c: Daemon already running.
Jul 09 12:52:10 platypus pulseaudio[2087]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 12:52:10 platypus systemd[1924]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
Jul 09 12:52:11 platypus rtkit-daemon[1101]: Successfully made thread 2090 of process 2090 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 09 12:52:11 platypus pulseaudio[2090]: E: [pulseaudio] pid.c: Daemon already running.
Jul 09 12:52:11 platypus pulseaudio[2090]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
Jul 09 12:52:11 platypus rtkit-daemon[1101]: Successfully made thread 2126 of process 2126 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 09 12:52:11 platypus pulseaudio[2126]: E: [pulseaudio] pid.c: Daemon already running.
Jul 09 12:52:11 platypus pulseaudio[2126]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Scheduled restart job, restart counter is at 4.
Jul 09 12:52:11 platypus rtkit-daemon[1101]: Successfully made thread 2166 of process 2166 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 09 12:52:11 platypus pulseaudio[2166]: E: [pulseaudio] pid.c: Daemon already running.
Jul 09 12:52:11 platypus pulseaudio[2166]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Start request repeated too quickly.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 12:52:11 platypus systemd[1924]: pulseaudio.socket: Failed with result 'service-start-limit-hit'.
====

When I start firefox in console mode and try to play a video with sound:
=====
[Child 2768, MediaPlayback #2] WARNING: 7f294cac47c0 OpenCubeb() failed to init cubeb: file /builddir/build/BUILD/firefox-61.0/dom/media/AudioStream.cpp, line 390
[Child 2768, MediaPlayback #2] WARNING: Decoder=7f294c31a880 [OnMediaSinkAudioError]: file /builddir/build/BUILD/firefox-61.0/dom/media/MediaDecoderStateMachine.cpp, line 3716

###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
=====

Mplayer reports this:
=====
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO_ALSA] Playback open error: Connection refused
Failed to initialize audio driver 'alsa'
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO_ALSA] Playback open error: Connection refused
AO: [pulse] Init failed: Connection refused
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
=====

alsamixer:
====
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

cannot open mixer: Connection refused
====

pavucontrol:
====
Establishing connection to PulseAudio. Please wait.
====

Version-Release number of selected component (if applicable):
===============================================================

pulseaudio-12.0-3.fc28.x86_64
on Linux platypus 4.17.4-200.fc28.x86_64 #1 SMP Tue Jul 3 14:06:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
===========================

Always

Steps to Reproduce:
===========================
1. Reboot the computer.
2. Log into a Fluxbox session.
3. Try to play songs.

Actual results:
===========================

Pulseaudio refuses connections.

Expected results:

Pulseaudio connects applications to the device and play sounds.

Additional info:
===========================

1. In Gnome shell, pulseaudio behaves correctly.
2. Running pulseaudio -k and pulseaudio -D solves the situation and pulseaudio behaves correctly until next reboot.

Comment 1 Rex Dieter 2018-07-11 19:34:04 UTC
please report upstream if you are able,
https://bugs.freedesktop.org/enter_bug.cgi?product=PulseAudio

Comment 2 David H. Gutteridge 2018-07-11 23:09:42 UTC
FWIW, I can't reproduce this with fluxbox-1.3.7-3, pulseaudio-12.0-3, and kernel-4.17.4 on Fedora 27. Audio works fine for me in Firefox immediately after boot. I can try duplicating in Fedora 28 if that's of use, to try to narrow this down.

Comment 3 Lukas Ruzicka 2018-07-12 13:12:55 UTC
Hello, when I downgrade to version 11... of pulseaudio using "dnf downgrade pulseaudio", the problem goes away. It must be something in the 12... version.

Comment 4 David H. Gutteridge 2018-07-21 05:52:33 UTC
I just tried to reproduce this on Fedora 28 with fluxbox-1.3.7-4, kernel-4.17.7-200, and pulseaudio-12.2-1 and I couldn't. Audio works fine for me in Firefox immediately after boot. Could there be something different in our configurations or installed plugins that prevents me from duplicating?

I have installed:

pulseaudio
pulseaudio-libs
pulseaudio-libs-glib2
pulseaudio-module-bluetooth
pulseaudio-module-gconf
pulseaudio-module-x11
pulseaudio-utils

Comment 5 Mark 2018-11-03 15:29:54 UTC
(In reply to Lukas Ruzicka from comment #3)
> Hello, when I downgrade to version 11... of pulseaudio using "dnf downgrade
> pulseaudio", the problem goes away. It must be something in the 12...
> version.

Same problem here with the current pulseaudio on fluxbox; thanks for mentioning the downgrade option, as that brought my sound back for now.  If anyone is willing to help me troubleshoot, I'm willing re-upgrade here and answer questions as well as I'm able.


Note You need to log in before you can comment on or make changes to this bug.