/srv/irclogs.ubuntu.com/2010/12/16/#upstart.txt

ristokHello.13:01
ristokStudying ubuntu boot -> upstart.13:02
ristokJust studying how it all works from scratch..  And..13:02
ristokI get...  Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused..  I am clearly missing something, but what ?13:03
JanCristok: when do you see that?13:40
ristokWell, I have a very minimal system.14:12
ristokWhich I boot up.14:12
ristokAnd then generally everything fails to that.  Which is related to upstart.14:13
ristoke.g. init.d scripts14:14
ristok"start app" -> Maybe even better example.14:19
JanCristok: are you using Ubuntu or trying upstart on another OS?14:23
ristokWell, studying how it all goes together -> I did just add files while going forward.14:26
ristokMainly putting together debian packages.14:26
ristokThen I wanted to try upstart as well.14:27
ristokAnd ended up to this.14:27
ristokgoogling did not give perfect results either.14:27
JanCdo you have any upstart jobs yet?14:28
ristokYes.14:28
ristokBut probably not running yet ;)14:28
ristokSo if I try to start something, it always says this.14:29
ristokSo probably I have to start something, or create something to make it click.14:29
ristokI was first thinking it is some dbus symbol or something.  But it seems to also need upstart to run.14:32
JanCupstart uses the dbus protocol14:33
JanCand of course upstart needs to be run as the init daemon14:34
ristokBut I cannot start dbus because of this.14:34
ristokWell, I am actually trying to debug why the upstart hangs for me.14:35
JanCupstart has a --verbose option14:36
ristokI am using.14:36
ristokWait..  I will boot..14:36
ristokIt just hangs.14:36
ristokPretty early.14:36
ristokI think it is not able to run any jobs yet, at that phase.14:37
JanCI wonder if you start enough jobs to have a working system?14:37
ristokBut sure, I am studying how it all should work..  So I probably make mistakes here and there.  But I sure would like to know how it all works.14:37
JanCristok: did you look at the upstart jobs in an Ubuntu system to compare?  (or other OS that comes with upstart by default)14:38
ristokI have ubuntu installed, so I just checked from there what it will probably need.14:39
JanCfor example, are you starting TTYs?14:39
ristokSo I am using ubuntu packages as well.14:39
ristokI did create those manually.  Then I was thinking that maybe those ttyX.conf files do the same ?14:40
ristokActually now it fails to mount something, which I have not defined..  And then asks root passwd.  So maybe I actually fixed something.14:42
ristokBut I have not set any root passwd.14:43
ristokIs there any good documentation from this ?14:44
JanCristok: outside of the man pages?14:50
ristokWhich is the best soruce for information at the moment ?14:50
Keybukristok: if you see that message, you are not running Upstart14:55
Keybukthat is the error from initctl when it's run on a system where /sbin/init is *not* Upstart14:55
ristokIndeed, it is not possible to "debug" the system.14:57
ristokI just noticed it.14:58
ristokI was also missing /etc/default/rcS.14:58
ristokNow all is working, a bit further.14:58
ristokYep, I do not know at all how to put it together.  I think that is the part I have to go through to learn it.15:00
Keybuksure it's possible to debug15:01
KeybukI debug all the time ;)15:01
KeybukI also tend to bug15:01
ristokBut I mean, it is now frozen to one task, does not continue.  So I am missing something for sure.15:02
ristokAnd rather hard to figure it out from here, that what I am actually missing.15:02
Keybukboot with --verbose15:03
ristokYes, I get bunch of stuff to my screen.15:03
ristokI have the verbose.15:03
ristokBut I think I am missing a job.15:03
Keybukdepends what you want your system to do, really ;15:03
Keybuk:p15:03
ristokI want it to open busybox ash actually.  So probably I need something to start it...  Right ?15:03
Keybukright15:04
Keybukstart on startup15:04
Keybukconsole owner15:04
Keybukexec busybox sh15:04
Keybukthat's probably the most minimal unix config ever of course15:05
Keybukif that's all you have in /etc/init :p15:05
Keybukfor a start, the filesystems will be readonly, etc.15:05
ristokWell, there is already some stuff under /etc/init.  Some defaults.15:07
Keybukdepends what you start with15:07
Keybukupstart itself ships with a few example ones15:07
Keybukbut they probably don't boot out of the box without help15:08
ristokOk.15:08
ristokHelp ?15:08
ristokPaths, etc. ?15:09
Keybukyeah you need all the pinnings of a distro really15:09
Keybukno, code, scripts, executables, things15:09
ristokThat is for later..  Now I am happy if the base is ok ;)15:09
Keybuktypical bootish things:15:09
Keybuk- check the filesystems15:09
Keybuk - mount the filesystems15:09
Keybuk - load device drivers15:09
Keybuk - create device nodes in /dev15:10
Keybuk - start services15:10
Keybuk - start login services15:10
Keybukupstart doesn't come with jobs to do any of that15:10
Keybukbecause that stuff is fundamentally different on every distro15:10
ristokI understand..  I am actually a bit lazy hacker, just installing packages from ubuntu.  And at least with those there are .conf files.15:11
Keybuk*nods*15:11
Keybukubuntu is a good place to star15:11
Keybukt15:11
Keybukthe key package is montall15:12
Keybukmountall15:12
Keybuktyping ... hard15:12
ristokI have that one.15:12
Keybukyou'll need udev as well15:12
ristokI have that one as well.15:12
Keybukthen you're pretty good to go15:12
ristokI ahve also dbus.15:12
ristokinitscripts15:12
ristoketc.15:12
Keybuk*nods*15:12
ristokOk, I did add the .conf file with the stuff you mentioned before..  And it just hangs.  I think it is not running the .conf.15:19
Keybukyou may be missing other packages15:19
Keybukif you don't have ubuntu-minimal installed, install that15:20
Keybuk(or each of the packages listed until you find the one that makes thing work)15:20
ristokI have ubuntu minimal as well.15:20
Keybukare you using the ubuntu upstart deb or the upstream tgz?15:20
ristokdeb.15:21
ristokBut my miniubuntu does not have upstart.15:21
Keybukhuh?15:22
ristokMaybe I have then some old version.  But I downloaded less than month ago from miniubuntu page, the last stable.15:22
KeybukI don't know what miniubuntu is15:23
ristokAah.. ok.15:23
ristokThere is a minimal cd for installation.15:23
Keybukif you want to learn how Upstart works, you're MUCH better off starting with a working system15:23
ristokI have a working system as well.15:23
ristokBut have to admit that it is kinda blindfolded without console.  Just trying to figure out what is missing.  No error messages nothing.15:24
Keybukwhy would you have an error message?15:24
Keybukif you haven't told upstart to create a console, it wouldn't know to give an error15:24
ristokI did add the script you told me.  I understood that was the simplest way to start it ?15:25
Keybukthere are *plenty* of Linux systems without consoles15:25
Keybukand did that job run?15:25
ristokProbably not.15:25
ristokOr else I would have a console, right ?15:25
Keybukthat's not a very helpful answer15:25
ristokWell, I do not know if that was run or not.15:26
ristokI do not have any logs to check.15:26
Keybukok, that's the first thing to debug then15:26
Keybukboot with verbose and a scroll lock15:26
Keybukpage through the output15:26
ristokThe log ends to tty device added15:26
ristokAs far as the history goes.15:26
ristokThose seem to go ok.15:26
Keybukthen upstart is clearly running jobs and processing events15:27
ristokFinished block-device-changed event was the last one.  And I think it also worked just fine.15:27
ristokYes, upstart is working.15:27
Keybukhttp://upstart.ubuntu.com/wiki/Debugging15:27
ristokBut there is no information why the script to start console did not run.15:27
Keybukthere is. it's probably just scrolled off the top of your screen15:28
ristokHighly possible.15:28

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