/srv/irclogs.ubuntu.com/2012/11/02/#upstart.txt

MFenwhat's the workaround for stopping an upstart job that had expect daemon and now cannot be stopped?00:33
MFeni.e. didn't start in the first place, but upstart thought it did00:33
MFenalso i'm having serious doubts about whether chdir does anything00:36
SpamapSMFen: if it has a pid that is actually gone when you type 'status jobname' then you have to exhaust the pid space and then let upstart kill the pid listed there02:13
SpamapSMFen: chdir works, Its used in quite a few jobs02:13
MFenyeah the whole job was a problem02:14
MFeni discovered the exec 2>>/dev/.initramfs/foo.log trick though. fixed things right up02:14
MFenjust unexpected missing env vars02:14
viricHello14:08
viricI've an upstart deadlocking at boot in a select(), according to strace.14:09
viricthe last thing it does is: 1     write(8, "<6>init: Handling startup event\n", 32) = 3214:09
viric(before deadlocking into the select)14:09
viricI notice it doesn't read any file inside /etc/init, too14:11
SpamapSviric: what OS? What version of upstart?15:17
viricnixos, upstart 1.5, mips-n6415:20
viricsorry15:20
viricmips-n3215:20
virickeeping same libnih, same upstart, I can boot with linux 3.4.2, and can't boot with linux 3.6.415:20
viricI'll try to find if I'm missing any component, by trying back to have a linux 3.4.x, but keeping all userland the same.15:21
viric'--debug' doesn't show anything beyond '--verbose' either.15:21
viricAnd with strace, I can see that it adds a watch for /etc/init, but it doesn't read any conf file.15:21
viricSpamapS: the same versions boot fine in x86_64 and i686.15:22
SpamapSviric: jodh and slangasek are likely busy travelling home from UDS in Copenhagen right now, so you may have a hard time getting an answer from them, and they're probably the best ones to ask this question of15:28
SpamapSviric: it does sound, however, that perhaps the kernel changed something as well15:28
slangaseknot traveling today, still stuck in CPH ;)15:28
slangasekviric: do you have inotify support in your 3.6 kernel?15:29
slangasekor perhaps inotify is broken on mips in 3.6?15:30
viricYes, INOTIFY is there15:30
SpamapSslangasek: joy! ;)15:30
viricIt'll take me some time to build a 3.4; but I'll report once I try it15:30
slangasekso it does sound like a kernel bug/issue to me15:32
slangasekthe upstart code is bog simple15:32
viricI'll paste the strace15:33
virichttp://sprunge.us/UJHR  that's stracing "-f -p 1" before execing init15:33
viricI don't know inotify userland tools, to test that15:34
viricslangasek: tested. 3.4.16 boots. 3.6.4, upstart deadlock18:23
JanCviric: are you sure it deadlocks?19:39
JanCI don't know much about upstart's internals, but I think "handling startup event" should happen *after* reading the files inside /etc/init/ ?19:43
viricit doesn't read the files19:44
viricJanC: look at the strace: http://sprunge.us/UJHR19:44
viricit doesn't go beyond.19:44
viricbut I see it happening in 3.6.4, not in 3.4.2 or 3.4.1619:45
JanClogically speaking, I'd think it can't handle any events before reading those files, but I might be entirely wrong  ;)19:45
viricyes, I think that the inotify should tell upstart about the files, and upstart would read them. But that does not happen. The inotify fds are in the select 'read' list, but nothing goes on.19:46
viricSomeone broke linux mips, I think.19:46
JanCI guess you'll have to wait for some of the developers to help find out19:47
viricLet's see if someone thinks the same at linux-mips; I mailed them already.19:47
JanCwell, if it's just inotify that broke on MIPS, there are Python and maybe Perl etc. bindings for that19:47
viricI could learn some inotify userland tools to demonstrate the failure closer to kernel syscalls, but I'll wait for some first answer from them19:47
viricI don't have a very nice boot with those kernels, due to the upstart failure, though. :)19:48
JanCyou can always boot with a shell  ☺19:48
JanCoh, and there is this a script from one of the upstart developers that gives you a menu to select an "init"19:49
JanChttp://people.canonical.com/~jhunt/upstart/utils/19:51
JanCmight be helpful while testing this and possible fixes  ☺19:52
viricJanC: sure, I boot with a shell, that's what I do.19:52
viricno trouble. :)19:52
viricJanC: or how do you think I straced PID 1, and detached? :)19:53
JanCthere are all sorts of weird things one can do, but maybe that script is still useful  ☺19:58
viricchoosing an init is quite easy having grub. It only requires to type 'e' at the menu option, and add init=PROGRAM before boot.20:32
JanCviric: sure, if you have it configured to show the menu21:08
JanCyou could implement a similar menu with grub anyway21:11
viricyep21:11
JanCviric: is upstart the default init on NixOS or just an option?21:16
viricthe default since long long21:17
viricbut the switch to systemd will happen some day soon21:17
JanCbecause that is easier to maintain?21:19
viricbecause the people who do the work are the people who decide ;)21:21
viricI'd personally have stayed at sysvinit ;)21:21
JanCI think sysvinit isn't exactly ideal21:22
viricI don't get much this dbus world, with consolekit, polkit, etc.21:22
JanCdbus is just an IPC mechanism21:22
viricyes, a too flexible piece.21:23
viricthen there come a whole new namespace rules to respect21:23
viricand learn21:23
viricwe have the filesystem, we have the network, then dbus, ... too much for my simple mind21:24
JanCgreater flexibility & greater possibilities usually come with greater complexity & more to learn indeed  :-/21:24
viricyes. For me, the overall ratio of advantadges/drawbacks isn't >1.21:25
viricBoth for upstart and systemd. In fact, I've not learnt systemd at all, but I expect the worse :)21:25
viricI prefer to give up on "parallell starting of daemons", and have simpler but slower pieces.21:26
viricI can accept a longer boot too. :)21:26
JanCwell, that might be sure for certain servers and workstations maybe21:27
JanCbut most people don't want a 2 minute boot on to check what 2 mail messages they got today  ;)21:27
viricbah, I pm-suspend always21:29
JanC"eternal suspend/resume" that would be nice if various desktop applications wouldn't leak memory like hell21:30
viricI do restart those ;)21:58
viricbut xterm, ssh, irssi, mutt, and other pieces I've written, don't leak enough :)21:58
JanCmy current problemetaic piece of software is natu22:34
JanC*nautilus22:34
JanCbut that's another story (not on-topic for this channel)22:34

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