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

ionLeft to right: open /var/log/foo for appending and replace fd 1 with it; replace fd 2 with a copy of fd 1. At that point, both file descriptors point to the file.00:01
tanepiperyea thats better, no horrible output on the idle server screen now - thanks :)00:01
djszapiHow can I checkout the bazaar codebase, what is the VCS url ?08:12
djszapihttp://upstart.ubuntu.com/wiki/CompilingUpstart - http://upstart.ubuntu.com/wiki/ContributingCode - did not find the information here.08:12
plautrbadjszapi: On the first page is: 1. Get the code. Libnih is a utility library used by Upstart.  -> bzr branch lp:upstart08:23
plautrbadjszapi: web frontend is here https://launchpad.net/upstart08:23
djszapiplautrba: that is just change the branch, but does not checkout the repository...08:23
djszapino, webinterface is not enough for hacking...08:23
plautrba       bzr branch FROM_LOCATION [TO_LOCATION]08:23
plautrba              Create a new branch that is a copy of an existing branch.08:23
djszapi10:23 < djszapi> plautrba: that is just change the branch, but does not checkout the repository...08:24
plautrbadjszapi: have you tried it?08:24
plautrbalp:upstart is existing launchpad branch and you probably want local copy of that08:24
djszapik, it does not work08:25
djszapiwhich port does it use ?08:25
plautrbait works for me http://fpaste.org/YwdF/08:27
djszapiglad to hear, but it does not help anything for me. Please try to answer my question, I am newbie at bazaar and I do not even like it.08:28
plautrbasorry, i can't help you with bazzar, i use only three commands (branch, pull, diff) but try http://doc.bazaar.canonical.com/bzr.dev/en/tutorials/using_bazaar_with_launchpad.html08:31
djszapipfff08:31
djszapiit is not about frikking bazaar08:32
djszapicome on I need the information which port it uses08:32
plautrba$ grep bzr /etc/services 08:32
plautrbabzr             4155/tcp                # Bazaar version control system08:32
plautrbabzr             4155/udp                # Bazaar version control system08:32
djszapiwe have got a secure enough proxy, only http is enabled.08:32
djszapity.08:32
djszapiso I cannot checkout...08:33
djszapiso I cannot work on it then...08:33
plautrbadjszapi: you can allways use tarball and apply patches08:35
djszapiwhere can I download the  tarball of HEAD master ?08:35
plautrbanot sure if there is tarball of HEAD master but there is tarball of last release 08:37
djszapi:))))08:39
djszapifunny.08:39
djszapithere is no http way in case bazaar to clone.08:40
djszapiit is silly enuff.08:40
djszapiA general way about a git repository: http/ssh/git/ protocol availability.08:42
djszapibtw, last release does not really contain the updated codebase...08:42
djszapinor the libnih stuff...08:42
djszapilogging.c fex.08:43
plautrbathere are 6 commits in upstart after release, it's not so much work to download patches from lp and apply them locally08:45
djszapipfff08:45
djszapino sorry I am not gonna spend my times with things I should not deal with.08:47
djszapiI am just skippign this "patch is welcome" thingy.08:47
plautrbait's like, sorry i locked my door so i can't go walk your dog ...08:48
djszapimaybe that is why this software is abandoned08:49
djszapiand no contributors apart from Scott.08:49
cchildresshi all. i'm having trouble getting vsftpd and upstart to play nice. whenever i issue the "restart," "stop," or "status" commands on vsftpd, I get teh error "unknown instance"14:32
cchildressif i issue the "start" command it tells me vsftpd is started/starting, and gives a pid14:32
cchildressbut then "sudo status vsftpd" immediately after gets "stopped/waiting"14:33
cchildresslike it says it's starting, but doesn't get started14:33
cchildressany ideas? maybe i'm doing something wrong?14:33
JanCcchildress: do you use "expect fork" or "expect daemon" ?14:45
JanCit sounds like apport is looking at the wrong PID14:45
JanCupstart I mean14:45
cchildressJanC: not that i'm aware of14:52
cchildressi'm not even sure what expect is haha14:52
JanC"man 5 init" explains all stanzas you can use in upstart jobs14:53
cchildressi'll check on that14:53
JanCbasically you tell upstart that there will be 1 or 2 forks to follow14:54
JanC(in future versions this should become more flexible)14:54
cchildressi'm sorry, but i'm not sure that i follow you14:54
cchildressi know what a fork is, but what is meant by upstart following them?14:54
cchildressall i really want to do, is be able to start or stop vsftpd14:55
cchildressthat's all14:55
cchildressright now i can't seem to do either14:55
JanCit needs to "follow" the forks to know what the PID of the actual running process is14:55
cchildressok14:56
cchildressyes that makes sense14:56
cchildressso are you saying that i'm getting the "unknown instance" error because it's not following the forked process correctly?14:58
cchildressok so i read through that manpage...but what am i supposed to make of it?14:59
cchildresssorry i must seem pretty slow but i feel like i'm trying to do something so simple15:01
JanCcchildress: it seems like vsftpd has an upstart job in Ubuntu 10.10, if you want I can put it on a pastebin for you15:02
cchildresswhat would i do with that? place it in /etc/init?15:02
cchildressand wouldn't that already be installed on my system when i installed vsftpd?15:02
JanCare you using Ubuntu 10.10 ?15:03
cchildressJanC: no, i believe i'm sticking with 10.04 for now15:04
JanCcchildress: is there a vsftpd.conf in /etc/init/ ?  if not, 10.04 was still using a sysvinit script in /etc/init.d/15:05
cchildressfwiw, http://ubuntuforums.org/showthread.php?t=158856815:07
cchildressyes, there is a vsftpd.conf in /etc/init15:07
JanCthat you on the forums?15:09
cchildressso i see how i can keep it from running...but not how to check the status or stop it from the command line15:09
cchildressno, just someone who has similar problems15:09
cchildressi'm just trying to figure out why the standard "sudo service vsftpd stop15:11
cchildresswon't work15:11
cchildressand why i can't check on the status15:11
cchildressis there something wrong in the script or conf? or am i doing something wrong?15:12
JanCvsftpd seems to start/stop/status/etc. fine on my 10.10 system15:13
JanCdid you change anything in the configuration of vsftpd?15:13
cchildressno15:14
cchildressi have avoided that because i don't want to break things15:14
JanCno debug info in log files?15:15
cchildressthe vsftpd.log in /var/log is blank15:16
cchildresswhat other log file can i check? there is not one for upstart15:17
cchildressi'm at such a loss >.<15:27
cchildressi loved the good old init.d scripts haha15:27
JanCcan you start vsftpd manually?15:29
cchildressthis thread has teh same problem: http://ubuntuforums.org/showthread.php?p=1036195615:34
JanChm, that looks like vsftpd forks one more time than expected?15:35
cchildressmaybe, but i don't know enough to say15:37
cchildressi'm surprised that others haven't reported this problem15:37
JanCdo you also see the different PIDs like in that forum post?15:37
cchildressmy setup is pretty generic15:37
cchildressi just checked through every running process...there is no vsftpd running15:39
JanCso you start it, and then there is no vsftpd in ps output?15:39
cchildressyeah15:39
cchildressit gives me a pid, but i immediately check taht pid and nothing is running15:40
cchildressit's like it's saying "ok i'm running here" but then silently failing or something15:40
JanCbut did you check for a vsftpd with another PID like in that forum thread?15:42
cchildressyeah15:42
cchildressnot a single instance of vsftpd is running15:42
cchildresseven though the start command doesn't generate any errors15:42
JanCdo you have a listen option in /etc/vsftpd.conf ?15:45
cchildresslisten=yes15:45
cchildresslocal_enable=yes15:45
cchildresswrite_enable=yes15:45
cchildressstrange little problems like this drive me nuts15:50
JanCcchildress: what happens when you run vsftpd from the command line?15:54
cchildress500 OOPS: config file not owned by correct suer, or not a file15:56
cchildressi think we have a winner here...15:56
cchildressfwiw, /etc/vsftpd.conf is root:root15:56
cchildress/etc/init/vsftpd.conf is also root:root15:57
JanCsounds right15:57
cchildressso i don't know why it's complaining that the owner isn't right15:57
cchildressi think i found my problem15:59
JanCdid you start vfstpd as root?15:59
cchildressyeah i found my problem15:59
cchildressvsftpd was failing to launch because "use_ssl" was enabled in /etc/vsftpd.conf15:59
cchildressyet there was no rsa cert15:59
cchildressso i commented out the line16:00
cchildressand now it runs fine16:00
cchildressfor some reason, vsftpd never gave an error or even errored on the log, when run by upstart16:00
cchildressonly by manually running it as root did i get the error about ssl16:00
cchildressso frustrating! lol at least it works now16:00
cchildressthank you very much for patiently helping me, JanC 16:02
cchildressbtw, i'd like to report this as a "bug", since vsftpd gave no errors. would i report this bug to the upstart team, or vsftpd team?16:03
SpamapScchildress: just vsftpd I think. upstart already has a feature planned to log the output of jobs, but for now the programs need to handle their own error logging.16:53
SpamapScchildress: if vsftpd doesn't have a "check my configuration" option then I'm not sure we can do much.16:53
cchildressfair enough16:54
cchildressif upstart is already planning to log job output, then the "bug" will get fixed in time anyway16:55
cchildressso i'll just leave it be. thanks for the info16:55
SpamapScchildress: its one of those things I'm really excited about for the future of upstart. :)16:58
SpamapSBecause I'm silly like that16:58
cchildressyeah but that's an important feature!16:58
SpamapSstate rewrite.. mmm.. ok.. but log my job output to a ring buffer.. SWEET16:58
cchildressfor instance, if upstart had logged job output, i'd have known what teh problem was in the first few minutes...not after a half hour of head-scratching16:58
cchildressbut anyway yes that sounds like a great feature17:00

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