/srv/irclogs.ubuntu.com/2011/08/03/#upstart.txt

=== robbiew-afk is now known as robbiew
StucKmanany way to debug why upstart complains about «start: Unknown job [foo]»?13:36
ionBecause there’s no /etc/init/foo.conf or /etc/init/foo.conf has a syntax error.13:39
StucKmanion: ok, the foo.conf exists. is there any systax checker?13:39
StucKmansyntax*13:39
ionSee the error message in syslog.13:40
StucKmanion: good!13:40
StucKmanbad13:41
StucKmanguess who can´t start...13:41
StucKman... rsyslog13:41
pmjdebruijnhi all14:01
pmjdebruijnI have a server that seems to get "stuck" on booting... runnig upstart with --verbose doesn't really help, sinec that allows me to see what tasks have been completed, but not what it's waiting for14:01
pmjdebruijnwith a serial init I could predict order, thus the last finished modules would implicitly tell me what next failed14:02
pmjdebruijnthis isn't true for parallel startup14:02
pmjdebruijncan someone give me a hint as to effectively troubleshoot this issue14:02
StucKmanion: so, if I don´t have syslog running, there are no logs?14:03
pmjdebruijnhttp://upstart.ubuntu.com/wiki/Debugging14:05
pmjdebruijnok I'll try that :)14:05
wraidenStucKman: add --verbose to your cmdline14:06
StucKmanwraiden: service mysql start --verbose?14:06
wraidenno14:06
StucKmanstart --verbose mysql?14:06
wraidenno14:06
wraidenkernel commandline14:06
StucKmanwhat>?14:06
wraidenin your grub config14:06
StucKmando I need to reboot my machine?14:06
wraidenthe args are appended to inits start14:07
wraidenso init gets the --verbose14:07
StucKmanyougottabefuckingkiddingme14:07
StucKmanno, sorry, I can´t reboot this machine just like that14:07
StucKmanI don´t even have a monitor attached to it14:08
StucKmanI'm not even in the same state14:08
wraidenhehe14:08
StucKmannot funny!14:09
wraidendepends14:09
wraidenyou can try to add echos to every suspected job config14:09
wraidenas pre-start14:09
wraidenand let that echos write to a file14:09
wraidene.g.14:11
wraidenpre-start script14:11
wraidenecho "jobname trys to start" >> /debug.log14:11
wraidenend script14:11
wraidenand add a post-start with the same14:11
StucKmanwraiden: wait14:12
wraidenoh14:12
StucKmanI'm trying to launch it by hand14:12
wraidenpoor mand debugging ...14:12
wraiden*mans14:13
wraidenwhats your upstart version14:13
wraiden?14:13
StucKmanyou mean that of the script has a syntax error it will get executed up to that point?14:13
StucKmanlemmesee...14:13
StucKman0.6.5-814:13
StucKman(ubuntu lucid)14:14
wraidenmhm14:14
wraidenman initctl | grep check14:14
wraiden?14:14
StucKmannothing14:14
wraideninitctl has a check-config arg on 0.9 versions but i don't think that was in 0.6 also14:15
StucKmanchízus14:15
wraidencan you post the config somewhere?14:15
wraideni'll take a look14:15
StucKmanok14:16
StucKmaninitctl list does not have either rsyslog or mysql in it14:16
StucKmanwraiden: it's ubuntu's provided job file14:16
StucKmanlet me paste it anyways14:17
wraidentaht means that the jobs are not loaded because of syntactical errors14:17
wraidenhuh?14:17
wraidenthe ubuntu provided ones don'T work?14:17
StucKmanwraiden: don't get me started on that14:17
wraidenare you shure that the jobs are in /etc/init ?14:17
wraidenubuntu has not ported all init scripts over to native upstart jobs14:18
wraidenit could be that they are in /etc/init.d14:18
StucKmanwraiden: it is doing it, and the wrong way14:18
StucKmans/it is/they are/14:18
StucKmans/and/but/14:18
StucKmanwraiden: http://pastebin.lugmen.org.ar/669114:19
wraidenhave a lucid box here14:25
StucKman10.04.2? check /etc/issue14:25
wraiden10.4.314:25
StucKmanok14:25
StucKmanor, more interetingly, this other: http://pastebin.lugmen.org.ar/669214:31
StucKmanif I add or modify a script in /etc/init/, do I need to do something so upstart rereads it?14:39
wraidennormaly not14:41
StucKmanand anormally?14:41
wraidenas upstart looks with inotify for file alteration in its config folder and reloads14:42
StucKmanack14:42
wraidenyou can poke init to reload with14:42
wraideninitctl reload-configuration14:43
StucKmanwait14:43
StucKmanwait wait wait14:43
StucKmanI have a question14:43
StucKmanok, here's te thing14:44
StucKmanI'm trying to start a rsyslog and/or mysql in a chroot14:44
StucKmanhow does that afeect upstart?14:44
StucKmanaffect*14:45
wraidenwhere do you execute the initctl or links to it like start stop reload whatever ?14:48
wraideninside the chroot?14:48
wraidenwhere are the job config files located?14:49
wraideninside the chroot?14:49
wraidenupstart is pid 114:49
StucKmanfor instance, if I do «initctl reload-configuration», it contacts PID 1, ... I see where's the problem14:50
wraidenpid 1 is located on your real root14:50
StucKmanI know14:50
wraidenit will only look inside of /etc/init14:50
StucKmanok, let me (re)think about it14:50
StucKmanand yes, neither mysql or rsyslog are in the host14:51
wraidenyou ca however change the jobs to be started outside of a chroot an let the jobs start inside of the chroot14:51
StucKmanwraiden: uhm?14:51
wraidenscripting?14:51
StucKmanyes, but what did you mean?14:52
wraidenor even easier14:52
wraidenman 5 init14:52
wraidenlook for the chroot stanza14:52
StucKmanwraiden: good14:53
wraidenRTFM might help ;-P14:53
StucKmanwraiden: ups14:53
wraidendidn't use the chroot stanza so far14:53
StucKmanso do I have to pray it works?14:54
StucKman:?14:54
wraidenbut will soon as my inhouse cluster distro will change to native upstart over the next few weeks14:54
StucKmanI'm sorry, I'm just a little bit bitter14:54
wraidenso i have to use it for bind14:54
wraidenwell. upstart is covered by a very strict testsuite14:55
wraidenyou can expect a stanze to do what was documented14:55
wraiden*stanze14:56
wraiden*stanza14:56
StucKmanok, good14:56
wraiden*lokking fatfingered*14:56
wraideni need some sleep *g*14:56
StucKmango, go, go!14:56
wraidenit daytime here14:56
wraidenand i'm @ work14:56
StucKmanheeh, same here14:56
wraidennot a good place for a powernap *g*14:57
StucKmantake a nap anyways14:57
wraidenas network admin one would wake dragons that one should better not wake if someone finds me sleeping *g*14:57
wraidenyou can drop me a line here if the stanza got you where you wanted...14:59
StucKmanwraiden: I'm thinking if that's the best approach for my particular case15:03
StucKmanin general, it looks like yes, but...15:03
JanC"initctl log-priority debug" on a running system will do the same as --verbose on the kernel commandline15:11
StucKmanwraiden: ok, it was better your way15:13
StucKmanseems to work now15:14
StucKmanJanC: but where does it log them?15:15
StucKmanbecuase rsyslog was not loading before15:16
StucKmanbecause*15:16
JanCright, maybe not so useful right now then (unless you start syslog manually first, or such)15:17
JanCmysql didn't start either?15:17
StucKmanJanC: I'm finishing fixing the rsyslog now15:18
JanCyou don't have a circular dependency between rsyslog & mysql or such?  ☺15:20
StucKmanno15:20
StucKmanit's more complicated15:20
StucKmanso I have to do extra work to leave it fixed15:20
StucKmanwe use cfengine and we switch from chroot to chrroot depending on development states15:21
JanCah, using upstart in a chroot or in container-style VMs is a bit complicated sometimes15:24
StucKmannot anymore15:26
StucKmanchroot works fine15:26
StucKmanand I just have to add some stuff to our cfengine repo and modify some scripts that change the dev environ15:27
rawlerhi.. I'm developing a daemon which is currently in early Alpha/Beta stage.. I'm using the upstart restart functionality to restart it if it crashes.. however, I'd also like to get a coredump, if possible..17:15
rawlerI've tried adding "limit core 100000 100000" to the conf, but I can't find the corefile.. I've also tried adding "chdir /tmp/" but no luck.. am I missing something?17:18
travisclineany way for me to prefix an env var?23:23

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