Bug 981840 - pulseaudio fails to open cookie and authorization file to missing directory.
Summary: pulseaudio fails to open cookie and authorization file to missing directory.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 19
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: 2013-07-06 08:01 UTC by Marcel Metz
Modified: 2019-05-31 19:06 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-17 15:53:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marcel Metz 2013-07-06 08:01:39 UTC
Description of problem:
When pulseaudio starts it's trying to read the files
~/.config/pulse/cookie reporting via journalctl:

[pulseaudio] authkey.c: Failed to load authorization key '/home/<username>/.config/pulse/cookie': No such file or directory
[pulseaudio] authkey.c: Failed to load authorization key '/home/<username>/.config/pulse/cookie': No such file or directory
[pulseaudio] authkey.c: Failed to open cookie file '/home/<username>/.config/pulse/cookie': No such file or directory
[pulseaudio] authkey.c: Failed to open cookie file '/home/<username>/.config/pulse/cookie': No such file or directory

It seems like pulseaudio doesn't create the required `pulse` directory within the XDG_CONFIG_HOME tree by itself when the directory doesn't exist.

Version-Release number of selected component (if applicable):
3.0-10.fc19.x86_64

How reproducible:
Delete the `pulse` directory within $XDG_CONFIG_HOME of a user. Log in as said user. Check if journalctl does report the log message above.

Expected results:
No warning should be written in the system log.

Comment 1 Mike Lieman 2013-07-28 19:03:30 UTC
Same issue following a fedup fedora 18 -> fedora 19 upgrade:

$ start-pulseaudio-x11 
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/mike/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authorization key '/home/mike/.config/pulse/cookie': No such file or directory
E: [pulseaudio] main.c: Daemon startup failed.

Comment 2 Steven Ellis 2013-07-28 23:37:15 UTC
I had the same issue

Created directory .config/pulse and I now get a new error

journalctl --since=today |grep pulseaudio

Jul 29 11:18:39 t410s pulseaudio[5547]: [pulseaudio] module.c: Failed to open module "module-cork-music-on-phone": file not found
Jul 29 11:18:39 t410s pulseaudio[5547]: [pulseaudio] main.c: Module load failed.
Jul 29 11:18:39 t410s pulseaudio[5547]: [pulseaudio] main.c: Failed to initialize daemon.


Looks like my personal default.pa file had an error

Changed module-cork-music-on-phone to module-role-cork and re-ran
 - /usr/bin/start-pulseaudio-x11

Pulse is now working

Comment 3 Fedora End Of Life 2015-01-09 18:42:24 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

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 19 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.

Comment 4 Fedora End Of Life 2015-02-17 15:53:53 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 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.

Comment 5 RobbieTheK 2019-05-31 19:06:33 UTC
Could these logs be related?
May 31 11:58:28 ll612-04 pulseaudio[2900]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.AccessDenied: Sender is not authorized to send message
May 31 12:01:08 ll612-04 systemd[2889]: pulseaudio.service: Succeeded.
May 31 12:01:10 ll612-04 pulseaudio[4226]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/lib/gdm/.config/pulse/cookie': No such file or directory
May 31 12:01:10 ll612-04 pulseaudio[4226]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/lib/gdm/.config/pulse/cookie': No such file or directory
May 31 12:01:10 ll612-04 pulseaudio[4226]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/lib/gdm/.pulse-cookie': No such file or directory
May 31 12:01:10 ll612-04 pulseaudio[4226]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/lib/gdm/.pulse-cookie': No such file or directory

5.0.17-300.fc30.x86_64


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