[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-08-13 Thread Michael Nagel
** Description changed: - Ubuntu 9.10 Alpha3 + First reported on Ubuntu 9.10 Alpha3 + It affects Ubuntu 10.04 Lucid Lynx Final Release, too. rsyslogd: [origin software=rsyslogd swVersion=4.2.0 x-pid=2296 x-info=http://www.rsyslog.com;] rsyslogd was HUPed, type 'lightweight'. After the

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-05-26 Thread Aleksander
I have last message in /var/log/syslog: May 26 07:35:16 kutoid rsyslogd: [origin software=rsyslogd swVersion=4.2.0 x-pid=953 x-info=http://www.rsyslog.com;] rsyslogd was HUPed, type 'lightweight'. uname -a: Linux kutoid 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-05-26 Thread Aleksander
rsyslogd -v : rsyslogd 4.2.0, compiled with: FEATURE_REGEXP: Yes FEATURE_LARGEFILE: Yes FEATURE_NETZIP (message compression): Yes GSSAPI Kerberos 5 support: Yes FEATURE_DEBUG (debug build, slow

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-05-13 Thread Jonathan Michalon
Running 10.04 64bits, the same message show up BUT it seems normal. I've seen the following behavior: The message show in /var/log/messages; afterward it's the first one of /var/log/syslog. Log seems to have been rotated. If I execute something like that: $ logger -t test This is a test message

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-04-12 Thread Ahmed Osama
Having the same problem here. Running 10.04 32bit. Apr 11 12:26:46 home rsyslogd: [origin software=rsyslogd swVersion=4.2.0 x-pid=902 x-info=http://www.rsyslog.com;] rsyslogd was HUPed, type 'lightweight'. -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-04-08 Thread Adam Heath
Having the same problem here. Running 9.10 64bit on EC2, this is from very early this morning: Apr 8 05:32:05 ubuntu rsyslogd: [origin software=rsyslogd swVersion=4.2.0 x-pid=544 x-info=http://www.rsyslog.com;] rsyslogd was HUPed, type 'lightweight'. -- [karmic] Messages not being sent to

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-04-08 Thread Adam Heath
Additionally the permissions on syslog: -rw-r- 1 syslog adm 4670 2010-04-08 11:03 /var/log/syslog -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-02-22 Thread Nikolaus Rath
I'm still having the same problem too. Here's a strace of the rsyslog process when it receives the HUP: [0] spitzer:/var/log# strace -p 7830 Process 7830 attached - interrupt to quit select(1, NULL, NULL, NULL, {17, 289248}) = ? ERESTARTNOHAND (To be restarted) --- SIGHUP (Hangup) @ 0 (0) ---

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2010-02-11 Thread BMB
I found this page while searching for a fix for the same problem (rsyslogd was huped... and no more logging after that (I think cron might have stopped running my scripts then too. can that be?) anyway, after reading all the technical stuff here, most of which I don't understand (what is a HUP

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-12-14 Thread Luís Louro
Opening gnome-system-log shows it searches for, and does not find: /var/log/auth.log.0: Erro ao verificar o ficheiro '/var/log/auth.log.0': Ficheiro ou directoria inexistente /var/log/daemon.log.0: Erro ao verificar o ficheiro '/var/log/daemon.log.0': Ficheiro ou directoria inexistente

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-12-09 Thread George Klein
@Gigglesworth, I'm still suffering the same problem as stated above at #42. For now I've just set all group configs to syslog. I did hit another problem which was all my own work though which might be relevant to you. As you'll see from the dynamic file template above, rsyslog should create a

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-12-08 Thread Gigglesworth
I also have this same issue. I noticed that my new files were all being created with the ownership of syslog:syslog. I was able to workaround this problem with a 'chgrp -Rv adm /var/log/foobar', where 'foobar' was the directory containing the new files. This should work, but I'm unsure if it will

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-11-16 Thread George Klein
Thanks for the quick answers Michael, I'm afraid they've thrown up what looks like a bug to me. It's similar to this bug but I'm happy to open a new one if that's more appropriate. Following your answers I set the following in rsyslog.conf (plus all the other parts obviously): $FileOwner syslog

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-11-15 Thread George Klein
First - apologies for the vagueness that follows. I'm only an amateur and while I do record configurations I end up with, I don't record much if anything on the way. Second, I got here via installing rsyslog myself on Jaunty and then upgrading to Karmic which may also have confused things. I

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-11-15 Thread Michael Terry
1) PrivDropTo doesn't need to match $File. Certainly not for the group. But PrivDropToUser should be able to read files created by FileOwner. Else, rsyslog can't read the files it creates. 2) syslog:adm is fine. The group doesn't matter so much. adm is the recommended group for system log

RE: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-16 Thread Rainer Gerhards
I agree. The logrotate.d file that rsyslog uses in Debian/Ubuntu should use the 'create' directive which says which user/group to create files as. Hmm, I guess that's actually not needed. Without the create directive, it leaves the creating up to rsyslog, which is fine for our purposes.

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-16 Thread Michael Terry
I agree it's probably (b), with the addendum that certainly part of the problem was previous rsyslog versions, which created the files as root. If that were the only problem, I suppose the packaging scripts could change permissions at install time, but that would require special logic to handle

RE: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-16 Thread Rainer Gerhards
I agree it's probably (b), with the addendum that certainly part of the problem was previous rsyslog versions, which created the files as root. If that were the only problem, I suppose the packaging scripts could change permissions at install time, but that would require special logic to

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-16 Thread Michael Terry
I still have one concern, and that is probably easy to verify: what happens if logrotate runs? Does it create the files with the proper owner and permissions? And if so, how does it know? The default logrotate script does not create the files. It will move the existing file out of the way and

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-15 Thread Michael Terry
Why do you create these files as root-owned in the first place? Why not create them with the right user? That is my primary point. I agree. The logrotate.d file that rsyslog uses in Debian/Ubuntu should use the 'create' directive which says which user/group to create files as. Michael

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-15 Thread Michael Terry
I agree. The logrotate.d file that rsyslog uses in Debian/Ubuntu should use the 'create' directive which says which user/group to create files as. Hmm, I guess that's actually not needed. Without the create directive, it leaves the creating up to rsyslog, which is fine for our purposes. --

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-14 Thread Bug Watch Updater
** Changed in: rsyslog Status: Confirmed = Fix Released -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-11 Thread Rainer Gerhards
I have integrated the patch (actually the idea as the code has evolved in the mean time). Thanks for the suggestions. Please note that I think this patch tries to fix something outside of the scope of rsyslogd. I have posted full details in the rsyslog's bug tracker [1] as well as in the doc for

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-11 Thread Neil Wilson
I think we get into the realms of Unix philosophy at this point. What actually needs to be fixed is the ability to set permissions on network ports and other 'root only' system facilities. Then rsyslog could be started as a non-privileged user and still get the facilities it requires. This

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-11 Thread Rainer Gerhards
I couldn't agree more, and that is why I say that this work-around will be broken once rsyslog's privilege drop code has been rewritten. As stated in the wiki, the current solution is a quick and dirty one, provided only because there seems to be some value in providing it over not providing it.

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-11 Thread Neil Wilson
Rsyslogd can't run initially as non-root if it is going to listen on port 512 or directly access the kernel logs. It needs to open that first as root and then keep them open while dropping privileges. So we're still going to have to root drop problem regrettably. (I'm sure you already know that.

RE: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-11 Thread Rainer Gerhards
-Original Message- From: boun...@canonical.com [mailto:boun...@canonical.com] On Behalf Of Neil Wilson Sent: Friday, September 11, 2009 2:05 PM To: Rainer Gerhards Subject: Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs Rsyslogd can't run initially as non

RE: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-11 Thread Rainer Gerhards
I think I missed to express me clearly enough in my previous reply: - firstly we either create root owned files, or open root owned files and ... Why do you create these files as root-owned in the first place? Why not create them with the right user?That is my primary point. Rainer --

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-01 Thread Launchpad Bug Tracker
This bug was fixed in the package rsyslog - 4.2.0-2ubuntu2 --- rsyslog (4.2.0-2ubuntu2) karmic; urgency=low * Fix log file ownership issues when HUPing an unprivileged rsyslog LP: #407862 - debian/rsyslog.conf: Set $FileOwner to syslog - debian/patches/deroot.patch:

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-09-01 Thread Colin Watson
Looks fine, thanks - sponsoring. -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Michael Terry
OK, so I finally got time to sit down and look at this, and I can't reproduce the problem (files that rsyslog can log stop being logged after reload). I tested normal logs by: * tail -f /var/log/syslog * sudo chown root:root /var/log/lpr.log # (-rw-r- 1 root root 776 2009-08-31 10:40

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Neil Wilson
For me it is busted as soon as I start up the machine unless I change the ownership on the /var/log/* files to syslog:syslog and then it will work fine. I've just done the same as you after a fresh install of rsyslog to make sure I'm on the latest repository version. * tail /var/log/syslog *

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Michael Terry
OK, I see the difference. My /var/log is the same as yours, but my /var/log/syslog is syslog:adm. If I chown it to root:adm, I get the same behavior as you... Now to see why/when it is root:adm (and if it should be). I suspect my syslog:adm is because rsyslog created it for me at some point.

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Michael Terry
I'll note that sysklogd did a rather forceful resetting of log ownership as a result of bug 120085. Before each kickoff in its init.d script, it would reset permissions of log files. Maybe we need something similar? Still digging. -- [karmic] Messages not being sent to system logs

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Neil Wilson
My machine is a fresh install of Karmic Alpha 3 on the bare metal - no upgrades. So the permissions are created by the current package system and/or logrotate. 2009/8/31 Michael Terry michael.te...@canonical.com: OK, I see the difference.  My /var/log is the same as yours, but my

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Michael Terry
Looks like we want to set $FileOwner in /etc/rsyslog.conf to syslog (duh, my fault for not noticing that was still set to root) and add code to chown files if they aren't $FileOwner and $FileGroup. That should let rsyslog do its thing. -- [karmic] Messages not being sent to system logs

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Michael Terry
Here's a debdiff that both sets the correct $FileOwner value of syslog and makes sure that we chown all output files as we open them. ** Attachment added: rsyslog-fileowner.debdiff http://launchpadlibrarian.net/31084941/rsyslog-fileowner.debdiff ** Bug watch added: bugzilla.adiscon.com/ #150

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Bug Watch Updater
** Changed in: rsyslog Status: Unknown = Confirmed -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-31 Thread Michael Terry
** Changed in: rsyslog (Ubuntu) Status: Incomplete = Confirmed ** Changed in: rsyslog (Ubuntu) Assignee: Michael Terry (mterry) = (unassigned) -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-17 Thread Michael Terry
Guh, I thought it was safe to revert to how debian did it (sending a HUP) in the latest upload because I noticed that rsyslog forces a lightweight HUP restart when privileges are dropped. It seemed to work for me, but I didn't do extensive testing. OK, so if the realization is that lightweight

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-17 Thread Neil Wilson
The 'bs=1' kernel message fix helps, since otherwise kernel messages don't get through at all. With bs=1 you get kernel messages when you restart the daemon, but it stops again when you issue a 'HUP'. I put some debug into the code over the weekend and lightweight restart appears to close all the

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-17 Thread Michael Terry
I meant 'wont fix' in the sense of after we fix bs=1 and we set the init script to always use hard restarts. Then, we just say 'wont fix' to users of manual HUPs. Is there a use case for manual HUPs vs init script restarts? (serious question, are there 3rd party apps that depend on being able

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-17 Thread Neil Wilson
Yes. I think the reload needs to stay as a hard restart until upstream refactors the code to separate the privileged and non-privileged code base slightly more effectively. How would the third party app know that the syslog server that is running is rsyslog rather than syslog-ng or sysklogd?

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-16 Thread Neil Wilson
** Changed in: rsyslog (Ubuntu) Status: Fix Released = In Progress -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-16 Thread Neil Wilson
Doh, this is so obvious it's embarrassing. rsyslog is dropping privileges to 'rsyslog:rsyslog' /var/log is set as follows: drwxr-xr-x 14 root root 4096 2009-08-16 07:20 /var/log The files appear to be created before the privileges are dropped - hence why it seems to work for a bit and then

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-16 Thread Neil Wilson
Of course if the design is that files are opened and then permissions are dropped (as seems to be the case on further reading: http://wiki.rsyslog.com/index.php/Security#Dropping_Privileges), then HUP needs to be ignored completely somehow and the reload command in the init scripts needs reverting

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-14 Thread Launchpad Bug Tracker
This bug was fixed in the package rsyslog - 4.2.0-2ubuntu1 --- rsyslog (4.2.0-2ubuntu1) karmic; urgency=low [ Michael Terry ] * Merge from debian unstable (LP: #413023), remaining changes: - Run as rsyslog:rsyslog - Allow reading /proc/kmsg when non-root - Cleanly

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-14 Thread Jose Bernardo
Sorry, but it still isn't fixed for me. $ apt-cache policy rsyslog rsyslog: Instalado: 4.2.0-2ubuntu1 Candidato: 4.2.0-2ubuntu1 Tabela de Versão: *** 4.2.0-2ubuntu1 0 500 http://ports.ubuntu.com karmic/main Packages 100 /var/lib/dpkg/status $ lsb_release -rd Description:

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-14 Thread Neil Wilson
Same here, but at least the kern log works now and you can get the logging working via a restart. Now to find out what is causing that HUP and why the files aren't opening properly. 2009/8/14 Jose Bernardo berna...@bandos.net: Sorry, but it still isn't fixed for me. -- Neil Wilson --

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-13 Thread Michael Terry
** Changed in: rsyslog (Ubuntu) Status: Confirmed = In Progress ** Changed in: rsyslog (Ubuntu) Assignee: (unassigned) = Michael Terry (mterry) -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-11 Thread Neil Wilson
I did a check this morning and the pkill -HUP does stop the logging - if it is actually still working at that point in time. I also noticed that the logging will just stop *without* seeing the HUP message. dmesg continues merrily, but nothing appears in /var/log/syslog or /var/log/messages. All

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-11 Thread Neil Wilson
Ok problem#1 sorted. The new rsyslog system is starting up dd without the correct blocksize indicator and that is causing everything to hang up. The new rsyslog init.d file uses # shovel /proc/kmsg to pipe readable by syslog user start-stop-daemon --start --pidfile $KMSG_PIDFILE --exec

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-10 Thread Michael Terry
I tried to reproduce this with a 'sudo pkill -1 rsyslog'. I got the message in /var/log/syslog about a lightweight restart, but it kept logging messages. So I couldn't reproduce. Does a pkill -1 break rsyslog for you, Neil or Vajra? Do either of you know what triggered the HUP? -- [karmic]

Re: [Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-10 Thread Neil Wilson
No idea what's causing it. Mostly I see the restart message on boot but sometimes I don't. I feel this is going to be one of those irritating bugs that's difficult to track down... 2009/8/10 Michael Terry michael.te...@canonical.com: I tried to reproduce this with a 'sudo pkill -1 rsyslog'.  I

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-10 Thread Vajra Vrtti
I tried the command 'sudo pkill -1 rsyslog' in my VirtualBox installation but couldn't see any effect. I have no idea about what triggered the HUP. It just happens to be the last syslog message most of the time, but not always. Sometimes the syslog stops before that message. -- [karmic] Messages

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-07 Thread Neil Wilson
I'm seeing this as well. When the rsyslog is getting the new 'lightweight' restart command the log files are not being reopened properly and nothing gets logged from the kernel. It makes debugging a right pain. ** Changed in: rsyslog (Ubuntu) Status: New = Confirmed -- [karmic]

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-07 Thread Neil Wilson
** Tags added: karmic -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-02 Thread Vajra Vrtti
The previous syslog was from a desktop. I'm attaching another one from a VirtualBox VM. ** Attachment added: Syslog from a VirtualBox VM http://launchpadlibrarian.net/29800584/syslog -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-01 Thread Vajra Vrtti
** Attachment added: syslog http://launchpadlibrarian.net/29786798/syslog -- [karmic] Messages not being sent to system logs https://bugs.launchpad.net/bugs/407862 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

[Bug 407862] Re: [karmic] Messages not being sent to system logs

2009-08-01 Thread Adil Arif
Thank you for taking the time to report this bug and helping to make Ubuntu better. Judging from your description, I am going to assign this bug to the rsyslog package in hopes that it will have a faster response. If you believe that I have chosen the wrong package, please change your bug to the