[06:01:13] Hey all, I'm logging into the wikidata-suggester instance through bastion1.pmtpa.wmflabs. My username is nilesh. After creating a new user hadoop, I'm trying to setup password-less authentication to localhost. I've done ssh-keygen and added the pub key to authorized_keys. I had to make a couple of changes to /etc/ssh/sshd_config like uncommenting AuthorizedKeysFile %h/.ssh/authorized_keys. When I try to do ssh localhost, [06:01:31] If you are having access problems, please see: https://wikitech.wikimedia.org/wiki/Access#Accessing_public_and_private_instances Connection closed by 127.0.0.1 [06:09:16] Can anyone help me out with this? I can email you the verbose log for ssh if you need it. [06:09:32] http://www.mediawiki.org/w/index.php?title=Extension:SwiftCloudFiles&oldid=602404&diff=cur [06:09:37] (unrelated) [11:27:13] Isn't this tool http://toolserver.org/~jarry/templatecount transferred to labs yet? [11:27:57] jarry1250: are you owner of it? it is super useful tool [11:39:12] AzaToth ping [11:39:24] AzaToth how do I create a config file in /etc in .deb package [11:39:34] AzaToth so that it never get deleted when you update it [11:42:05] petan: all files ending up in /etc per default is marked as config file, and is not deleted on removal [11:42:22] this offcourse depends on the fact you are making the deb packages the right™ way [11:42:28] AzaToth why it doesn't work to me :( [11:42:30] i.e. not making them manually [11:42:48] AzaToth can you point me to guide where is described how to do it right way? [11:42:56] the official guides all seem to do it wrong way [11:43:00] I don't know what you mean with "never gets deleted when you update it" [11:43:13] I have a package with config which ends in /etc/blabla [11:43:22] k [11:43:23] when I change it and reinstall the package it get reseted [11:43:32] I don't want that [11:43:40] oh I see [11:43:51] well, that's something else [11:44:12] ok, how can I make dpkg not remove the config file and recreate it? [11:44:37] you might want to use ucf instead of installing them [11:44:47] what is it [11:45:13] man ucf [11:46:02] ok is there some example package which use it [11:46:16] petan: but generally if you update the package, and you haven't made any changes in the config file, it's logical it updates the config file [11:46:26] otherwize it tries to merge the changes [11:46:30] yes but I made changes and they got lost [11:46:33] that's the normal debian behavour [11:46:43] hmm [11:46:49] no merge, just merciless overwrite [11:47:07] and you are not using any funky dpkg options? [11:47:14] like --force-conf-new [11:47:15] I am using dpkg-deb --build [11:47:22] nothing else [11:49:23] I think that the ssh server is not perfectly configured, because the connection often dies [11:49:34] fale which one? [11:50:30] petan: tools-login [11:50:52] let me check.. [11:52:46] fale are you sure it's not your connection because it works to me [11:52:58] I mean, I am connected for days [11:54:11] petan: I have 3 ssh open: 1 to login.toolserver.org, 1 to tools-login.wmflabs.org and 1 to a company server. The other two are still up and the labs one dropped (this happens every 5~10' of inactivity) [11:54:27] maybe is because is the only US server? [11:55:01] maybe... :p [11:55:32] petan: the problems of living in an old continent :D [11:55:42] I am living in EU as well [11:56:01] petan: north or south? [11:56:08] central ;) [11:56:23] :D good connection in DE-FR [11:56:30] fale: might be your inactivity. Try setting up pings. [11:56:44] nah, there is no inactivity timeout, but it may be in your client [11:56:50] keepalives* [11:56:54] definitely not server side check [11:56:55] valhallasw: thanks for suggestion :) [11:57:10] petan: maybe clientside for some odd reasons [11:57:14] http://www.howtogeek.com/howto/linux/keep-your-linux-ssh-session-from-disconnecting/ [11:57:22] it may be even your router [11:57:46] some "intelling modems" are killing open connections that don't transfer any data because they could be some backdoors :P [11:57:52] * intelligent [11:57:54] fale: also try mosh [11:58:02] petan: good point [11:58:12] YuviPanda mosh is evil XDD I <3 it but.... [11:58:12] fale: http://mosh.mit.edu/ [11:58:16] YuviPanda: yep, I think I'll install it [11:58:18] YuviPanda: did you see memory usage? :D [11:58:21] fale: :) [11:58:36] YuviPanda: or: sudo apt-get install mosh :P [11:58:37] YuviPanda 30% of memory usage on -login are moshes [11:58:44] still better than getting your connection dropped all the time, petan :) [11:58:58] heh, well, maybe we should find a solution to running it as a deamon or something... :P [11:59:04] yes, but someone should write mosh in c++ [11:59:24] LOL fail [11:59:28] it is written in c++ [11:59:30] :D :D [12:00:08] petan: good code can be written in java and bad code can be written in C++... I know, it's hard but possible :D [12:00:58] fale: depends... even best written code in java for simple things will necessarily need more resources than equivalent in c, just because interpretor needs more resources. But that is just for some specific cases [12:01:15] for all big projects java or c# is definitely good idea, for small daemons or tools c or c++ wins [12:01:26] Android *g* using for irrssi on mobile ...:P [12:01:46] lol irssi [12:01:59] that explain why you people still have problems with irc [12:02:28] -r [12:02:40] * Steinsplitter dos not user irssi :P [12:03:07] petan: see pm [12:03:28] OMG 14:03 :O [12:06:45] oh, mosh is based on protobufs [12:06:46] nice [12:12:27] YuviPanda: its nice to use :) thanks for the suggestion :) [12:12:32] :D [12:12:57] it feels a little weird to me because it can be disconcertingly fast [12:13:14] :D [12:13:34] YuviPanda: I had expected more to be honest :p but it's certainly better [12:13:52] forcing prediction also helps a bit [12:14:10] valhallasw: indeed. Now if only it had a deamon mode of sorts so we can have one deamon running rather than one executable for everyone... [12:14:32] * YuviPanda considers just going to movies and drinking this weekend, rather than writing cod [12:14:33] ee [12:15:16] YuviPanda: some users have even multiple instances :D [12:15:28] fale: not sure if that is intentional, even :) [12:15:30] now if only the speed of light in fibers was higher than 0.6c [12:16:12] hehe :) [12:16:48] I guess we should have an extra login server once labs is extended into knams [12:18:10] * YuviPanda installs his vim scripts on the server [12:18:49] YuviPanda: whym has 8 and wolf 5 :D [12:19:00] zombies maybe? [12:19:09] I have only one, right? [12:19:15] YuviPanda: if your computer crashes with mosh open, the connection is not closed [12:19:33] and it's impossible to reconnect because the connection info is not stored locally [12:19:38] YuviPanda: you don't [12:21:05] valhallasw: yeah, so... zombies [12:21:24] oh, vim powerline works on the terminal? [12:21:26] niiice! [12:24:25] * YuviPanda tries ctrlp [12:35:33] tada, that's a nice setup now :) [12:35:53] any idea how I can 'forward' my vimrc files to tool accounts? [12:35:58] scfc_de: petan valhallasw ^? [12:36:04] yes [12:36:10] without having to symlink them? [12:36:12] no [12:56:00] YuviPanda: Wasn't this discussed on labs-l? "vim -c ~yuvipanda/.vimrc" or whatever the correct syntax is? [12:59:51] scfc_de: hmm, so I just need to have it group readable? [12:59:56] * YuviPanda checks [13:00:23] YuviPanda: http://tech.groups.yahoo.com/group/vim/message/52715 [13:00:28] YuviPanda: No, because your account is in wikidev, but the tool-account not. [13:00:43] YuviPanda: I enviroment is passed through in become [13:00:51] YuviPanda: so you can to export VIMRC=... in your own .profile [13:01:16] YuviPanda: I think it needs to be world-readable. Is private information in there? [13:01:23] no [13:01:28] YuviPanda: and you'll have to have it world readable, because it typically will not have the same group [13:01:36] YuviPanda: also you need to a+x your $HOME [13:02:12] hmm [13:02:15] valhallasw: so .vimrc is fine [13:02:24] but I keep bak, etc files in .vimruntime [13:02:27] so I guess I can't share that [13:02:46] YuviPanda: err, not sure. [13:02:50] BTW, and not to start a war, Emacs has TRAMP which you can use to ssh to a host, sudo to another account and edit as the latter. Vim doesn't offer something similar? [13:03:14] IIRC it does, but I've never really checked it [13:03:16] let me look [13:04:28] I think emacs just have bunch of memory leaks :P [13:04:30] right, netrw is enabled by default [13:04:37] haven't personally tried it, but [13:04:39] let me try [13:04:45] everytime there is some process causing troubles on -login it's emacs [13:05:14] YuviPanda: I use that (on Emacs) so I have only one frame and can copy & paste between different files on different hosts more easily. [13:05:19] scfc_de: also, it's different ways of working, I guess. I prefer navigating around in the shell, and opening up vim as and when necessary [13:05:43] also I don't think file navigation plugins like CtrlP will work with netrw [13:05:45] I still think we should just have a way to use scp as another user [13:05:53] that would make life /so much/ easier [13:06:02] valhallasw what you mean? [13:06:43] valhallasw: yeah, also scp will have issues ownership, I suppose [13:07:06] petan, YuviPanda: "scp nlwikibots@tools-login.wmflabs.org" [13:07:20] what would that be for :P [13:07:22] :D someday... :) [13:07:38] to be able to write stuff in /data/project/... *without* having to do take et al [13:08:06] I just don't understand why Cored dislike idea of -g and changing design of take... there is already sudo policy (even if it doesn't work) which should allow anyone chown anything in their home directories [13:08:38] if there is security policy made by Ryan I guess it wouldn't be insecure if take allowed that as well... [13:08:47] ...the point is not having tho chown *at all*. [13:08:51] petan: Emacs TRAMP uses only /bin/sh on the remote host (VSZ = 4400). [13:09:10] scfc_de: IIRC there's no TRAMP equivalent that works as transparently on Vim [13:09:22] the usual way of doing this is to ssh through, which of course has problems [13:09:38] scfc_de: ok, but anyway I don't know if these memory issues comes from plugins or emacs itself, but it uses too much resources, anywhere I saw it [13:11:33] petan: Hmmm: On my box: VIRT = 57688, RES = 38m. Hard to find beneath all those memory suckers like Chrome :-). [13:12:14] scfc_de yes, probably it works on most of configuration, just the one we have in labs is weird, or users who use it don't know how to use it :P [13:12:28] scfc_de: don't get me started. I never though I would actually use all the 8GB I have... [13:12:34] who knows what is going on inside of these emacs :D [13:13:10] valhallasw lol I have windows in this laptop and I am using almost whole 8gb of memory just by running "my computer" [13:14:06] seriously I can't even dream of running so many applications as I could on my 486 with windows 95 and 64mb of ram [13:14:37] modern windows need so much resources that on modern hardware they are slower than old windows on old hardware :D [13:15:16] I think this box has 2 GByte, and it works pretty well memory-wise. [13:15:27] (With Emacs.) [13:15:40] yes, my linux laptop (I had it on hackaton) has 2gb as well and it can do 100 times more than the windows one with 8gb [13:15:57] * YuviPanda needs to get back to Linux soon [13:16:00] waiting for this machine to die [13:16:03] I had to replace gnome with lxde in order to make it efficient though [13:16:11] gnome 3 is like 900mb of ram just after boot [13:16:17] too many java shit [13:16:56] YuviPanda so, you are waiting for your mac book pro to die? :D :D [13:17:04] Macbook Air, but yes [13:17:11] <3 air [13:17:16] but it's too expensive here [13:17:25] in US apple store they sell it quite cheap [13:17:36] but here it's like 40% more [13:18:22] YuviPanda why you don't install linux into it? [13:18:32] reduces battery a fair bit [13:18:35] plus is a pain [13:18:37] ah... [13:18:46] hey all, I have been following this interesting conversation for a few minutes, it's a conversation that I have twice every week with my acquaintances. :D [13:19:01] YuviPanda, why don't you try Pinguy or Ping-EEE linux? [13:19:31] * YuviPanda checks [13:19:32] They're ubuntu variations and the EEE version seems to consume a lot less battery power. [13:19:43] YuviPanda I will happily exchange my windows laptop for your air :D [13:19:46] hmm, ideally I'd like to run stock Debian Testing [13:19:55] petan: well, once you go Ultrabook you can never go back :) [13:20:04] YuviPanda I know :/ [13:20:05] so I need to replace this with either a Carbon X1 or an XPS 13 dev editio [13:20:06] n [13:20:08] but it's expensive :< [13:20:25] YuviPanda running debian testing are you sure? :D I was trying to install debian on this one [13:20:34] and I had huge troubles getting UEFI to work [13:20:41] nileshc: hmm, looks interesting! But I think my days of experimenting with distros are long over [13:20:47] debian installer needs a lot of updates for it to work with new hardware [13:20:50] :) [13:21:19] petan: part of the memory use is actually FS caching, but OK [13:21:26] its hardware is so new, that latest kernel 3.10 doesn't support it yet :( [13:21:33] I had to write own wi-fi driver :D [13:21:41] also: try running windows 95 on 486-era hardware. That was so. horribly. slow. [13:21:53] nileshc: updates, etc are unsure with custom distros. plus there might be nasty surprises here and there... [13:22:04] valhallasw I never count the caches :P [13:22:19] petan: well, where did you get the '8GB in use' number? [13:22:37] maybe in all that spyware / NSA software preinstalled by company I work for [13:22:45] we have so many supervising software and shit [13:23:18] tbh I don't know... but I am happy it handles firefox [13:24:47] petan: check the memory tab in resource monitor [13:24:58] YuviPanda: umm, you might be right, but till now I really had no problems with the Pinguy variations. They basically pack the raw ubuntu distros with all the goodies that are sometimes missing (all the codecs, file system drivers, wifi blah blah blah). Nothing else changes. When you do a uname -a or start up System Monitor, it's the same old ubuntu. I can't seem to go back to ubuntu after using these. :D [13:25:10] valhallasw: wow that is even worse than vmstat :D [13:25:17] nileshc: oh sure, but in that case I prefer doing the packing myself :P [13:25:28] usually they're just extra .debs or ppas... [13:25:40] free: 535mb [13:25:44] nileshc: not saying they're bad / good. Just that I don't do those anymore :) [13:25:46] petan: and stand-by? [13:25:53] valhallasw where is it? [13:25:56] Yeah, that's true. :) [13:26:08] petan: in the memory tab of resource manager [13:26:21] resource monitor? [13:26:26] you can also use the 'resource manager' button in task manager>performance tab [13:26:29] there is no resource manager thing [13:26:39] there is resource monitor button [13:26:45] I guess that is it [13:26:48] click it, and resource manager will start [13:26:55] nileshc: I think after playing with puppet here, next time I get a machine I'm going to set everything up with puppet or similar [13:26:55] then go to the memory tab there [13:27:00] think that's going to be a gamechanger [13:27:09] there you have in use / stand-by (= in use as cache), available [13:27:11] I would copy paste like from free :D but there is no way to copy other than making a screenshot [13:27:22] standby 960 [13:27:31] in use 5300 [13:27:38] free 400 [13:27:58] hardware reserved 200 modified 1300 [13:28:01] o.O [13:28:07] whatever these numbers mean [13:28:25] hardware reserved = e.g. video ram on laptops [13:28:35] oh this [13:28:47] I think linux doesn't even show that [13:29:33] "Modified (orange) This represents pages of memory that can be used by other programs but would have to be written to the page file before they can be reused." [13:31:12] YuviPanda: I have been pondering the same thought; till now I've been using a custom RPM that pulls in dependencies and stuff, but that doesn't solve more detailed configuration issues. So Puppet is probably the way to go for me as well. [13:31:49] scfc_de: yeah, but need to explore alternatives, I think. Chef, for example [13:32:07] puppet does have an automatic advantage because it is used so much [13:32:54] YuviPanda: Exactly. If I need to know Puppet for Wikipedia, no real incentive having to learn another language. [13:32:58] indeed [13:37:24] Hey all. I'm setting up password-less login for hadoop on a labs VM that's part of the wikidata-dev project. So, I'm logging into wikidata-suggester from the bastion server. I've done ssh-keygen and added the pub key to authorized_keys. I had to make a couple of changes to /etc/ssh/sshd_config like uncommenting: AuthorizedKeysFile %h/.ssh/authorized_keys. [13:37:32] When I try to do ssh localhost, it accepts the key, but says: [13:37:43] If you are having access problems, please see: https://wikitech.wikimedia.org/wiki/Access#Accessing_public_and_private_instances [13:37:44] Connection closed by 127.0.0.1 [13:38:29] I'm certain of one thing...it's accepting the pub key but closing the connection. [13:38:33] nileshc: ssh -v localhost [13:38:39] nileshc: or possibly -v -v or -v -v -v [13:39:00] or -vvv [13:39:08] yeah i've done ssh -vvvv localhost... should I share a public gist in github? [13:39:21] YuviPanda: shush, you're making me look like a unix noob [13:39:26] :-D [13:39:33] :D [13:39:36] :P [13:39:37] Any other safer method to share the log? [13:40:01] nileshc: unlisted pastebin that expires in an hour or so should not be too bad? [13:40:20] it doesn't include your private keys, so it should be OK to have it public [13:40:20] cool. one moment. [13:40:27] yes. [13:40:30] yeah, don't think there's anything that sensitive int that [13:42:25] http://pastebin.com/SvbZvx4V [13:42:36] * YuviPanda builds macvim [13:47:47] nileshc: what is your shell in /etc/passwd? [13:48:10] bash most probably. I'm checking. [13:49:43] valhallasw: it was initially /bin/sh. I changed it to /bin/bash [13:51:41] nileshc: hmm [13:52:12] nileshc: compare to http://pastebin.com/z3Uyrw64 [13:52:31] you get connection closed instead of debug1: Authentication succeeded (publickey). [13:52:59] but I have no clue why. Maybe the server ssh log can tell you something? [13:55:07] Hmm...I'll try tailing that.. :/ [14:06:20] valhallasw: Here's the sshd verbose output from /var/log/auth.log : http://pastebin.com/WSh8Gf3K [14:07:22] funny. Found matching RSA key. Postponed publickey for hadoop from 127.0.0.1 port 50299. fatal: Access denied for user hadoop by PAM account configuration [14:07:59] check /etc/pam.d/ssh (according to google) [14:20:54] Hi, is Coren here? [14:21:02] No I'm not. [14:21:04] Coren: are you here? :P [14:21:07] :D [14:21:10] Darkdadaah: he is not [14:21:24] damn [14:21:33] this sounds little bit like if we were all living @ Coren's house [14:22:17] Darkdadaah: What's up? [14:22:19] Coren: is there any plan to enable apache 2.4 on beta? :P [14:22:25] I tried and I failed [14:22:37] it doesn't like version of suphp we have [14:22:38] petan: There's a lot to do to build it right for Precise. [14:22:49] I'm still on it, inbetween everything else. [14:22:52] ok [14:22:57] are you using beta for it? :o [14:23:03] Coren: the link http://tools.wmflabs.org/?Rules (when we login via ssh to tools) doesn't link anywhere [14:23:15] !rules [14:23:30] !rules is there is only 1 rule in labs: WP:IGNORE [14:23:30] Key was added [14:23:35] Darkdadaah: That's because our Happy Fun Lawyers are almost, but not quite, done working the TOS. :-) [14:24:30] So until then it's free for all? :P [14:25:46] Darkdadaah: No, you are just subject to my capricious whim. :-) [14:26:07] Rule of the day! No vowels on the command line! :-) [14:27:09] That's harsh >< [14:27:43] I can't even "become" my tools then :-( [14:28:17] but you can become my tool... now go and clean the dishes [14:28:33] :0 [14:28:44] I hope you don't mind some broken dishes. [14:28:52] all my dishes are broken [14:29:10] everything's broken... except for wm-bot [14:29:20] wm-bot: <3 u [14:29:20] Hi petan, there is some error, I am a stupid bot and I am not intelligent enough to hold a conversation with you :-) [14:29:29] meh [14:29:37] This is sad. [14:29:37] I need to implement some intelligence to it [14:46:06] Darkdadaah: Sure you could. For instance, to become csbot, I could '/usr/*/b*/b?c?m? $(/bin/ech* csbpt|tr n-q m-p)' [14:46:35] Rather '/?sr/*/b*/b?c?m? $(/bin/?ch* csbpt|tr n-q m-p)' [14:46:52] Still one i remaining :-) [14:47:05] And a U. Forgot to check the paths. [14:50:12] At any rate, creative use of globs and tr should suffice. :-) [14:52:14] I wonder what is worst: the command itself, or the fact that I understand what it actually does? [14:57:22] glob-N [14:57:23] :) [15:03:31] I have half a mind to try that globstrous command on my shell, but it scares me to no end. [15:04:08] hmm, the second * after /usr/ could be malicious :) [15:04:50] :P [15:06:11] Just created a tool, but for "become not-in-the-other-language" I keep getting "sudo: sorry, a password is required to run sudo". Wasn't added to the group either. [15:06:26] Can modify files in the tool dir, though [15:06:31] magnus__: relogin. [15:06:35] tried that [15:06:50] from tools? [15:06:57] tools-login [15:07:05] (er yes, of course...) [15:07:17] just tried again, no joy [15:09:36] You need to ask higher beings then, such as Coren or petan. [15:09:57] (or the new(er) admin, scfc_de) [15:10:06] magnus__ you need to relog [15:10:18] petan: read backscroll :P [15:10:25] ah ok [15:10:27] hold on [15:11:20] magnus__ what is a name of your tool? [15:11:29] not-in-the-other-language [15:11:32] really... [15:12:06] magnus__ can you try to completely log off and ssh back? like completely out of labs [15:12:15] because I am pretty sure this has something to do with your session [15:12:40] just did, still no joy [15:12:48] when I switch to you: [15:12:49] magnus@tools-login:~$ become not-in-the-other-language [15:12:50] local-not-in-the-other-language@tools-login:~$ [15:13:03] which server you try it on? [15:13:05] -login or -dev [15:13:26] -login [15:13:50] other tools do work? [15:13:54] yup [15:13:58] hey, dev works! [15:14:08] .profile poisoning? [15:14:15] I don't think so [15:14:31] -login still doesn't work though [15:14:35] restart your whole computer :D [15:15:04] ^ that could actually fix it :D [15:15:18] because I believe that your session just hang somewhere there :P [15:15:26] or maybe sudo -k [15:16:13] also, on -login there is no colorful ascii art anymore [15:16:35] eh... [15:16:39] in fact there is :0 [15:17:07] yes i still saw it this morning but not now [15:17:34] i'll reboot the machine later, meanwhile work on -dev [15:17:36] thanks [15:17:37] Maybe open a brand new terminal window? [15:18:24] petan: still probs? [15:18:41] AzaToth I didn't figure how to do that properly, so I just did it wrong way :P [15:18:42] had internet fnuckup before so our discussion went fubar [15:18:58] I use postinst to copy that file to /etc so that it never get removed [15:19:20] petan: but you are building the debs the right way? [15:19:28] magnus__ are you sure it isn't something related to mosh etc? [15:19:36] AzaToth I /think/ [15:19:49] AzaToth hard to ask newbie if guide they were using was right [15:19:55] petan: I get the feeling you are working in a DEBIAN directory instead of a debian dir [15:20:00] petan not using mosh AFAIK? [15:20:14] magnus__ mosh definitely doesn't show that colorful logo [15:20:28] petan: which package are you referring to? [15:20:33] my own [15:20:37] linky? [15:20:44] so I can see wtf you have done [15:20:45] AzaToth linky to what? :P source code? [15:20:50] yes [15:20:55] ok... [15:21:29] check out, run ./debian https://github.com/benapetr/terminator [15:22:05] petan, how do chmod folders only recursively. [15:22:06] that's the wrong way™ [15:22:17] Cyberpower678 -R option [15:22:26] petan: what you are doing is low level deb building [15:22:35] How will it apply to folders and not files? [15:22:38] AzaToth link me to guide that describe it correctly [15:22:43] no one except the really perverse do that [15:22:53] Cyberpower678 sec phone [15:23:21] What the fuck ist this "Selennium user"? [15:23:24] petan: http://www.debian.org/doc/manuals/maint-guide/index.en.html [15:23:47] Steinsplitter, used bt Selenium;) [15:24:04] jepp, i know that this is a testing.framework [15:24:19] but what Sellenium_user is testing in the BetaCluster? [15:24:23] Cyberpower678 chmod some-mode $(find . -type d) [15:24:58] !chmod is recursively chmod g+s all folders starting with pwd: chmod g+s $(find . -type d) [15:24:58] Key was added [15:25:33] MaxSem: it is not possible to interfere the selenniumuser? [15:25:45] interfere? [15:26:02] AzaToth is there some more simple guide, like with examples how to do stuff [15:26:18] this is looking like a bible to me [15:26:27] bible of debiantology [15:26:49] MaxSem: disturb [15:27:25] petan, now how about files only? Preferrable in the $HOME/Peachy directory [15:27:56] Cyberpower678 same just -type f [15:28:25] chmod 000 ($find $HOME/Peachy -type f) [15:28:46] that is probably not what you want but it's still more secure than 777 :P [15:29:30] !bible is debian bible: http://www.debian.org/doc/manuals/maint-guide/index.en.html [15:29:30] Key was added [15:30:22] petan, -bash: syntax error near unexpected token `(' [15:31:43] scfc_de good to know you are admin, now you can go to #wikimedia-labs-requests and clear the backlog :P [15:32:09] it's waiting just for you :D [15:32:39] oh, sorry [15:32:39] chmod 000 $(find $HOME/Peachy -type f) [15:32:41] Cyberpower678 ^ [15:40:02] petan: cannot find -lproc [15:40:11] are you referring to procps? [15:40:52] depends on version of your system [15:40:56] you can see 2 makefiles there [15:40:58] petan, can you verify that you cannot access /data/project/cyberbot/Peachy/Configs as a normal user? [15:41:11] current ubuntu use libproc, latest debian sid needs libprocps, AzaToth [15:41:20] it's same, just name is different [15:41:54] petrb@tools-login:~$ cd /data/project/cyberbot/Peachy/Configs/ [15:41:56] -bash: cd: /data/project/cyberbot/Peachy/Configs/: Permission denied [15:42:26] petan try loading a meta.cfg in that directory. [15:42:52] petrb@tools-login:~$ file /data/project/cyberbot/Peachy/Configs/meta.cfg [15:43:05] eh [15:43:11] did you receive the second line too? [15:43:17] petan: Coren scfc_de going to post to labs-l about Redis now. [15:43:17] my bouncer is fucked up lol [15:43:19] * YuviPanda drafts blog [15:43:21] err [15:43:24] * YuviPanda drafs post [15:43:31] petan, what's the result? [15:43:40] /data/project/cyberbot/Peachy/Configs/meta.cfg: ERROR: cannot open `/data/project/cyberbot/Peachy/Configs/meta.cfg' (Permission denied) [15:43:47] good. [15:43:48] petan: you have a configure made auto autoconf, but no coonfigure.ac/in [15:44:17] AzaToth oh I forgot to push the file there... hold on, but it's just a draft anyway [15:44:23] heh [15:44:42] petan: you can use pkgconfig for procps [15:44:53] AzaToth ok [15:45:08] it's there.... [15:45:13] petan, thanks. I fixed most of the gid and permission problems in that directory. [15:45:25] good [15:45:32] YuviPanda I have no idea what you wanted to tell me :P [15:45:39] who is writing what [15:45:50] I just know it's about redis :D [15:47:12] no just giving a headsup :) [15:47:16] that I'm writing it [15:48:04] undefined reference to `freeproc' [15:49:08] AzaToth: you need libproc-dev or libprocps-dev [15:49:34] AzaToth also, make sure that -lproc or -lprocps is in compiler options (the second makefile is for procps) [15:49:35] yup [15:50:11] petan: http://paste.debian.net/13162/ [15:50:14] I need to setup configure when I have time [15:51:21] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681653 [15:51:22] you are using lprocps right? [15:51:27] let me test on my debian box [15:51:34] I did latest development on ubuntu [15:52:13] I only have procps 3.3.3-3 [15:52:44] petanb@linux-dev:~/Documents/terminator/terminatord$ make -f Makefile_debian << works just fine [15:53:08] libprocps1-dev 1:3.3.8-2 [15:53:18] that is what I have in my system [15:53:31] ok [15:53:36] it's fixed in 3.3.6 [15:53:40] aha [15:53:47] what debian you have? [15:53:51] 6? [15:54:10] 7 [15:54:12] ok [15:54:31] I usually stick to stable half year after release [15:54:39] that is interesting such outdated version with significant bug is in stable [15:55:11] without freeproc it's nearly impossible to use the library without leaking memory [15:56:04] I believe that even top if built with this version would have leak :0 [15:57:28] AzaToth it's likely impossible to build it with that version of libproc it would require to change code significantly and would result in memory not being freed anyway... [15:59:15] ok [16:00:33] AzaToth tbh, that library seems to change a lot, when I compile this on some labs instance and scp binary to different instance, with little older image it doesn't run because it has different version of that library o.O packaging would be pretty hard here [16:01:02] I guess ./configure && make is most easy in this case :P I just need to finish that autoconf [16:01:24] I hate autohell [16:01:35] why [16:01:39] most of GNU tools are using it [16:02:13] it's a pile of m4 macros ontop of 100 different files [16:02:13] btw produced ./configure is no "auto shell" it's a regular shell script [16:02:40] writing this script for every package by hand would be just... meh [16:02:41] the configure script is a hell as you can't save it in git [16:02:55] why not? [16:03:09] have used scons some, and it fits the job better [16:03:27] because the configure is megabyte of semirandom code [16:03:33] heh, true [16:03:39] for large projects yes [16:03:47] check out wxwidgets :P [16:03:49] for small projects it's the same [16:03:54] just make is running 1 day [16:04:08] autohell is a hell [16:04:11] it's 100kb now :D [16:05:13] anyway I just need to make a simple way for people to build it, on any platform with linux kernel 2.4+ [16:05:32] and I don't like idea of precompiling 250 000 different packages for every platform [16:05:46] autoconf seems like a solution [16:07:04] petan: there [16:07:18] ? [16:07:43] made a pullreq [16:07:46] btw I need to go now... brb N hours N is element of { 1 ... 8 } [16:08:28] is that inclusive or exclusive? [16:08:40] merged [16:08:45] inclusive :D [16:09:11] petan: to build, use "git-buildpackage" [16:09:27] make sure you install git-buildpackage and devscripts [16:09:36] ok [16:19:28] I think we should abuse filter added to wikitech (petan, thoughts?) [16:24:08] keep the spam bots out without making blocks [16:42:29] :) [17:05:07] YuviPanda: "standard port 637*p*"?! :-) [17:05:16] grr [17:05:38] scfc_de: I need to setup monitoring for it, tho [17:06:02] scfc_de: fixed it :) [17:29:19] !log cvn Rebooted cvn-app1 [17:29:20] Logged the message, Master [17:38:55] New patchset: coren; "jsub: provide a sane default email address" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71081 [17:39:04] scfc_de: ^^ [18:02:08] New patchset: coren; "jsub: provide a sane default email address" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71081 [18:02:53] New review: coren; "Moar email!" [labs/toollabs] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/71081 [18:02:53] Change merged: coren; [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71081 [18:06:14] New patchset: coren; "jsub: also support -m so that -M is useful. :-)" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71083 [18:06:54] New review: coren; "Duh." [labs/toollabs] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/71083 [18:06:55] Change merged: coren; [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71083 [19:44:27] back [19:44:49] YuviPanda, scfc_de don't forget to keep updated !toolsadmin [19:44:59] ? [19:46:55] YuviPanda for example there is nothing about redis [19:47:01] oh [19:47:04] !toolsadmin [19:47:04] https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Documentation/Admin [19:47:09] yeah, will update that [19:47:13] ty for reminding [19:47:24] yw XD [19:53:02] YuviPanda: some basic end-user documentation would be nice as well ;) [19:53:12] Ryan_Lane: i added it to the end user docs [19:53:15] ah [19:53:16] cool [19:53:31] Ryan_Lane: https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Redis [19:53:34] tell me if it needs more? [19:54:05] maybe some information about recommended libraries for different languages? [19:54:13] Ryan_Lane: okay, I can add that [19:54:14] and ones that already exist on the system [19:54:22] well, I'd start with ones that exist on the system :) [19:54:40] Ryan_Lane: you mean ones that are already installed? [19:54:48] I'm not really sure about that, I always just use virtualenv :D [19:54:57] Ryan_Lane: i was going to just link to http://redis.io/clients [19:55:11] system libraries are greatly preferred :) [19:55:30] linking to that is also cool, though [19:55:40] we can follow up on the docs when people request libraries [19:55:52] Ryan_Lane: yup. [19:56:20] linked [19:56:38] thanks! [19:56:45] Ryan_Lane: at some point I should write more stuff about 'how to do common things on tool labs' [19:56:58] yeah, better docs are needed in general [19:57:02] Running WSGI, enabling tracebacks, running flasks, using Redis as queue, using it for publish subscribe, virtualenv [19:57:09] we're going to have a doc sprint towards the end of july [19:57:09] things I did run into while doing the bot [19:57:13] ooo nice [19:57:20] we're going to put topics on an etherpad [19:57:29] and work together to document as much as possible :) [19:58:17] :D looking forward to that [19:58:58] I also need to find some project to do that involves celery, so we can establish a nice 'web server receives task, puts it on queue, SGE picks it up, runs it, puts result on queue, user gets notified / can see on web' [20:03:30] New review: Tim Landscheidt; "lintian complained, and the Debian policy really seems to allow only one maintainer and require that..." [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/70734 [20:05:45] YuviPanda: Is Redis (for queues) a "reliable" storage, i. e. it doesn't delete data or not survive reboots? [20:05:56] (Non-transient?) [20:06:11] scfc_de: the configuration we have deployed makes reliability guarantees that I think are 'good enough' [20:06:22] *worst* case you lose 1 transaction, I think [20:06:24] let me dig that up [20:06:30] but generally yeah, durable [20:11:32] New review: Tim Landscheidt; "@AzaToth: If there's a way to have autotools' functionality without autotools, sure." [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/70771 [20:14:35] New patchset: Tim Landscheidt; "Use autotools as build system" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/70771 [20:18:22] scfc_de: so, if I want to make a package installed on exec nodes and webservers [20:18:33] scfc_de: I should just put up the appropriate puppet changes and submit, right? [20:18:42] not hand roll [20:18:44] because handrolling bad [20:20:29] YuviPanda: That's the general spirit. Though it's usually best to (ask someone to) test manually if the package can be installed without fuzz. [20:20:39] scfc_de: yeah, but I don't mind the puppet changes [20:20:48] I like doing those, and that'll ensure that it is 'future compatible' too [20:20:49] so [20:22:28] YuviPanda: Oh, forgot you're root on toolsbeta. So you should be able to test it yourself (almost). [20:22:37] scfc_de: yeah, will do that [20:22:45] New patchset: Tim Landscheidt; "Fix dependencies" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/70733 [20:22:45] New patchset: Tim Landscheidt; "Fix syntax error in debian/control" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/70734 [20:22:45] New patchset: Tim Landscheidt; "Use autotools as build system" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/70771 [20:22:45] New patchset: Tim Landscheidt; "Package take" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71112 [20:24:07] scfc_de: https://gerrit.wikimedia.org/r/71113 [20:24:14] scfc_de: not too sure how exactly to test that on toolsbeta, however. [20:24:15] New review: Tim Landscheidt; "@Coren: Could you post what compiler/linker flags are needed to guard take against attacks (LD_PRELO..." [labs/toollabs] (master) C: -1; - https://gerrit.wikimedia.org/r/71112 [20:24:36] scfc_de: puppetmaster::self is set on tools-mc, so I could hand-modify these there and run it, but that sounds... odd [20:25:13] YuviPanda: tools-mc (without beta) isn't managed by central Puppet? [20:25:21] scfc_de: err, i meant toolsbeta-mc [20:25:22] sorry [20:32:37] scfc_de: do you have powers to +2 that change? [20:32:42] or is that only with Coren? [20:33:55] YuviPanda: Only Coren (and other ops people). Also, if I dry-run a install of php5-redis, it wants to install apache2 :-). [20:34:22] Which change? [20:34:32] Coren: https://gerrit.wikimedia.org/r/#/c/71113/ [20:34:48] scfc_de: i'm guessing there's a way to have it not install apache, looking [20:35:36] Merged and push. [20:36:10] scfc_de: it doesn't actually want apache, just php [20:36:26] scfc_de: so that's fine [20:36:29] thanks, Coren :) [20:39:34] New patchset: Tim Landscheidt; "Move test suite from debian/rules to autotools" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71114 [20:41:07] New patchset: Tim Landscheidt; "Add tests for jsub" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71115 [20:45:42] New patchset: Tim Landscheidt; "Add tests for jsub" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71115 [20:49:55] New review: Tim Landscheidt; "Rephrased comments compared to PS1." [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71115 [21:00:48] Coren: is the toollabs webproxy apache? [21:01:01] the puppet file is empty [21:01:12] * YuviPanda is thinking of any possible way at all we can get websockets into our current setup [21:01:50] YuviPanda: It is; the webproxy/webserver setup isn't yet in puppet (#2.5 on my todo atm) [21:02:04] hmm, okay [21:02:12] what exactly is #1, btw? :) [21:02:13] and #2? [21:02:35] #1 is cleanup/rewrite of the NFS management code; #2 is Apache 2.4 [21:02:50] ah, nice :) [21:06:36] Which is why the puppetization is past 2, because how depends a lot on what. :-) [21:06:49] :D [21:06:51] indeed [21:13:29] New patchset: Tim Landscheidt; "Add tests for jsub" [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71115 [21:14:34] New review: Tim Landscheidt; "... and I should have properly tested it after the rebase to incorporate Coren's change." [labs/toollabs] (master) - https://gerrit.wikimedia.org/r/71115 [21:17:27] Coren: Hello! I need some help please [21:18:06] pragunbhutani: What what they pay me the big^H^H^H medium-sized bucks for. :-) What can I do for you? [21:18:43] haha! I'm trying to ssh into bastion and I keep getting a Permission denied (public key) [21:19:36] pragunbhutani: Have you put your public key onto Wikitech yet? [21:19:41] I have [21:20:14] Oh! I see your shell access request is still pending. Give me a moment to clear it. :-) [21:20:20] ok, really? [21:20:26] oh okay :) [21:20:32] that would explain things [21:21:17] Coren: also, this might be a little silly to ask, but when one adds one's public key, do you have to include the 'ssh-rsa' bit at the beginning? [21:21:18] or just the stuff that comes afterwards? [21:21:36] pragunbhutani: Yes you do, that's part of the key as a while. [21:21:38] whole* [21:22:35] aude: yes :) [21:22:42] That's odd. I see you as having the shell flag, but I don't see the entry in the logs. [21:23:36] Hm. At any rate, things should work for you. Would you like to try now? [21:23:47] i was able to add him to the wikidata project [21:26:22] Coren: sorry, I got disconnected [21:26:33] please let me know when the shell access has been granted [21:26:40] pragunbhutani: can you try accessing bastion now? [21:26:41] Hm. At any rate, things should work for you. Would you like to try now? [21:27:23] I'll give it a whirl [21:27:40] nope, still the same [21:27:54] Oh! I see your problem: You shell account name is all-lowercase. [21:28:22] But you're starting it with an uppercase P. :-) [21:28:47] oh you're right! [21:28:50] Jun 28 21:28:22 bastion1 sshd[21334]: Accepted publickey for pragunbhutani from [redacted] port 50808 ssh2 [21:28:50] I'm in! :D [21:28:54] yay! :) [21:28:54] thanks Coren [21:30:49] pragunbhutani: No problem.