Bug 13856 - [pulseaudio] authkey.c: Failed to open cookie file '/home/root/.config/pulse/cookie': No such file or directory
Summary: [pulseaudio] authkey.c: Failed to open cookie file '/home/root/.config/pulse/...
Status: RESOLVED NOTABUG
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided minor
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-04-03 09:26 UTC by Changqing Li
Modified: 2020-04-07 09:42 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Changqing Li 2020-04-03 09:26:06 UTC
Reproduce steps:
1. add below info in local.conf
  DISTRO_FEATURES_append = " systemd pam"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
KERNEL_FEATURES_append = " cfg/systemd.scc"


INHERIT += 'testimage'
TEST_QEMUBOOT_TIMEOUT = "1500"

VIRTUAL-RUNTIME_syslog ?= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPLv3', 'sysklogd', 'rsyslog', d)}"
VIRTUAL-RUNTIME_base-utils-syslog ?= "${VIRTUAL-RUNTIME_syslog}"

2. bitbake core-image-sato
3. runqemu snapshot nographic  qemux86-64 core-image-sato
4. see /var/log/syslog


2020-04-03T08:59:36.832424+00:00 qemux86-64 Xserver[270]: libGL error: No driver found                            
2020-04-03T08:59:36.835378+00:00 qemux86-64 Xserver[270]: libGL error: failed to load driver: (null)            
2020-04-03T08:59:37.537104+00:00 qemux86-64 pulseaudio[299]: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
2020-04-03T08:59:37.793565+00:00 qemux86-64 pulseaudio[302]: [pulseaudio] authkey.c: Failed to open cookie file '/home/root/.config/pulse/cookie': No such file or directory
2020-04-03T08:59:37.806473+00:00 qemux86-64 pulseaudio[302]: [pulseaudio] authkey.c: Failed to load authentication key '/home/root/.config/pulse/cookie': No such file or director
2020-04-03T08:59:37.827497+00:00 qemux86-64 pulseaudio[302]: [pulseaudio] authkey.c: Failed to open cookie file '/home/root/.pulse-cookie': No such file or directory
2020-04-03T08:59:37.839533+00:00 qemux86-64 pulseaudio[302]: [pulseaudio] authkey.c: Failed to load authentication key '/home/root/.pulse-cookie': No such file or directory
2020-04-03T08:59:38.179747+00:00 qemux86-64 Xserver[259]: matchbox: Cant find a keycode for keysym 269025056
2020-04-03T08:59:38.191200+00:00 qemux86-64 Xserver[259]: matchbox: ignoring key shortcut XF86Calendar=!$contacts
2020-04-03T08:59:38.192520+00:00 qemux86-64 Xserver[259]: matchbox: Cant find a keycode for keysym 2809
2020-04-03T08:59:38.193610+00:00 qemux86-64 Xserver[259]: matchbox: ignoring key shortcut telephone=!$dates


More info:
the cookie seems in there:

root@qemux86-64:~# ls /home/root/.config/pulse/cookie
/home/root/.config/pulse/cookie
root@qemux86-64:~#
Comment 1 Changqing Li 2020-04-07 09:09:00 UTC
"Failed to open cookie file" these failure should be warning, and the cookie will be created later. But I am not famliure with pulseaudio, not sure if it is ok to report this warning
Comment 2 Changqing Li 2020-04-07 09:42:21 UTC
It should not a bug,  from the code
"/* Load an authentication cookie from file fn and store it in data. If
 * the cookie file doesn't exist, create it */
"

just a warning