Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulseaudio: silence some warnings #2865

Merged
merged 1 commit into from
Aug 9, 2018
Merged

pulseaudio: silence some warnings #2865

merged 1 commit into from
Aug 9, 2018

Conversation

MilhouseVH
Copy link
Contributor

This change gets rid of the Running in system mode, ... flannel.

@lrusak, @5schatten - any concerns?

Before:

NUC:~ # journalctl -a  _SYSTEMD_UNIT=pulseaudio.service
-- Logs begin at Fri 2018-08-03 21:20:15 BST, end at Fri 2018-08-03 21:49:46 BST. --
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
Aug 03 21:20:16 NUC pulseaudio[289]: N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
Aug 03 21:20:16 NUC pulseaudio[289]: N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] main.c: Home directory of user 'root' is not '/var/run/pulse', ignoring.
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please make sure that you actually do want to do that.
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea.
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': No such file or directory
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.config/pulse/cookie': No such file or directory
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.pulse-cookie': No such file or directory
Aug 03 21:20:16 NUC pulseaudio[289]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.pulse-cookie': No such file or directory
Aug 03 21:20:16 NUC pulseaudio[289]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

After:

NUC:~ # journalctl -a  _SYSTEMD_UNIT=pulseaudio.service
-- Logs begin at Fri 2018-08-03 22:14:28 BST, end at Fri 2018-08-03 22:15:05 BST. --
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] main.c: Home directory of user 'root' is not '/var/run/pulse', ignoring.
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please make sure that you actually do want to do that.
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea.
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': No such file or directory
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.config/pulse/cookie': No such file or directory
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.pulse-cookie': No such file or directory
Aug 03 22:14:29 NUC pulseaudio[283]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.pulse-cookie': No such file or directory
Aug 03 22:14:29 NUC pulseaudio[283]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

@lrusak
Copy link
Member

lrusak commented Aug 3, 2018

do you really need --disallow-module-loading ?? otherwise it's ok from me (I like to load pulseaudio modules on the fly)

@MilhouseVH
Copy link
Contributor Author

OK, I've dropped --disable-module-loading - unfortunately there's no way to suppress the warning when in --system mode and allowing module loading (ie. --disable-module-loading=0 still produces the warning). Grrr. Oh well - now we have:

NUC:~ # journalctl -a  _SYSTEMD_UNIT=pulseaudio.service
-- Logs begin at Fri 2018-08-03 23:43:46 BST, end at Fri 2018-08-03 23:43:59 BST. --
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] main.c: Home directory of user 'root' is not '/var/run/pulse', ignoring.
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please make sure that you actually do want to do that.
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea.
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': No such file or directory
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.config/pulse/cookie': No such file or directory
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.pulse-cookie': No such file or directory
Aug 03 23:43:46 NUC pulseaudio[276]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.pulse-cookie': No such file or directory
Aug 03 23:43:46 NUC pulseaudio[276]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

@jernejsk jernejsk merged commit def481b into LibreELEC:master Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants