[02:39:14] Would an admin mind killing PID 1337 on tools-login. It's really bogging down the VM. [02:39:27] It appears to be some tool running mono [02:39:58] bd808: ^ [02:40:04] andrewbogott: ^ [02:43:25] !log tools.botorder Killed BotOrderOfChapters.exe running on tools-login. Please use Grid Engine [02:43:26] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.botorder/SAL [02:44:05] !log tools.info-farmer Killed ws-ta-appendInPage.py running on tools-login. Please use Grid Engine [02:44:06] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.info-farmer/SAL [02:44:29] * harej eagerly awaits the day this is no longer an issue [02:44:43] Cyberpower678: what's "php ../../bin/ia-upload jobs"? [02:44:55] No idea [02:44:57] Not mine [02:45:25] ah. ia-upload is not iabot :) [02:45:30] Nope. :-) [02:45:43] IABot runs responsibly and correctly on tools [02:46:05] hmmmm [02:46:12] is this related to that guy who wanted that 500 GB VM? [02:46:41] there's a volunteer who uploads wikimedia dumps to internet archive for, well, archiving [02:48:40] I need to figure out the bug in tools.admin that keeps the maintainers from showing up in the listings [02:50:42] samwilson: you about? IA Uplaod seems to be running a queue processing job on tools-login [02:51:07] I'm about to kill it, but thought I'd give you a chance to shut it down gracefully [02:51:51] (it either finished or somebody else killed it) [03:06:14] chicocvenancio: Yeah, I'd like to be able to pass -N to the underlying mysql process. [03:08:09] bd808: yes, sorry! that was me. :( i kicked off a thing that I had thought kicked off a job [03:08:27] but didn't notice for ages that it was just sitting there running [03:08:37] samwilson: you made Cyberpower678 sad :) [03:09:06] sorry Cyberpower678 ! :) it's all-for-the-good-of-the-country i'm sure [03:10:05] bd808: Im'm lost, why am I sad? [03:10:17] :-) [03:10:31] because tools-login was slow. [03:10:44] samwilson: oh so that was you. :p [03:10:53] Nemo was doing a neat bash for loop using `sql`. [03:11:11] But it includes the header, so you always get at least one silly error for the literal string `dbname`. [03:11:21] tools-login is running fast again. :D [03:11:24] well, if someone's backup wikimedia to IA, i'm going to carry on backing up IA to Commons... [03:20:19] Ivy: could you explain what -N does? [03:22:12] --skip-column-names? [03:24:17] * zhuyifei1999_ uses a ugly workaround in the bash completion script https://gerrit.wikimedia.org/r/plugins/gitiles/labs/toollabs/+/9ecc544a40798d83ef26812d6eb3b4703f0a3ff5%5E%21/#F1 [03:25:03] so if that -N can be passed somehow it'd be great [03:25:47] zhuyifei1999_: Nice. :-) [03:29:07] Ivy: could you upload a patch for -N? [03:29:44] my naive thinking would be that any args after dbname that starts with a '-' is probably not part of the sql [03:30:12] zhuyifei1999_, no -'s here! [03:30:37] but we might be be better off if we specify a list of parameters explicitly [03:30:51] SQL: ;) [03:32:00] zhuyifei1999_: That seems more complicated than what I was thinking. [03:32:02] SQL: Hi! [03:32:08] Ivy, hi! [03:33:00] so were you thinking? [03:33:39] zhuyifei1999_: Just to add -N to sql and have it pass just that argument. [03:35:46] there are quite a log of other parameters for `mysql`. yeah -N is probably indeed the most-useful one, but does it make sense to ignore all the other switches and handle only -N? [03:36:27] zhuyifei1999_: Until we find another one we want to support, probably, yeah. [03:36:36] k [03:37:13] could you submit a patch / file a ticket (whichever you are more comfortable with)? [03:39:52] Yeah, I think so! [03:39:57] zhuyifei1999_: You can review for me? :-) [03:40:03] sure [03:40:07] Sweeeeeet. [03:48:03] zhuyifei1999_: I submitted https://phabricator.wikimedia.org/T189430 [03:48:08] I'll do a Gerrit patch in a minute, maybe. [03:48:14] k thanks [03:48:44] is the sql command a wrapper around mysql command? [03:48:59] Yes. [03:49:06] ok :-) [03:49:07] You can see the command in the output on that ticket. [03:49:16] ['mysql', '--defaults-file=/home/mzmcbride/replica.my.cnf', '-h', 's7.analytics.db.svc.eqiad.wmflabs', 'meta_p'] [03:49:21] For example. [03:55:08] (03PS1) 10MZMcBride: sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) [03:56:19] zhuyifei1999_: ^ :-) [03:56:27] k [03:56:30] I think that does it. [03:59:42] $(/usr/bin/sql --cluster web meta_p 'SELECT dbname AS "" FROM wiki WHERE is_closed = 0;' | /bin/sed '/^$/d') [03:59:45] That's kind of clever! [04:00:35] (03PS2) 10Zhuyifei1999: sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [04:01:53] (03PS3) 10Zhuyifei1999: sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [04:03:09] (03PS4) 10Zhuyifei1999: sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [04:03:44] (sorry for flooding patchsets) [04:04:17] Ivy: does my changes look good to you? [04:10:20] zhuyifei1999_: I'm not sure about "local opts="--cluster -N --skip-column-names" # --verbose is rarely used" [04:10:32] -N is a synonym of --skip-column-names. Do you need both? [04:10:38] Maybe just remove " -N"? [04:10:50] (03CR) 10Zhuyifei1999: [C: 031] sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [04:10:52] Though I'm not sure what opts is actually doing. [04:11:15] hmm [04:11:31] I thought opts was being passed later, but I misread. [04:11:32] Maybe just ignore m.e [04:11:33] me. [04:11:36] when someone -[tab], it would autocomplete [04:11:51] uh, autocomplete a lot of -- [04:12:00] Oh, nice! [04:12:02] yeah I guess it's better to remove -N [04:12:18] If it can tab-complete -, that'd be nice. [04:12:23] To know which arguments are available. [04:12:46] (03PS5) 10Zhuyifei1999: sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [04:13:04] zhuyifei1999_: Thanks for the patches! [04:13:20] right now it only has --cluster (you can try that) [04:13:23] np [04:13:45] Yeah, that's super-neat. [04:15:00] I'm gonna +1. if someone else say it's good enough I can merge + deploy [04:15:05] (03CR) 10Zhuyifei1999: [C: 031] sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [04:54:35] (03CR) 10BryanDavis: [C: 031] "LGTM. I saw the irc discussion about adding all mysql arguments, and I think I agree that would be overkill." [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [05:30:41] I just got an email saying that my @tools.wmflabs.org email will be deactivated shortly, but its obliviously a fake email, so is there someone who I should report this to or should I just delete it? [06:13:40] Thanks madhuvishy! That was so quick :) [06:14:21] prtksxna: yw :) [06:14:56] madhuvishy: So I deleted a bunch of instances, the reflex ones. Creating a new one now :) [06:15:20] prtksxna: awesome! [06:19:07] Zackary: feel free to make a phab task https://phabricator.wikimedia.org/maniphest/task/edit/form/1/ and tag cloud-services-team with the content of the email + headers. It sounds like phishing and there may be nothing much to do there, but probably worth documenting on phabricator for posterity atleast! [06:23:45] So I have my new instance - https://horizon.wikimedia.org/project/instances/33db5950-fecd-4219-bd1d-b5f7c4dc99f5/ - and I have created a web proxy too - ve-font.wmflabs.org [06:24:23] What do I need to do get a running mw instance? (sorry dumb questions 😐) [06:26:00] prtksxna: aah, https://wikitech.wikimedia.org/wiki/Help:MediaWiki-Vagrant_in_Cloud_VPS [06:26:28] Thanks! Reading now. [06:33:59] prtksxna: I'm gonna go sleep now, but feel free to ask questions here/create a task if you're stuck! Good luck :) [06:34:30] Thanks madhuvishy! (-, – )…zzZZ [06:39:10] madhuvishy: ah, thanks (filled as https://phabricator.wikimedia.org/T189434) [08:06:20] (03CR) 10jenkins-bot: Localisation updates from https://translatewiki.net. [labs/tools/heritage] - 10https://gerrit.wikimedia.org/r/418854 (owner: 10L10n-bot) [12:34:15] !log tools T188994 upgrade packages from trusty-wikimedia in all ubuntu servers [12:34:20] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [12:34:20] T188994: toolforge: package upgrades as part of the new workflow - https://phabricator.wikimedia.org/T188994 [12:49:50] !log tools T188994 upgrade packages from trusty-updates in all ubuntu servers [12:49:52] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [12:49:52] T188994: toolforge: package upgrades as part of the new workflow - https://phabricator.wikimedia.org/T188994 [13:10:27] I think updates are causing transient puppet failures [13:15:32] arturo: I see grub updates in the mixx there, could reboot 2 of the trusty instances to make sure they still come up ok post? [13:19:05] shit! [13:19:22] sure [13:19:45] !log tools T188994 upgrade packages from jessie-backports in all jessie servers [13:19:47] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [13:19:47] T188994: toolforge: package upgrades as part of the new workflow - https://phabricator.wikimedia.org/T188994 [13:26:56] !log tools depool tools-exec-1441 and tools-exec-1442 for reboots [13:26:58] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [13:29:12] chasemp: I can't see anything wrong with grub or puppet [13:29:18] cool [13:29:43] which transient errors did you see? [13:31:15] !log tools tools-exec-1441 and tools-exec-1442 rebooted fine and are repooled [13:31:16] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [13:32:01] * arturo leaving for lunch [14:54:01] (03CR) 10Zhuyifei1999: [C: 032] sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [14:54:55] (03Merged) 10jenkins-bot: sql: Add support for -N/--skip-column-names [labs/toollabs] - 10https://gerrit.wikimedia.org/r/418840 (https://phabricator.wikimedia.org/T189430) (owner: 10MZMcBride) [14:58:50] !log tools building, publishing, and deploying misctools 1.31 5f3561e T189430 [14:58:52] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [14:58:53] T189430: Support skipping column names when using `sql` on Tool Labs - https://phabricator.wikimedia.org/T189430 [15:21:11] bd808: I see Ivan is trying to move to Toolforge [15:28:39] These reports are quite important for Wikidata. User hasn't been able to share the source code, see https://www.wikidata.org/wiki/User_talk:Ivan_A._Krestinin#Publish_the_source_of_KRBot_please [16:01:11] multichill: from what they are saying about what it takes to actually run the bot I'm not sure if Toolforge will have room for it. 32-64G of runtime memory is a lot. [16:33:16] !log tools T188994 upgrading packages form jessie-wikimedia [16:33:23] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [16:33:23] T188994: toolforge: package upgrades as part of the new workflow - https://phabricator.wikimedia.org/T188994 [16:43:24] bd808: And without the source code it's hard to improve it. I believe user:Pasleim implemented it too and that probably runs on Toolforge already [16:53:53] !log tools T188994 upgrading packages from stretch-wikimedia [16:53:57] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [16:53:57] T188994: toolforge: package upgrades as part of the new workflow - https://phabricator.wikimedia.org/T188994 [17:13:00] !log tools T188994 upgrading packages from `stable` [17:13:02] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [17:13:03] T188994: toolforge: package upgrades as part of the new workflow - https://phabricator.wikimedia.org/T188994 [18:58:54] Oh boy, KrBot. [19:40:39] !log git deploying https://gerrit.wikimedia.org/r/#/c/418966/ to gerrit-test3 [19:40:40] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Git/SAL [19:49:19] !log git starting gerrit on gerrit-test3 after upgrade from 2.14.6 to 2.14.7 [19:49:20] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Git/SAL [19:52:02] !log phabricator delete phabricator-stretch1 and recreate it as phabricator-stretch (broken ssh) this is to test php 7.2 [19:52:02] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Phabricator/SAL [19:52:12] mutante ^^ :) [20:09:12] !log tools Run clush -w @all -b 'sudo umount /mnt/nfs/labstore1003-scratch && sudo mount -a' to remount scratch across all of tools [20:09:14] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [20:09:29] paladox: cool [20:46:58] !log phabricator cherry picking https://gerrit.wikimedia.org/r/#/c/410245/ to test php 7.2 [20:46:59] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Phabricator/SAL [22:08:51] hi folks. i'd like to ask you a question. [22:09:00] i'm trying to extract data directly from a mysql database into a csv [22:09:04] hello [22:09:05] using sth like [22:09:14] SELECT * INTO OUTFILE 'extent.csv' FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' FROM s53619__wcdo.ccc_cawiki_current [22:09:22] but it doesn't seem to work because of permissions [22:09:30] it doesn't matter if i change the path-file [22:09:39] or i submit the query in the terminal or with python [22:09:57] well, you don't have permissions in the db host [22:10:09] you should get the results and send that to the file [22:10:15] yup, i imagined it was that. but i tried to put the path [22:10:21] targetting my folder [22:10:27] but it didn't work anyway [22:10:36] isn't there anyway i introduce the path so it may work? [22:10:59] i can get the results and print them into a file, yup, but this just simplified a bit the process [22:11:07] https://dev.mysql.com/doc/refman/5.7/en/select-into.html [22:11:17] the filepaht will be on the db host [22:11:22] ok :) [22:11:30] i had to try :) no problem [22:11:36] thanks for the info [22:11:40] I don't think users have any permission there, but I may be wrong [22:12:55] mmecor: the easiest way I can think of is to use quarry [22:13:13] aha [22:13:21] i need to integrate it into a python script [22:13:32] https://stackoverflow.com/questions/356578/how-to-output-mysql-query-results-in-csv-format [22:13:37] so it's fine, i'll just get the results [22:13:53] python can read the database directly using appropriate libraries [22:14:13] yup yup. i just wanted to skip one step [22:14:20] and introduce the path-file into the query [22:14:23] instead of fetching results [22:14:35] but it is not a big deal :) [22:14:52] k [22:14:52] so no worries. thanks for the info [22:15:08] the important issue is the performance with the db, which is my concern [22:15:33] that's sth we'll know soon how to address it [22:15:57] so i keep working :)