[Bug 733868] New: openSUSE 12.1 syslog rotation fails
https://bugzilla.novell.com/show_bug.cgi?id=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c0 Summary: openSUSE 12.1 syslog rotation fails Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cbenson@fhcrc.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1 Normal log rotation of /var/log/messages fails because this command no longer works in 12.1: "/etc/init.d/syslog reload" /var/log/messages shows: Nov 30 04:00:03 rhino-b logrotate: redirecting to systemctl Nov 30 04:00:03 rhino-b logrotate: Failed to issue method call: Unit syslog.service failed to load: No such file or directory. See system logs and 'systemctl status syslog.service' for details. This can also be reproduced at the command line: /root # systemctl reload syslog.service Failed to issue method call: Unit syslog.service failed to load: No such file or directory. See system logs and 'systemctl status syslog.service' for details. However, this does still work: /root # cd /etc/init.d /etc/init.d # ./syslog reload redirecting to systemctl Reload syslog service The log daemon is rsyslog: /root # ps -ef | grep syslog | grep -v grep root 324 1 0 Nov17 ? 00:00:00 /lib/systemd/systemd-kmsg-syslogd root 418 1 0 Nov17 ? 00:00:00 /lib/systemd/systemd-stdout-syslog-bridge root 12456 1 0 14:01 ? 00:00:00 /sbin/rsyslogd -c 5 -f /etc/rsyslog.conf I have the following conf files for rsyslog: /etc # ls -ld rsyslog* -rw------- 1 root root 4027 Nov 26 06:30 rsyslog.conf drwxr-xr-x 2 root root 4096 Nov 3 07:42 rsyslog.d -rw------- 1 root root 4027 Nov 15 10:07 rsyslog.early.conf Reproducible: Always Steps to Reproduce: 1.systemctl reload syslog.service 2.OR: /etc/init.d/syslog reload 3. -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c1 Izaac Zavaleta <jorge.izaac@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jorge.izaac@gmail.com --- Comment #1 from Izaac Zavaleta <jorge.izaac@gmail.com> 2011-12-24 17:23:22 UTC --- What is your syslog version and whar RPMs are installed ins your system? Is this happening after a "clean" install? Here's what I have: rpm -qa | grep syslog syslog-service-1.4.1-750.747.2.noarch rsyslog-5.8.5-6.1.2.x86_64 izaac@morena:/var/log> rpm -ql syslog-service /etc/init.d/earlysyslog /etc/init.d/syslog /etc/logrotate.d/syslog /lib/systemd/system-generators/syslog-service-generator /lib/systemd/system/earlysyslog.service /lib/systemd/system/klog.service /lib/systemd/system/syslog.service /sbin/rcsyslog /usr/share/man/man8/syslog.8.gz /usr/share/omc/svcinfo.d/syslog.xml /var/adm/fillup-templates/sysconfig.syslog /var/run/rsyslog /var/run/syslog-ng Regards -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c2 --- Comment #2 from Carl Benson <cbenson@fhcrc.org> 2011-12-27 18:48:51 UTC --- Hello. I get identical results for those commands. The current status of this bug has changed somewhat. Now all my 12.1 systems except one (lamprey) correctly rotate /var/log/messages. I changed *nothing*. On lamprey, it rotates the "messages" log file, and xz's the previous log file. It restarts syslog, and in fact rsyslogd is running. However, rsyslogd does not write to the new /var/log/messages file. When I login in the morning, /var/log/messages is empty. Zero bytes. I should at least see the messages from when rsyslogd restarted after log rotation. So I do this to get it writing again: cd /etc/init.d ./syslog restart Then rsyslogd writes to /var/log/messages as usual. My configuration also writes remotely to another system. rsyslogd sends messages to the other remote system okay. It just doesn't write to /var/log/messages. Thanks for looking at this. --Carl -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c3 Jon Nelson <jnelson-suse@jamponi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jnelson-suse@jamponi.net --- Comment #3 from Jon Nelson <jnelson-suse@jamponi.net> 2012-01-18 23:50:05 UTC --- I can confirm the same results. turnip:~ # rcsyslog restart redirecting to systemctl Job failed. See system logs and 'systemctl status' for details. turnip:~ # systemctl status Too few arguments. turnip:~ # systemctl status syslog Failed to issue method call: Unit name syslog is not valid. turnip:~ # ^C turnip:~ # systemctl status syslog.service syslog.service - System Logging Service Loaded: loaded (/lib/systemd/system/syslog.service; enabled) Active: failed since Wed, 18 Jan 2012 17:42:44 -0600; 32s ago Process: 23133 ExecStart=/sbin/rsyslogd -c 5 -f /etc/rsyslog.early.conf (code=exited, status=1/FAILURE) Process: 23130 ExecStartPre=/var/run/rsyslog/addsockets (code=exited, status=0/SUCCESS) Process: 23127 ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service (code=exited, status=0/SUCCESS) Main PID: 29780 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/syslog.service turnip:~ # systemctl status syslog.service syslog.service - System Logging Service Loaded: loaded (/lib/systemd/system/syslog.service; enabled) Active: failed since Wed, 18 Jan 2012 17:42:44 -0600; 57s ago Process: 23133 ExecStart=/sbin/rsyslogd -c 5 -f /etc/rsyslog.early.conf (code=exited, status=1/FAILURE) Process: 23130 ExecStartPre=/var/run/rsyslog/addsockets (code=exited, status=0/SUCCESS) Process: 23127 ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service (code=exited, status=0/SUCCESS) Main PID: 29780 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/syslog.service turnip:~ # cd /etc/init.d/ turnip:/etc/init.d # ./syslog restart redirecting to systemctl redirecting to systemctl Shutting down syslog services done redirecting to systemctl Starting syslog services done turnip:/etc/init.d # systemctl status syslog.service turnip:/etc/init.d # systemctl status syslog.service syslog.service - System Logging Service Loaded: loaded (/lib/systemd/system/syslog.service; enabled) Active: failed since Wed, 18 Jan 2012 17:42:44 -0600; 1min 22s ago Process: 23133 ExecStart=/sbin/rsyslogd -c 5 -f /etc/rsyslog.early.conf (code=exited, status=1/FAILURE) Process: 23130 ExecStartPre=/var/run/rsyslog/addsockets (code=exited, status=0/SUCCESS) Process: 23127 ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service (code=exited, status=0/SUCCESS) Main PID: 29780 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/syslog.service turnip:/etc/init.d # -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |fcrozat@suse.com InfoProvider| |cbenson@fhcrc.org --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2012-03-06 12:38:31 UTC --- Is this one still valid after updating systemd? -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c5 Carl Benson <cbenson@fhcrc.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|cbenson@fhcrc.org | --- Comment #5 from Carl Benson <cbenson@fhcrc.org> 2012-03-09 15:35:55 UTC --- On my "lamprey" server, the systemd RPM is systemd-37-3.8.1.x86_64 Yesterday morning and this morning, logrotate ran, rsyslogd is running, but nothing is going in /var/log/messages. After I manually restart syslog with: cd /etc/init.d;./syslog restart the messages flow into /var/log/messages again. So I would say there has been no change. I think I noted that rsyslog does log remotely also, so I can capture the messages on my syslog message archiver system. However, it does not write to the local /var/log/messages. Other openSUSE 12.1 systems seem to do this okay, so perhaps this system needs a reboot to fix it? -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c6 --- Comment #6 from Jon Nelson <jnelson-suse@jamponi.net> 2012-03-09 15:57:54 UTC --- What I had to do to get the new code was this: rcsyslog stop -v systemctl --system daemon-reload rcsyslog start # note the -v with stop and *no* -v with start -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c7 --- Comment #7 from Carl Benson <cbenson@fhcrc.org> 2012-03-14 15:47:42 UTC --- Thank you -- that worked on lamprey. It looks like the problem is fixed. -- 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=733868 https://bugzilla.novell.com/show_bug.cgi?id=733868#c8 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Dr. Werner Fink <werner@suse.com> 2012-10-17 10:20:00 UTC --- OK -- 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.
participants (1)
-
bugzilla_noreply@novell.com