Sunday, 2008-08-31

*** mrHat has joined #cc00:01
*** BobChao has quit IRC00:03
*** mrHat has left #cc00:03
*** veeliam has left #cc00:14
*** Sarterus has quit IRC00:16
*** Sarterus has joined #cc00:19
*** Sarterus has left #cc00:29
*** ereslibre has quit IRC00:30
*** EnRohbi has left #cc00:45
*** cB_ is now known as CharelB01:13
*** CharelB is now known as cB01:15
*** [mharrison] has joined #cc01:20
*** cB is now known as CharelB01:21
*** pmiller has quit IRC01:38
*** [mharrison] has quit IRC02:50
*** isforinsects has quit IRC03:48
*** isforinsects has joined #cc03:54
*** isforinsects has quit IRC04:01
*** Roderick__ has joined #CC04:21
*** isforinsects has joined #cc04:21
*** [mharrison] has joined #cc04:32
*** Roderick_ has quit IRC04:39
*** Roderick_ has joined #CC04:56
*** Roderick__ has quit IRC05:14
*** rohitj has joined #cc05:19
*** ankitg has joined #cc05:32
ankitgpaulproteus: Hi05:56
paulproteusHi ankitg!05:57
paulproteusWhat's up?05:58
*** [mharrison] has quit IRC05:59
ankitgI went over the python part ... seems like the only way to not read the whole file to memory is to read it character by character ... even readlines() reads the whole file into memory ... anyways, fixed that ... presently encountering some problems with S3Sync ... when looking at the S3 repo from the EC2 AMI, S3Sync shows me A1 though A4 and apps but no A5 ++ ... the i.creativecommons.org stuff is on A5 ... is it because of some varnish magic05:59
paulproteusankitg, That's false!06:00
paulproteusfor line in open(file):06:00
paulproteus   print line06:00
paulproteusThat's a buffered reader, I promise.06:00
paulproteusThat's not something I've experienced re: S3 from EC2.06:00
paulproteusCan you let me SSH in and see what you're seeing?06:01
ankitgopen on a .gz file without using gzip.GzipFile?06:01
paulproteusInteresting, a GzipFile.06:01
paulproteusStill, you should be able to get away with:06:01
paulproteusfor line in gzip.GzipFile(filename):06:01
ankitgall the logs are Gzipped06:01
paulproteus   print line06:01
ankitgah, okie, I was trying for line in gzip.GzipFile(filename).$read_something() ... that works ... why don't people mention that in examples more often ... anyways, thanks, will update the python part accordingly ...06:04
paulproteusSure.  This is why I say to ask me questions sooner rather than later!06:04
paulproteus(-:06:04
ankitgas for the S3 thing ... you want me to give the AMI a static IP and pass that to you or with this work since you have the environment setup :: ssh -i id_rsa-pstam-keypair root@ec2-75-101-255-228.compute-1.amazonaws.com06:05
paulproteusI think that I don't have your private key.  But if you email it to me, I'll be able to log in.06:06
* ankitg doesn't trust email any more but proceeds with it anyways ...06:06
*** rohitj has quit IRC06:08
ankitgmail sent ... it's a fwd-ed mail so check filters accordingly ...06:10
paulproteusankitg, i mean the *ssh* private key.06:11
paulproteusThe id_* file you have created as part of setting up the machine.06:11
ankitgah the one I generated for the EC2 ... right ... let me just send that ...06:12
paulproteusid_rsa-pstam-keypair and its matching id_rsa-pstam-keypair.pub.06:13
* paulproteus nods06:13
paulproteusI don't actually probably need the .pub.06:13
ankitgerm, did you get it yet?06:22
paulproteusYes.06:23
ankitgphew ...06:24
paulproteusI'm in.06:24
paulproteusNow let me see about this S3sync issue.06:25
ankitgokie ... I did a ./s3cmd.rb list ccommons:var/log/apache/a5 ... returns nothing ... then I did ./s3cmd.rb list ccommons:var/log/apache and went all the way, only till a4 no a5 ...06:25
paulproteusHow do I set up the environment variables the way s3sync wants them?06:27
ankitgexport AWS_ACCESS_KEY_ID= & export AWS_SECRET_ACCESS_KEY= Or a yml file06:27
ankitgemail the keys to you / Gtalk?06:28
paulproteusDo you have those conveniently stored somewhere on the AMI?06:28
paulproteusJust put them on the AMI.06:28
ankitgah, okie06:28
ankitgdone06:29
paulproteus...where are they on the AMI?06:31
ankitgsomething is wrong, I just put them there ... and I don't see anything that you are doing on the AMI ... I thot we were supposed to be seeing the same screen?06:33
paulproteus...no.06:33
paulproteusThat's not how SSH works.06:33
paulproteusWe can *make* it work that way, but that's not the default.06:33
ankitgbleh, okie, I'll put them on the AMI06:34
*** [mharrison] has joined #cc06:34
ankitgright, I thot it was setup that way coz I mis-read something you wrote ... nvm, putting them there now ...06:34
paulproteusCool. (-:06:35
ankitgI am assuming this should work :: scp -i ~/.ec2/id_rsa-pstam-keypair AWS_keys root@ ec2-75-101-255-228.compute-1.amazonaws.com:/root06:41
paulproteusYou added a space.06:43
ankitgdid I get something wrong, coz this is also going into an infinite loop of "give me a password"06:43
paulproteusroot at space ec2 whatever06:43
paulproteusshould be: root at  ec2 whatever06:43
paulproteusOtherwise it looks okay to me.06:43
ankitgah, okie, done06:44
paulproteusankitg, I see what you mean about it not having a5 when looked-at from the AMI.06:45
paulproteusBut shouldn't you be looking at the Varnish logs anyway?06:45
paulproteusNot that I see where those are stored, anyway.06:45
ankitgthe i.creativecommons.org part is in apache/a5 ...06:45
paulproteusdomU-12-31-39-00-B5-53 s3sync #  ./s3cmd.rb list ccommons:/var/log/apache/a5/06:46
paulproteusThat works for me now.06:46
paulproteusBut it didn't 30 seconds.06:46
paulproteus(ago)06:46
paulproteus"They must have changed something in the Matrix."06:46
ankitgit returned --------- to me ... and has been doing that for a while ...06:47
paulproteusYes - retry?06:47
paulproteusI promise you that:06:47
paulproteus"They must have changed something06:47
paulproteusEr.06:47
paulproteusdomU-12-31-39-00-B5-53 s3sync #  ./s3cmd.rb list ccommons:/var/log/apache/a5/06:47
paulproteusgives me output.06:47
ankitgjust did ... same O_o )-:06:47
paulproteusOkay, type this:06:47
paulproteusscreen -x06:48
paulproteusYou'll now share my screen.06:48
ankitgdomU-12-31-39-00-B5-53 s3sync # ./s3cmd.rb list ccommons:var/log/apache/a506:48
ankitg--------------------06:48
paulproteusI have a slash before var.06:48
paulproteusI figured it by doing:06:48
paulproteus./s3cmd.rb list ccommons:06:48
*** jonico has joined #cc06:48
ankitgbut it works with the / upto apache O_o06:48
ankitg*withuot06:48
ankitg*s / wihuot / without06:49
ankitgok, bad keyboard day.06:49
paulproteusI have 36h before my evaluation is due.06:49
paulproteusWell, thirty-six hours and ten minutes.06:49
paulproteusJust so you know. (-:06:49
ankitgbut ./s3cmd.rb list ccommons:var/log/apache works and ./s3cmd.rb list ccommons:var/log/apache/a5 doesn't ... O_o06:50
paulproteusListen.06:50
paulproteusS3 doesn't have actual paths.06:50
paulproteusEvery filename is really just a name.06:50
paulproteusSo there are files called literally "var/log/apache/a4/access.log.whatever.gz"06:50
paulproteusand also "/var/log/apache/a5/whatever/else/access.log.whatever.gz".06:50
paulproteusBut those are just names, and they have a different first character.06:50
paulproteusIt must be some ridiculous typo in nkinkade's upload scripts.06:51
ankitgokie, understood.06:51
paulproteus(-:06:51
paulproteusI'm sorry if I come off too patronizing.06:51
ankitgnot at all ... the darn thing makes sense now. (-:06:52
paulproteusGreat. (-:06:52
*** jonico has quit IRC06:53
ankitgokie, thanks for all the trouble-shooting ... now I go make those python scripts usable and run them ...06:53
paulproteusSure - ping me when you need me.07:07
*** Roderick__ has joined #CC08:43
*** Roderick__ has joined #CC08:44
*** Roderick_ has quit IRC08:56
*** Roderick_ has joined #CC09:08
*** Ekushey has joined #cc09:11
*** Roderick__ has quit IRC09:27
*** ereslibre has joined #cc09:46
*** Ekushey- has joined #cc10:03
*** Roderick__ has joined #CC10:15
*** Ekushey has quit IRC10:24
*** Roderick_ has quit IRC10:33
*** Ekushey- has quit IRC11:22
*** Roderick_ has joined #CC11:49
*** Roderick__ has quit IRC12:07
*** BobChao_ is now known as BobChao12:42
*** sama has joined #cc12:45
*** sama has quit IRC14:20
*** skxpl has quit IRC14:43
*** skxpl has joined #cc14:49
*** sama has joined #cc15:07
*** mlinksva has joined #cc15:07
*** isforinsects has quit IRC15:27
*** isforinsects has joined #cc15:29
*** mlinksva has quit IRC15:42
*** BobChao has quit IRC15:49
*** BobChao has joined #cc16:08
*** balor has joined #cc16:44
*** ereslibre has quit IRC16:49
*** skyfalle_ is now known as skyfaller16:49
*** isforinsects has quit IRC17:13
*** isforinsects has joined #cc17:15
*** [mharrison] has quit IRC17:18
*** BobChao has quit IRC17:24
*** isforinsects has quit IRC17:32
*** isforinsects has joined #cc17:47
*** Danny_B has quit IRC17:53
*** _Danny_B_ has joined #cc17:54
*** _Danny_B_ is now known as Danny_B17:54
*** ereslibre has joined #cc18:09
*** ircltrox-NL has joined #cc18:24
*** BobChao has joined #cc18:25
*** ircltrox-NL has quit IRC18:33
* ankitg has to reboot now ... too many things not responding ...18:50
*** ankitg has quit IRC18:50
*** BobChao has quit IRC19:14
*** ankitg has joined #cc19:15
*** balor has quit IRC19:42
*** sama has quit IRC20:32
*** Zero-One has joined #cc20:34
Zero-OneHi there!20:34
*** Zero-One has quit IRC20:36
*** ftobia has joined #cc21:07
*** isforinsects has quit IRC21:33
*** ftobia has quit IRC22:03
*** ereslibre has quit IRC23:23
paulproteusankitg, Howdy.23:23
paulproteusankitg, I can solve your problem re: stdout.23:24
*** mlinksva has joined #cc23:31

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