[Bug 724610] New: systemd: why is kmsg polluted?
https://bugzilla.novell.com/show_bug.cgi?id=724610 https://bugzilla.novell.com/show_bug.cgi?id=724610#c0 Summary: systemd: why is kmsg polluted? Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: fcrozat@suse.com ReportedBy: jslaby@suse.com QAContact: qa@suse.de Blocks: 696902 Found By: --- Blocker: --- I configured systemd in /etc/systemd/system.conf as: [Manager] LogTarget=syslog because I really don't want to have a dbus mess in _kernel_ logs. Anyway who came up with such a "great" idea? But I still have tons of debug mess in the kernel log. Excerpt from dmesg follows: [ 12.754874] modprobe[2464]: FATAL: Could not load /lib/modules/3.1.0-rc9-next-20111014_64+/modules.dep: No such file or directory [ 12.764052] modprobe[2466]: FATAL: Could not load /lib/modules/3.1.0-rc9-next-20111014_64+/modules.dep: No such file or directory [ 12.769801] systemd-logind[1490]: New user root logged in. [ 12.772203] systemd-logind[1490]: New session c1 of user root. [ 12.796498] systemd[1]: Cannot add dependency job for unit hwclock-load.service, ignoring: Unit hwclock-load.service failed to load: No such file or directory. See system logs and 'systemctl status hwclock-load.service' for details. [ 12.806567] dbus[1519]: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service' [ 12.820190] dbus-daemon[1519]: dbus[1519]: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service' [ 12.823359] systemd[1]: Cannot add dependency job for unit hwclock-load.service, ignoring: Unit hwclock-load.service failed to load: No such file or directory. See system logs and 'systemctl status hwclock-load.service' for details. [ 12.880309] console-kit-daemon[2467]: missing action [ 12.890054] dbus[1519]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper) [ 12.894779] dbus-daemon[1519]: dbus[1519]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper) [ 12.915240] dbus-daemon[1519]: Entering main event loop [ 12.919654] dbus-daemon[1519]: Connected to the system bus [ 12.928859] dbus-daemon[1519]: Registering null backend at priority -10 [ 12.932129] dbus-daemon[1519]: ** (polkitd:2534): WARNING **: Error getting enumerator for /etc/polkit-1/localauthority: No such file or directory [ 12.938772] dbus-daemon[1519]: ** (polkitd:2534): DEBUG: Added `/var/lib/polkit-1/localauthority/10-vendor.d' as a local authorization store I have systemd-37-2.1.x86_64. I also tried systemd.log_target=syslog. But it resulted in the same behavior. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c1
--- Comment #1 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c2
--- Comment #2 from Jiri Slaby
could you try on kernel cmdline : systemd.default_standard_output=syslog
Still the same: dmesg|grep dbus|tail -1 [ 13.471948] dbus-daemon[1544]: dbus[1544]: [system] Successfully activated service 'org.freedesktop.ConsoleKit' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c3
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c4
--- Comment #4 from Jiri Slaby
Strangely here I didn't have any dbus message in dmesg output just some systemd
Yes, even those are there. I want to get rid of them *all* by: [Manager] LogTarget=syslog .. but it doesn't have any effect. Neither the kernel boot parameters. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c5
--- Comment #5 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c6
--- Comment #6 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c7
--- Comment #7 from Jiri Slaby
which syslog implementation are you using ?
rsyslog. But: # /etc/init.d/syslog status syslog.service - System Logging Service Loaded: error (Reason: Invalid argument) Active: inactive (dead) CGroup: name=systemd:/system/syslog.service # systemctl status syslog.service syslog.service - System Logging Service Loaded: error (Reason: Invalid argument) Active: inactive (dead) CGroup: name=systemd:/system/syslog.service # systemctl status rsyslog.service rsyslog.service Loaded: error (Reason: No such file or directory) Active: inactive (dead) # ps aux|grep rsyslog root 3079 0.0 0.0 6792 868 ttyS0 S+ 15:02 0:00 grep rsyslog I have no idea what is going on... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c8
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c9
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c10
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c11
--- Comment #11 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c12
Jiri Slaby
Hmm... could it be that there were no syslog daemon installed for a while? e.g. because all daemons has been uninstalled (with breaking deps?)
No, I found what probably causes that. A kernel without initrd. I'm using a monolith without any modules. When I boot that kernel everything breaks. This is in a virtual machine. The weird thing is I don't see it on the host as it runs the very same system (factory with this monolith). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c13
--- Comment #13 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c14
--- Comment #14 from Jiri Slaby
Please have a look at /run/systemd/syslog.core this is the core file which will be included by /lib/systemd/system/syslog.service
It contains this: ExecStart=/sbin/rsyslogd -c 5 -f /etc/rsyslog.early.conf ExecReload=/sbin/killproc -p /var/run/rsyslogd.pid -HUP /sbin/rsyslogd But with initrd I see this: [Service] Type=forking PIDFile=/var/run/rsyslogd.pid Sockets=syslog.socket StandardOutput=null ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service ExecStartPre=-/var/run/rsyslog/addsockets ExecStart=/sbin/rsyslogd -c 5 -f /etc/rsyslog.early.conf ExecReload=/sbin/killproc -p /var/run/rsyslogd.pid -HUP /sbin/rsyslogd So I redirected stderr of "(/bin/cat > $tmpcore)<<-EOF" to a file in /run. And voila: /lib/systemd/system-generators/syslog-service-generator: line 194: cannot create temp file for here-document: Read-only file system It means bash wants to store the contents of the file to /tmp before it is passed to cat. And /tmp is ro at that time. And it explains why my desktop doesn't suffer from that -- I use rw kernel parameter. This indeed fixes it: @@ -176,6 +176,7 @@ # trap 'rm -f "$service"' EXIT tmpcore=$(/bin/mktemp $RUN_PATH/syslog.XXXXXXXX) || exit 1 +TMPDIR=/run (/bin/cat > $tmpcore)<<-EOF # Warning: Do not edit as this file has been and will be autogenerated # by $0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c15
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c16
--- Comment #16 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c17
--- Comment #17 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c18
--- Comment #18 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c19
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c20
--- Comment #20 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c21
--- Comment #21 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c22
--- Comment #22 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c23
--- Comment #23 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c24
--- Comment #24 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c25
--- Comment #25 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=724610
https://bugzilla.novell.com/show_bug.cgi?id=724610#c26
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com