/srv/irclogs.ubuntu.com/2011/01/29/#upstart.txt

Tack"start rsyslog" outputs "start: Job is already running: rsyslog" but it definitely isn't.  "stop rsyslog" hangs indefinitely, but after which (if I ctrl-c it), "start rsyslog" no longer says it's running, but rather it hangs too.  Once I ctrl-c that, "start rsyslog" again says it's running.16:17
TackAt no time does it get started though, and I'm quite confused as to what's happening.  Any ideas?16:17
Tack(BTW this is on Ubuntu 10.04)16:18
ionHave you modified /etc/init/rsyslog.conf at any time?16:36
Tackion: nope, it's stock.16:39
TackHowever ...16:40
Tackhttps://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/692919 is almost certainly what started it.  This happened following a package update last month some time.  I havne't had a chance to look into it until now.16:41
TackSo it's entirely possible /etc/init/rsyslog.conf got replaced during the package upgrade.  It's dated 2010-12-10, so it's likely. 16:42
TackI've not modified it personally, though, nor changed its mtime.16:42
ionWhat does ‘status rsyslog’ print?16:43
Tackrsyslog start/starting16:44
ionWhat does ‘pgrep -l rsyslogd’ print?16:44
TackNothing, and it returns exitcode 1.16:45
ionsorry16:45
ionAh, ok. (Had it printed anything, i’d have been interested to see pgrep -lf rsyslogd.)16:45
ion‘status rsyslog-kmsg’?16:45
Tackstatus: Unknown job: rsyslog-kmsg16:46
TackPossibly not present in Ubuntu 10.0416:46
ionAh, indeed.16:46
TackIf I "strace stop rsyslog" it seems to be doing some dbus chatter over a unix socket (connect(3, {sa_family=AF_FILE, path=@"/com/ubuntu/upstart"}) and it hangs on poll() for that fd.   Maybe I need to bounce dbus-daemon?16:48
TackNah, no effect. :)16:48
ionNo, that’s not the problem and stracing start/stop/initctl doesn’t help in diagnosing problems like this.16:48
TackAh, I was afraid of that.16:49
ionWhat does ‘stop --no-wait rsyslog’ print? How about ‘status rsyslog’ after that?16:50
Tack# stop --no-wait rsyslog16:51
Tackrsyslog stop/starting16:51
Tack# status rsyslog16:51
Tackrsyslog stop/starting16:51
ionI guess you’ll need to consult Keybuk for more ideas about debugging the issue. If you don’t feel like waiting for him to appear on IRC, please file a bug in https://bugs.launchpad.net/ubuntu/+source/upstart (i’m not sure if it’s a bug in the upstart package or the rsyslog one) describing the symptoms (e.g. that ‘stop rsyslog’ blocks forever) and providing the output of ‘pgrep -lf rsyslogd’, ‘stop --no-wait rsyslog’, ‘status rsyslog’, ‘start16:59
ionrsyslog’ and ‘status rsyslog’ again. Might as well attach the file /etc/init/rsyslog.conf as well, so it can be verified that the job definition hasn’t become broken due to some bug.16:59
TackCan do, thanks.  Unfortunately I need to reboot this box soonish for a kernel upgrade, and that will almost certainly fix the problem.  I'll try to hold off for a couple days.17:02
ionAlright, thanks17:03
TackThanks for the tech support. :)17:03

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!