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.
please report upstream if you are able, https://bugs.freedesktop.org/enter_bug.cgi?product=PulseAudio
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.
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.
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
(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.
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.