[01:14:03] where are the logs for this chan. Topic doesn't have it [01:15:36] http://bots.wmflabs.org/~wm-bot/logs/%23wikimedia-labs/ [01:16:03] how does wm-bot handle logging? [01:16:25] Krenair: thanks [03:56:55] 6Labs, 10wikitech.wikimedia.org: Build a simple tool to query which instances have which roles / puppet variables - https://phabricator.wikimedia.org/T103995#1407951 (10yuvipanda) https://tools.wmflabs.org/watroles/role/role::puppet::self is a simple version I knocked up in a couple of hours which should do th... [04:04:45] Change on 12wikitech.wikimedia.org a page Nova Resource:Tools/Access Request/MaxSem was modified, changed by Tim Landscheidt link https://wikitech.wikimedia.org/w/index.php?diff=168184 edit summary: [05:54:25] Hi everyone. :) [05:54:56] I just realised that the blockcalc tool at https://tools.wmflabs.org/blockcalc/ doesn't support IPv6 addresses, and I'm thinking of updating it. [05:55:11] Does anyone know where I can grab the source code? [07:12:19] Nevermind, I've found the source code - although I'm surprised it doesn't seem to be in a git repository [07:19:44] MrStradivarius: o/ tool maintainers are generally free to publish it however they want, the only requirement is that it is licensed under an open source license [08:20:20] 6Labs, 10Tool-Labs, 6Engineering-Community, 6WMF-Legal: Set up process / criteria for taking over abandoned tools - https://phabricator.wikimedia.org/T87730#1408031 (10Qgil) Is the #Labs team considering this task as a July-September quarterly goal, at a team or individual level? Or is there anybody else w... [10:53:09] hi guys! I'm having a problem with mysql using python MySQLdb and tool labs databases. anyone can help me today? :) [10:53:22] i'm having a messag: _mysql_exceptions.OperationalError: (2006, 'MySQL server has gone away'). and I suspect it is because I take to much between queries. But what can I do...if I am processing data in between? [10:53:37] i tried: mysql_con.ping(True) [10:53:45] marmick: disconnect/reconnect [10:54:26] ping just checks if the server has gone away, so you can reconnect [10:54:46] although the mysql man page says "Auto-reconnect is enabled by default before MySQL 5.0.3 and enabled from 5.0.3 on" [10:56:32] how can I do the disconnect/reconnect in that key moment? [10:56:47] my code structure is: [10:56:56] a) create the connection with the db I want. [10:57:12] b) read an arg to choose a method to proceed. [10:57:16] c) use the method till the end, which retrieves info and processes it. [10:57:36] i have the connection outside the method. [10:58:19] *i meant functions (instead of methods) [11:17:38] catch the exception, reconnect? I guess [11:46:30] Change on 12wikitech.wikimedia.org a page Nova Resource:Tools/Access Request/Elee was created, changed by Elee link https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Access_Request/Elee edit summary: Created page with "{{Tools Access Request |Justification=Bots and Tools to better Wikipedia. |Completed=false |User Name=Elee }}" [12:25:44] Change on 12wikitech.wikimedia.org a page Nova Resource:Tools/Access Request/Elee was modified, changed by Merlijn van Deen link https://wikitech.wikimedia.org/w/index.php?diff=168203 edit summary: [12:25:53] elee: have fun! :-) [12:26:12] elee, oh good, I can add you to xTools now. :p [12:26:20] <3 valhallasw cheers, I'll may need to rotate ssh keys again, ugh [12:26:23] marmick: in the code that runs the query [12:26:25] Hey, morning Cyberpower678 [12:26:52] mutante: if you get a 'server has gone away' exception, reconnect and try again? [12:27:08] FYI, there's someone on IRC lurking around with my acroynym C678. Please note that it is not me. [12:27:41] elee, ready to set up the xTools environment? [12:27:59] Cyberpower678: yeah, let me play with labs first and familiarize myself =p [12:28:05] Cyberpower678: hah interesting, do tell. [12:28:36] elee, are you familiar with puppet? [12:28:39] valhallasw: I'm going to ask you a stupid question. What does Nova Resource stand for/relate to labs? [12:28:55] Cyberpower678: I'm more of a chef shop but know my way around puppet. [12:29:05] elee: openstack nova is the virtualizaiton software that runs labs [12:29:25] Oh good. We need somebody to handle puppet on our environment. None of us know how to use puppet. [12:29:47] valhallasw: wait, I thought Labs was on Mesos? [12:30:27] elee: no, but I think there are some experiments with Mesos in prod, and plans to use Mesos to provide docker-based virtualization on labs [12:30:36] ++ [12:30:54] got a seperate semi related question - difference between Bastion and tool's login? [12:31:24] mostly just a different login host [12:37:23] elee, you now have access to all xTools environments [12:37:34] valhallasw: I'm unable to Create a New Tool - is this expected behavior? [12:37:46] elee: try logging out and in again [12:37:52] Cyberpower678: yeup, just saw the notif on tools.wmflabs - reading things now =] [12:37:59] 'stuff randomly not working until you re-login' is sort-of expected on wikitech [12:38:33] "authentication protocols" [12:38:35] =p [12:39:02] Yeah, still unable to do so. I'm at https://wikitech.wikimedia.org/w/index.php?title=Special:NovaServiceGroup&action=addservicegroup&projectname=tools [12:39:16] and I'm getting "Your account is not in the project tools." [12:40:43] 6Labs, 10Incident-20150617-LabsNFSOutage, 3Labs-Sprint-103: Recover some sql queries - https://phabricator.wikimedia.org/T104134#1408310 (10Multichill) 3NEW a:3coren [12:41:25] elee: :/ [12:41:40] Cyberpower678: is the instances list up to date on NR:Xtools? [12:41:44] Just making sure. ^_^ [12:41:57] elee, probably not. [12:42:04] Yeah valhallasw literally "mediawiki get your shit together on authentication damnit" [12:42:21] elee: ??? I'm not sure how that is related [12:42:52] because this falls completely outside of regular mediawiki's scope [12:43:11] elee: removed and re-added you. please log out, log in again, and try again [12:43:26] valhallasw: its an inside joke from an older mediawiki dev - he once told me "if mediawiki is even remotely involved, auth and user rights probably don't work" [12:43:45] YuviPanda: Not sure if you are around http://wdq.wmflabs.org/stats seems to have stopped updating [12:44:05] ah yeup that did the trick thanks for the bit reset valhallasw [12:44:40] You can now ssh into login.wmflabs.org, webservice.wmflabs.org, webservice2.wmflabs.org, exec-light.wmflabs.org, exec-heavy.wmflabs.org [12:44:44] elee, ^ [12:45:06] They all belong to xtools.wmflabs.org [12:48:30] oh wait... I get it now [12:48:42] Cyberpower678: busy? [12:53:43] Cyberpower678: eh, can you give them a more descriptive name? [12:54:24] valhallasw: I just realized [12:54:30] these are ec2 style instances... [12:54:32] valhallasw, why? :p [12:54:52] Cyberpower678, better question is how? [12:56:22] Cyberpower678: because 'login.eqiad.wmflabs' doesn't indicate what project it belongs to /and/ is awfully generic? [12:56:40] ah damnit I just realized I didn't need access to tool labs all this time [12:56:47] although those DNS names will disappear in the future, I guess [12:56:48] * elee slaps forehead [12:57:06] okay lets deal with this [12:57:50] Cyberpower678: is anything running at the moment on these machines? [12:57:58] Cyberpower678: it's hard to change after the fact, though, so it's probably best to leave it like this for now. But for new hosts, please name them xtools-login, for instance [12:58:33] valhallasw, elee: There's nothing important on them yet. [12:58:51] Cyberpower678: okay - would there be any problem with me asking for them to be nuked? [12:58:55] We can go ahead and delete them, provided I can spawn them with precise again. [12:59:02] yeup that's what I'd want [13:00:17] precise should still be available, and will be for the forseeable future [13:01:02] Cyberpower678: do you know how much traffic we get? [13:01:20] Not at current [13:01:31] I think it'd be reasonable to just have an m1.xlarge and name it xtools-legacy [13:01:37] have it run what we currently have [13:01:44] I'll continue to keep it happy [13:01:53] and we'll work on getting the refresh up and running [13:04:06] valhallasw: for the sake of time - what should I read to request new instances? [13:04:32] (also, how does Wikitech differ from Labs?) [13:04:39] elee: make sure you're and admin in the xtools project, then use https://wikitech.wikimedia.org/wiki/Special:NovaInstance [13:04:45] wikitech is the management interface for labs [13:04:50] valhallasw, he is [13:04:58] and last but not least, does Labs provide load balancing services or is this something we deploy ourselves? [13:05:13] load balancing in which sense? [13:05:27] elee: also https://wikitech.wikimedia.org/wiki/Help:Instances [13:05:43] elee: there's some balancing of hosts between virtualization hosts, I think, but otherwise none [13:07:17] I'd probably deploy memcached or something valhallasw [13:07:24] reading both now thanks [13:08:46] valhallasw: naming scheme wise $service.xtools is reasonable, correct? [13:08:55] elee: xtools-$service [13:09:21] elee: currently all hosts are reachable over $host.$project.eqiad.wmflabs /and/ $host.eqiad.wmflabs [13:09:34] elee: so for now, it's good to have the project name in the host name as well [13:09:36] ah okay [13:09:45] by that you mean from external correct? [13:09:47] (as well as $host directly from any labs hosts) [13:09:55] or do I need to request for machines to be punched through? [13:09:58] no, internally. Hosts are not reachable from the outside by default [13:10:13] roger. How can I get outside setup? [13:10:15] there's a web proxy for web services, for other things you can tunnel through bastion [13:10:27] https://wikitech.wikimedia.org/wiki/Help:Proxy [13:11:23] ah lovely [13:11:56] ah lovely [13:11:59] hrm. [13:12:06] how difficult is obtaining public IPs? [13:13:15] elee: if you really need one, you can request one [13:13:19] ah damnit I need to deal with security groups [13:13:29] yeah this would be for a few months until I get used to WMF [13:13:33] s/WMF/lagbs [13:14:01] elee: tunneling through bastion is the thing to do [13:14:16] valhallasw: yeah this would be what I want to do [13:14:25] uh - any preferences on security group naming? [13:14:26] elee, valhallasw: I'm proceeding to delete the existing instances and replacing them with renamed ones. [13:14:31] otherwise I'm just going to name it legacy [13:15:07] elee: they are per-project, so you can name them how you want. Tools has e.g. 'default', 'grid master', 'webservice' and 'redis' [13:16:38] security group rules are.... whitelist? [13:17:24] yep [13:18:43] okay because of time, I'm going to ask for an IP for xtools-legacy-1 - I'll make sure to do it right next time [13:19:05] hrm failed creates [13:19:56] elee: what do you need the IP for...? [13:20:16] valhallasw: is there a log I can peek at for why my creates are failing? [13:20:17] elee, alright I deleted everything, and respawned instances using precise with names that make more sense. [13:20:37] elee: not immediately, but could be a quota issue [13:20:40] valhallasw: for xtools, which needs to be back up since ages ago [13:20:45] xtools-webservice1, xtools-webservice2, and xtools-webproxy [13:20:50] elee: yes, but whta's the IP for? [13:20:53] ah so you were messing with me =] [13:21:02] valhallasw: to punch through to external net [13:21:11] I also created a proxy and pointed it to webproxy [13:21:12] after I get things running today, I'll deal with actually proxying [13:21:17] oh wait, what? [13:21:31] elee: wut? that's specifically what the webproxy is for [13:21:38] * elee trouts self [13:21:56] I'm not entirely sure how to check quota. as https://wikitech.wikimedia.org/w/index.php?title=Special:NovaProject&action=displayquotas&projectname=xtools seems to be empty [13:21:58] * ToAruShiroiNeko makes trout jerky [13:22:14] valhallasw, now you need to logout and login. [13:22:19] :D maybe [13:22:21] you poke and jerk it until its steaming [13:23:43] okay when I get these autoinstalled instances, is there a default ssh keypair? [13:24:55] ? [13:25:12] I'm in bastion [13:25:17] or wait I"m in tools-bastion, nvm. [13:26:04] elee: to ssh through to the xtools host, you need to either use ProxyCommand or agent forwarding [13:26:55] wait... what? [13:27:09] oh wait [13:27:17] how is access determined for these machines? [13:27:30] SSH [13:27:39] You need a public key on Wikitech [13:28:02] ah okay - so theres an ACL composed of a project's admins, and any instances under that project has their keys [13:28:04] is that correct? [13:29:44] elee: every instance has every key, but only people in the project can login [13:29:56] valhallasw: and this is to the root instance I assume [13:30:08] root instance? [13:30:23] do you mean the root user? you can't login as that. Login as your own user, then use sudo [13:38:59] ugh [13:39:06] this is why kerberos auth is a lot better [13:39:07] done [13:41:25] Cyberpower678: I'm trying to wrack my head from the source [13:41:32] does xtools need mysql? [13:44:06] Yes. [13:44:32] valhallasw, what file contains all the hosts to connect to the correct dbs? [13:45:59] wait, does xtools connect to a sql server not locally? [13:46:29] valhallasw, as in the file that allows the command sql enwiki.labsdb to work. [13:47:11] elee, yes. It accesses the replication DB. [13:47:24] ah okay I'll look for it soon [13:47:36] you know off the top of your head which php modules/libraries it needs? [13:48:04] okay I've got a basic lampstack sans mysql running and php modules on xtools-webserver1 [13:48:15] next thing would be to see what xtools needs [13:48:19] Everything stored on xTools. It has too many dependencies we can't control, so is a rewrite is a must. [13:48:26] blegh yeah [13:48:58] Try not to install anything newer than PHP 5.3 [13:50:14] I tossed 5.3.10 on it [13:50:22] let me know if it needs to go lower [13:50:24] SHould be ok [13:50:30] sounds good [13:50:48] okay so this next step I'm unsure about [13:50:53] since I don't know best practices for wmflabs [13:51:38] With our own instances, we can practically do anything we want. [13:51:40] but long story short "how do we punch webservice into the world?" [13:52:25] oh okay [13:52:26] web proxies [13:52:27] hrm [13:52:35] I used wikitech to set up some sort of webproxy that points to xtools-webroxy [13:52:36] Cyberpower678: /etc/hosts. There's a puppet manifest for it [13:53:05] Cyberpower678: yeup I see it - I'm going to point it right at webserver1 for the time being [13:53:06] elee, ^ contains the mySQL hosts [13:53:22] valhallasw: hrm okay - anything I can read? [13:54:04] hm, not really a manifest [13:54:05] https://github.com/wikimedia/operations-puppet/blob/61841b150b8e37cbefceb5ae0983d259a4a9082b/modules/toollabs/manifests/init.pp#L196 [13:54:12] elee, webproxy should load balance the request load between webservice1 and webservice2. It should used memcached as you suggested. [13:54:32] Cyberpower678: sounds like a plan [13:54:40] I want to see xtools actually working first =p [13:54:58] I want a properly setup environment first. :p [13:55:21] actually working > properly working =] [13:55:52] twentyafterfour: your logo on phab-03 looks really nice [13:56:01] wait actually it'd be reasonable to have xtools-dev.wmflabs.org [13:56:04] I'll do that instead [13:56:35] You can point that straight to webservice [13:56:41] I'll go set it up [13:57:04] sounds good [13:57:09] Done [13:57:10] I'm going to see why I'm failing to add a security rule [13:57:25] Pointing to webservice1 [13:57:33] you can't add security groups post-creation [13:57:52] but you said rule so I bet you're doing it right [13:57:57] ah there we go [13:58:06] I was accidentally also incluiding a source group [13:58:23] all machines in the legacy secgroup have 80 available to g0.0.0.0/0 [13:59:02] Cyberpower678: thanks for the proxy setup it looks correcty [13:59:10] I'm going to delete the one for xtools and repoint it to webproxy [13:59:51] all set [13:59:58] ?? [14:00:14] okay so we definitely see the machine at http://xtools-dev.wmflabs.org/ [14:00:46] :DDDDDD [14:01:44] Cyberpower678: [14:01:49] go to xtools-dev again [14:01:50] elee: [14:02:03] we've got 5.3.10, and I think everything else looks good [14:02:04] Nothing's changed [14:02:09] Cyberpower678: how busy are you right now? [14:02:13] force refresh [14:02:32] I'm remotely trying to set up my dad's new computer I built him. :p [14:02:32] can you paw through the xtools repo and see what php modules/libraries we need? [14:02:36] Cyberpower678: kek [14:03:27] :DDDD [14:03:54] okay what sort of links should I be seeing with xtools? [14:04:00] as in xtools.wmflabs.org/what? [14:04:53] okay so for notes - we don't need mysql as part of the stack [14:06:20] Same as on toollabs except xtools takes the place of tools. So tools.wmflabs.org/xtools/ec -> xtools.wmflabs.org/ec [14:06:37] got an example link? [14:06:47] time to turn debug on and woe over why php sucks =p [14:06:54] "debugging - what is that?" said php [14:07:17] I just gave you one [14:07:53] oh wait I've got one for reference [14:07:53] https://tools.wmflabs.org/xtools/ec/?user=Elee&project=metawiki [14:07:57] so that'd be [14:08:03] Copy out /data/project/xtools and test it. [14:08:11] http://xtools.wmflabs.org/ec/?user=Elee&project=metawiki [14:08:18] or rather [14:08:23] http://xtools-dev.wmflabs.org/ec/?user=Elee&project=metawiki [14:08:35] /data/project/xtools? [14:08:51] We'll need to a shitload of pathway changes. [14:09:03] To get it to initally work. [14:10:06] holy shit why are so many things hardcoded in [14:10:07] jesus christ [14:10:19] elee, ask hedonil [14:10:22] lol [14:10:37] uh what other devs are up and willing to wrench the source into shape? [14:10:42] The rewrite will use a config file and more flexible pathway handling. [14:10:52] valhallasw: i could solve it creating a new function which makes a try-excp with reconnect. :) [14:10:53] thanks. [14:11:35] elee, Technical 13 will help with the rewrite'\ [14:12:12] I thought he asked for a self ban due to that whole sockpuppet ArbCom fiasco? [14:12:26] He's still active on xTools. [14:12:39] sounds good - he around right now? [14:12:43] also [14:12:44] http://www.spacex.com/webcast/ [14:12:51] Only on email. [14:12:52] 8min 30 sec left [14:12:55] such a nerd hardon [14:12:55] ? [14:13:22] 6Labs, 10wikitech.wikimedia.org: Build a simple tool to query which instances have which roles / puppet variables - https://phabricator.wikimedia.org/T103995#1408352 (10Krenair) >>! In T103995#1407951, @yuvipanda wrote: > Code at github.com/wikimedia/watroles 404 [14:14:45] Cyberpower678: making sure - we don't need a mysql server locally correct? [14:14:53] we're just using mysqli to use lab's [14:15:18] If you want to set one up locally, I have no objections. [14:15:32] theres no need, is there? [14:15:54] Not to my knowledge [14:15:59] righto [14:16:05] 5 minutes left guys [14:17:47] 4 [14:17:53] ? [14:18:04] rockets man [14:19:24] 2 [14:20:28] 1 minute - http://www.spacex.com/webcast/ go watch! [14:21:11] 30 seconds guys@ [14:21:18] elee: lets hope it goes better this time [14:21:23] yeah Negative24 [14:21:56] ugh rockets give me a hardon [14:22:11] looking good so far [14:24:25] uh [14:24:33] doesn't seem to look to good anymore ... [14:24:51] was that supposed to happen? [14:25:37] its silent on my end [14:26:44] my feed is delayed [14:26:52] wtf just happened did it disintegrate? [14:27:08] looks like it [14:27:31] it wasn't that "big" per se [14:29:24] yeah [14:29:25] holy shit [14:29:28] no they just lost the rocket :P [14:29:29] so much money wasted [14:29:39] cough cough indonesia [14:29:39] I think its still there [14:29:41] too soon? [14:30:49] elee, what's going on? Does this have something to do with xTools? [14:31:16] yeah, just like the rocket, the current codebase is an explosion =p [14:40:54] Database problem [14:42:12] elee, make sure to remove the redirects in the script index file of articleinfo and ec [14:42:33] elee, and what file path are these located in? [14:56:58] Cyberpower678: okay I'm going to setup a lb with haproxy [14:57:03] its how we're going to KISS [14:59:28] ?????????????????? [14:59:31] What? [15:00:09] Cyberpower678: instead of memcached we're going to use haproxy roundrobin instead [15:00:46] Ok. But Kss? [15:00:49] *kiss [15:00:52] ... [15:00:55] go use urban dictionary [15:01:57] Oh [15:06:35] does labs provide a shared file system? [15:06:42] =p [15:08:39] elee, so where are our files located? [15:08:56] unsure - I was going to have them locally on these instances [15:09:03] but if we have access to NFS, that's useful too [15:09:28] NFS fails consistently. We recently had a catastrophic faiure [15:09:35] that's true. [15:09:42] Local is better, that way it stays up when they go down? [15:09:52] We'll do glusterfs or something between the hosts [15:11:07] lol glusterfs [15:11:35] (we had glusterfs on labs before NFS and it was significantly worse) [15:11:37] but having some sort of local-level shared filesystem might not be a bad idea [15:11:51] yeah which is what I'm thinking [15:12:01] alternatively, something mumble something git hooks auto pull [15:12:09] add this to the end [15:12:12] whgoops [15:22:59] heh [15:23:47] alright great [15:23:50] got load balancing up [15:23:59] Cyberpower678: its up to the others now [15:24:13] what mailing list should I use to keep everyone updated? [15:25:27] Recall everyone's email and list them in the to field. :p [15:25:40] ugh I'll just make an MIT mailing list [15:25:57] Where's the filesystem? [15:26:29] elee, we could convince the WMF to grant us one. [15:26:29] okay so understand [15:26:32] there are no hard files [15:27:07] so we could just have a git hook invoke something to make the servers pull [15:27:10] probably remctl or something [15:27:16] so everything stays synced [15:27:36] We still need a place to put the PHP files. [15:27:41] yes [15:27:45] that's what we do [15:27:47] symlinks [15:28:01] you can easily ask for xtools@lists.wikimedia.org, or you can use xtools@tools.wmflabs.org for now [15:28:23] the latter will just email everyone in the xtools service group on tool labs [15:28:31] valhallasw: does xtools@tools.wmflabs send to all current service group members? [15:28:32] We need to know where the files are going to be pointing [15:28:34] oh there we go [15:28:46] Cyberpower678: how old are you? [15:28:50] relax niqqa [15:29:12] I haven't had to invoke my inner black man in a long time. [15:29:23] I like the mailing list one. Then we can have users subscribe to the list, and at the same time also communicate with each other. [15:29:34] why would users have to sub to a list? [15:29:56] Just a thought. Then they won't consistently hammer the talk pages. :p [15:30:06] no that's what those are for =p [15:31:06] elee, so riddle me this. How do I recode the xTools filepaths on the PHP files, if I don't know where to point them? [15:31:26] [11:29:52] relax niqqa [15:31:28] let me send mail [15:31:43] elee: yes [15:31:59] elee, please don't "invoke your inner black side" [15:32:02] elee: also, please watch your choice of words [15:41:45] Okay Cyberpower678 mail sent. Apologies valhallasw, I didn't realize wm-labs was such an uptight ship ;D [15:41:51] Cyberpower678: bah mail bounced, hold on. [15:42:12] I didn't get a thing. [15:42:14] elee: it has nothing to do with 'uptight', and everything to do with inclusivity. [15:42:16] yeah that address isn't reasonable. I"ll just make a personal mailing list. [15:42:39] Or make on the foundation [15:42:45] valhallasw: standby [15:42:48] I like that idea better. [15:42:51] Cyberpower678: who needs the mail? [15:43:06] You, T13, musik animal, nakon? [15:43:08] MusikAnimal, Nakon, Technical 13 [15:43:23] elee, I prefer a foundation mailing list. [15:43:31] Cyberpower678: gotta send this now [15:44:16] Cyberpower678: I've got you, t13, musik, and nakon. Am I missing anyone? [15:45:17] Cyberpower678: screw it sent. [15:46:38] valhallasw: that's reasonable, although I'm not good with symantics =] [15:51:01] Cyberpower678: are we going to have to deploy ssl at some point? [15:51:31] oh wait nevermind the web proxy handles it =p [15:51:39] https://xtools.wmflabs.org/ that's pretty [15:55:03] Negative24: "Vehicle failure after max Q. NASA says air force terminated flight, Elon says upper stage lox tank over pressurized. More info on Twitter, press conference to come, probably around 12:30 EST." [15:56:39] elee, lol [15:56:47] elee, you sure you're not a robot. [15:56:49] Or.. [15:56:52] Skynet? [15:58:17] If he was self aware, would he know he was? [15:58:28] sure [15:58:34] I am a [15:58:34] er [15:58:36] uh [15:58:49] =p [16:03:13] okay done Cyberpower678 [16:03:25] regardless of server configuration, we're still SOL on xtools itself [16:03:44] SOL? [16:04:01] ... [16:04:18] Cyberpower678: you know how to use google/bing/duck obviously [16:04:40] Too lazy, and doing other things right now. [16:04:59] you're typing on IRC. [16:05:54] I'm also about to trial a bot on Wikipedia, as I just received a trial approval. [16:06:07] Thanks to addshore. [16:07:51] hrm, you're going to quickly go through 100 edits (assuming php doesn't conk out on you) [16:08:03] speaking of php, did you resolve the "lets auto allocate 5GB to my project"? [16:08:21] ??? [16:08:35] People on enwiki are complaining that the "usersearch" has stopped working. Does anyone know why it is not working and is anyone working on it? See e.g.: https://tools.wmflabs.org/usersearch/usersearch.py?name=Softlavender&page=Wikipedia%3AVillage+pump+%28technical%29&server=enwiki&max=100 [16:08:52] (the "usersearch" tool, that is) [16:09:19] Cyberpower678: I believe SigmaWP or legoktm pointed this out in -bag [16:09:20] "ini_set('memory_limit','5G');" [16:09:30] Yea so? [16:10:18] 5GB is pretty absurd [16:10:21] gotta admit, no? [16:10:34] It doesn't use that much. I just put it in there. [16:10:53] how much realistically? [16:10:55] Cyberpower678: so use a reasonable limit [16:11:00] ++ Betacommand [16:11:33] whatever you were reasonably using during user page tests, double that and you shouldn't be unhappy [16:11:45] 5GB just smells of a runaway script. [16:11:53] I think my default is normally 1GB for most stuff, 2GB for really big stuff [16:11:57] those are big nonos. [16:12:16] even 1GB is bad to me =p [16:12:20] elee: or a "its bloated and I dont care to actually do it right" [16:12:24] no worries Betacommand I still love you <3 [16:12:27] yeah that's right [16:12:39] you're just feeding something to get it to do your bidding [16:12:47] that's now how code should ever be dealt with [16:12:58] especially something as designed as bad as php [16:13:01] elee: on labs there is a bit of virtual overhead that eats some up [16:13:40] YuviPanda: we should move requests for tools accounts to phabricator so people have a phabricator account when their tool breaks :P [16:13:41] afeder: that feels like someone done goofed with where things point [16:14:19] elee: basic stuff normally falls between 750m and 1GB I just cant be bothered to narrow it down that specifically [16:14:25] yeah [16:14:26] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408407 (10valhallasw) 3NEW [16:14:29] and you reasonable can't either [16:14:34] that's inherent of php [16:14:57] elee: I dont use PHP if I can avoid it [16:15:10] I only deal with php because mediawiki and wordpress [16:15:13] * elee shudders [16:15:23] elee: I prefer python myself [16:15:37] every single day "oh I can't update wordpress and its incredibly slow what do" [16:16:01] your site is obviously compromised, looking at your plugins show me that you went to the store and chose every single one that caught your eye [16:16:09] and you don't know why its slow. [16:16:25] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408414 (10valhallasw) [16:17:32] I love that you have to install a plugin for wordpress to get it to use caching stuff [16:18:07] kek Reedy [16:18:37] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408416 (10valhallasw) ``` Traceback (most recent call last): File "/data/project/usersearch/public_html//usersearch.py", line 395, in ... [16:18:39] oh man [16:18:55] Cyberpower678's deadlink.php is... painfully verbose [16:19:03] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408417 (10valhallasw) CCing #tool-labs as the meta_p table belongs there. [16:19:46] elee, It has to handle various ways editors format it on Wikipedia. [16:20:09] Cyberpower678: see how the script fares with 1GB [16:20:15] see if it OOMs instantly [16:20:26] The biggest chunk of the code is accurately reading the source on Wikipedia. [16:20:52] It doesn't [16:20:56] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408421 (10valhallasw) No, the [[ documentation || https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Database ]] clearly states the URL includes t... [16:22:30] valhallasw, related to the compulsory https? [16:23:17] jynus: yeah, the code probably does some 'strip http:// off to get the domain name' [16:23:34] and then sticks http:// back in front [16:23:34] Cyberpower678: here [16:23:39] I even did all the hard work for you: https://github.com/leee/Cyberbot_II/pull/1 [16:23:45] so you get http://https://... and the computer says no [16:24:08] er whoops I need to pullreq to your repo, not mine =p [16:24:27] afeder: I can't CC either Σ or scottywong because neither of them have a phabricator account. Please berate them for me ;-) [16:24:47] elee, the code is still in trial, and has been updated several times since that commit, so I will declining your pull request. [16:24:59] valhallasw: scottywong is retired apparently, I'll look up Σ. [16:25:02] there's no pullreq to decline since its not your repo =p [16:25:04] whoops ;D [16:25:11] Fail [16:26:06] Cyberpower678: did you start running the bot yet? [16:26:29] And do you think it'd be reasonable to expect the xtools team to clean up where things point by today COB? [16:27:10] elee, I don't know. We're not as fast as you, and I still have to study. [16:27:22] Cyberpower678: !? school's done mate [16:27:37] Not for me [16:27:43] jesus where you located? [16:27:48] Summer semesters do exist you know? [16:27:57] Penn State in PA USA [16:28:06] =[ [16:28:12] summer is time for play and work, not for school [16:28:45] I'm studying to become an Electrical Engineer. There's no such thing as that for us. [16:28:51] ... [16:28:59] I'm studying EECS as well. [16:29:02] Adults don't generally get the summer off [16:29:11] Reedy: hence work mate [16:29:50] But many schools haven't finished for the summer [16:29:55] And some only close a few days a year [16:30:25] My summer semester start mid may and won't end until August 15 [16:30:47] you'll gain a lot more experience from an internship instead of just class all the time [16:31:31] BTW, bot is running dandy at 1G [16:32:05] awesome! [16:33:37] elee: ha lol [16:33:48] =p [16:34:49] elee, Betacommand I'm not the overeager botop I was when I wrote my first bot and managed to program a memory leak that blew out of proportion, aka 5G. :p [16:35:12] SigmaWP: are you Σ? usersearch is failing, can you fix it? https://phabricator.wikimedia.org/T104138 [16:35:23] Oh nein. [16:35:37] afeder, I'd SigmaWP is sigma. :P [16:36:04] I would myself indeed. [16:36:05] * SigmaWP winks [16:37:35] I wish I had my summer off. Oh wait I do! [16:38:23] hence why I'm here [16:40:40] SigmaWP: whats the deal with T104138? [16:40:59] Is that like some super futuristic descendant of T13 or something? [16:41:05] lol [16:41:06] phab [16:41:22] SigmaWP, or a new terminator? [16:41:23] working on it [16:45:53] Dtabase error when execute sentence into outfile [16:46:26] ? UA31_ [16:47:18] Does anyone want to comment on https://phabricator.wikimedia.org/T104138 for me? [16:47:54] The error has been noted and it will be fixed shortly, probably by 11:59 PM tomorrow at latest [16:48:03] SigmaWP: ok [16:48:25] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408431 (10afeder) [18:47] The error has been noted and it will be fixed shortly, probably by 11:59 PM tomorrow at latest [16:48:42] thanks [16:49:15] When I execute a sql sentence whith statment "into outfile" in MariaDB: Access denied for user **** (using password: YES) [16:53:23] 10Tool-Labs-tools-Other: Usersearch: ERROR: Unhandled exception.[Errno socket error] [Errno -2] Name or service not known - https://phabricator.wikimedia.org/T104138#1408433 (10Elee) Issue has been fixed, and plans are underway to make the tool less horrible. [16:54:04] UA31_, so... you're trying to write to filesystem of the database host? [16:54:38] UA31_: like there should be no functional difference between MariaDB and MySQL [16:54:47] if you follow guides on using mysqlnd, you should be ifne [16:55:39] "The SELECT ... INTO OUTFILE statement is intended primarily to let you very quickly dump a table to a text file on the server machine. If you want to create the resulting file on some other host than the server host, you normally cannot use SELECT ... INTO OUTFILE since there is no way to write a path to the file relative to the server host's file system." [16:56:24] SigmaWP: you can just login and mention that yourself? :P [16:56:52] valhallasw: you know what lazy means right? ;D [16:56:54] I'm too lazy to make an account [16:56:56] :D [16:57:07] you just have to login [16:57:07] if I want to have an instance as a personal testbed, do I need to do anything in regards to requesting for one? [16:57:10] SigmaWP: you don't need to 'make an account', you just login [16:57:23] ! [16:57:23] hello :) [16:57:29] Well I'm too lazy to do that then [16:57:31] >.> [16:57:36] using the 'log in with mediawiki' button [16:57:53] like I tried creating a project but... no profit. [16:59:04] Alternative form to save database query in text file without redirect the output? [16:59:10] elee: you have to request projects and then you can create instances yourself [16:59:21] elee: I'd suggest to just create an instance in the xtools project. There's also a 'generic project for testing intsances' [16:59:33] xtools is at quota [16:59:50] we actually should request more to keep the legacy stuff running while we develop the refresh [16:59:59] do tell about this generic project? [17:01:44] ugh, it has a non-obvious name so I can never find it [17:01:53] =p [17:02:03] valhallasw: testlabs [17:02:19] https://wikitech.wikimedia.org/wiki/Nova_Resource:Testlabs [17:02:53] I guess that one's also an option. It's another one than the one I had in mind, though. [17:03:27] I should just ask for a project, eh? [17:03:51] yeah, thta's probably the easiest option [17:05:02] elee: mysqlnd does no exist in server [17:05:23] valhallasw: er how do I ask for a project? =p [17:05:40] elee: it's in the labs docs. There's a phab task you create a subtask on. [17:07:54] valhallasw: I not allowed to execute sql with my user directly; [17:08:35] UA31_: Reedy just explained to you what's happening. You're not allowed to use INTO OUTFILE because that writes a file /on the server/ [17:09:37] Alternative form to save a text file? [17:10:02] No idea. [17:10:09] mysqldump I guess? [17:11:46] hrm [17:11:51] reasonable lab names? [17:12:45] echo "SELECT * FROM foo" | sql enwiki > foo.txt [17:14:46] Reedy: OK [17:20:01] Negative24: around? [17:23:29] elee: yes [17:23:50] but not for much longer [17:24:50] ah nevermind then thanks Negative24 [17:26:30] elee: I'll be here tomorrow. Just ping me [17:26:35] I run mysql < somequery.sql > out.sql all the time from the commandline.... [17:27:52] with -BN -e "SELECT..." you may even get a nice output format [17:32:02] but the command line tool is not the right way to do things except for occasional/casual querying- use a proper connector otherwise [17:32:43] oh, the user is gone [17:33:30] multichill: mines essentially the same thing :P [17:35:12] Yeah, of course, multiple ways to solve this. Some easier than others [17:36:08] :) [18:14:51] Change on 12wikitech.wikimedia.org a page Nova Resource:Tools/Access Request/MGChecker was created, changed by MGChecker link https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Access_Request/MGChecker edit summary: Created page with "{{Tools Access Request |Justification=I want to assist Luke081515. |Completed=false |User Name=MGChecker }}" [18:24:39] hello, can an admin complete the newest tools access request? It would help me a lot [18:36:44] Change on 12wikitech.wikimedia.org a page Nova Resource:Tools/Access Request/MGChecker was modified, changed by Merlijn van Deen link https://wikitech.wikimedia.org/w/index.php?diff=168231 edit summary: [19:27:00] hrm, how does one git add -p with untracked files? [19:29:01] git add -N then git add -p, apparently [21:52:13] 6Labs, 7Tracking: Create labs project for analysis of recent changes and user contributions - https://phabricator.wikimedia.org/T104144#1408572 (10Luke081515) 3NEW [23:21:35] anybody seen this one? i'm trying to convert a host to role::puppet:self, whcih i've done many times. but today after configuring it in wikitech, when i run puppet agent -tv i get this: [23:21:39] err: Failed to apply catalog: Invalid parameter umask at /etc/puppet/modules/git/manifests/clone.pp:147 [23:21:57] trying to trace it down, but i don't really understand how labs puppetmaster works [23:22:17] somehow ldap is involved [23:22:28] i don't see an explanation on wikitech