[04:59:53] * Jwebb0628 slaps Jwebb0628 around a bit with a large fishbot [05:00:43] Jwebb0628 [05:01:01] Facebook [05:07:18] hi [05:08:15] noob question.. how do give myself access to my tool directory so i can upload to it with winscp or the like [05:11:32] What is up with this channel and random people? [05:12:03] pengo: Apologies, I’ve never had an issue with that. The key is to become the tool after and run “take" [05:12:08] OH-: No clue. [05:12:36] Now for my question: How do you create a local user on a debian machine? The commands I find online don’t work. This is a wmf labs instance btw. [05:13:11] a few days ago a random kiddo popped in and spammed a hashtag for a Minecraft server [05:13:23] useradd? [05:13:36] Try 'man useradd' [05:13:48] useradd is not found. [05:13:49] tools.every-other-wiki-has@tools-bastion-01:~/public_html$ take /home/pengo/test [05:13:54] /home/pengo/test: you must own the containing directory [05:14:00] “-bash: useradd: command not found” [05:14:15] That's awfully strange [05:14:24] pengo: Then move up a dirctory. “take” is recurisive :) [05:14:51] OH-: Agreed. And I need a local account for this tool to work properly. [05:14:53] same thing [05:15:10] Huh. [05:15:17] Wait… you’re taking a home? You can’t do that. [05:15:29] Each tool has its own data directory under /data/toolname IIRC. [05:15:32] That’s where take works. [05:15:44] Take is a custom command that just sets owners for all files. [05:15:59] I have an ubuntu instance and 'useradd' works [05:16:15] What's your $PATH? [05:16:17] ah.. i did not know about /data/.. was looking for a directory that both my user and tool had access [05:16:39] Each tool is isolated under data. Hold on one second. [05:17:08] It is /data/project/ [05:17:23] https://wikitech.wikimedia.org/wiki/Help:Tool_Labs#Using_Tool_Labs_and_managing_your_files [05:18:47] OH-: Sorry, “/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" [05:19:01] Is there a /sbin or /usr/sbin ? [05:19:18] useradd may be in there [05:19:30] Looks like it, hold on. [05:20:16] Looks like that worked. That’s strange sbin isn’t in the path of a default debian instance... [05:20:32] security, maybe *shrug* [05:21:11] Thanks for that. Lack of sleep makes for strange troubleshooting problems... [05:21:16] cheers [05:23:39] oh wait.. i did know about the data dir i just never noticed it was called that [05:23:51] ok chmod -R g+w /data/project/... seems to be the recommendation [05:28:19] which didn't seem to work either [05:30:46] I got a message (written to my console) from manuel saying "Hello"... [05:30:52] what's happened? [05:33:45] A friendly reminder from the NSA [05:33:51] lol [05:33:53] (I don't know) [05:34:28] let's $ wall hello [05:34:58] ^ that's gonna send hello to every single console [05:35:05] Oh, that explains it [05:35:09] * OH- that explains it [05:35:52] * OH- kowtows to unix guru [05:39:27] i should be able to do this, right? pengo@tools-bastion-01:~$ echo test > /data/project/mytool/test.txt [05:40:13] pengo: depends on whether it's writable or not [05:40:22] ls -l /data/project/mytool/test.txt [05:41:18] if the file does not exist, it depends on whether the parent dir is writable or not [05:41:30] i'm getting permission denied to create it [05:41:48] which file are you writing to? [05:42:15] writable as in writable by the owning group [05:42:26] /data/project/every-other-wiki-has/test.txt (non existant) [05:45:24] hmm this is weird [05:46:51] tried on a different tool.. same results.. tried making the file first as the tool.. giving it group-write permissions: [05:46:52] -rw-rw-r-- 1 tools.beastiebot tools.beastiebot 5 Dec 26 05:45 test.txt [05:47:21] i have access to that group with my user account [05:47:29] pengo@tools-bastion-01:~$ groups [05:47:29] wikidev project-bastion project-tools tools.beastiebot tools.every-other-wiki-has [05:47:40] pengo@tools-bastion-01:~$ echo test > /data/project/beastiebot/test.txt [05:47:49] -bash: /data/project/beastiebot/test.txt: Permission denied [05:47:53] what am i doing wrong? [05:50:32] or do i have to transfer every file to the tool account via wget / git ? [05:50:35] this is very weird indeed. I don't experience this issue on my tool [05:53:34] * zhuyifei1999_ is reading wikipedia on related stuffs [05:57:18] and an unrelated question.. is it ok to access wikidata via the database or are you meant to use json api queries or whatever? [06:00:13] database is okay I think [06:01:17] just don't run many very expensive quaries in parallel [06:03:53] just cause the db doesn't seem very well documented [06:04:20] i started adding more to e.g. https://www.mediawiki.org/wiki/Wikibase/Schema/wb_terms [06:07:43] wow cool [06:09:21] man this is real weird. I don't see your tool in https://wikitech.wikimedia.org/wiki/Special:NovaSudoer [06:10:58] apparently there's no entries for new tools [06:15:22] pengo: http://unix.stackexchange.com/questions/29545/group-member-cannot-write-even-with-write-permission suggests relogin [06:23:37] does that fix your issue? [06:48:07] Zhaofeng_Li, nope.. tried relogging in a few times.. even tried closing everything where i was logged in and trying again [06:49:46] what does $ id -Gn give you? [06:50:37] pengo@tools-bastion-01:~$ id -Gn [06:50:37] wikidev project-bastion project-tools tools.beastiebot tools.every-other-wiki-has [06:50:50] ugh [06:53:53] maybe you'd better ask an admin when they get up [06:54:43] ok [06:54:59] the site is working here.. https://tools.wmflabs.org/every-other-wiki-has/a.php [06:55:05] but i don't see it listed anywhere either [06:55:19] ? [14:27:00] hmm [15:55:08] Good morning [15:55:34] where I could see this error https://tools.wmflabs.org/wikiradio/playlist.php?filename=File:Libellago_lineata_male-Kadavoor-2015-08-21-001.jpg [16:19:25] how I could get sound duration? with api [16:20:02] because API is only for image [16:20:05] https://www.mediawiki.org/wiki/API:Imageinfo [16:45:14] how I could get the sound duration? [17:14:38] The_Photographer: Did you find solution? [17:23:50] Mavrikant: no [18:03:53] hello. a few days i reported a issue that was causing me not to show up as maintainer for several projects on toollabs. i still dont see myself as maintainer... does anybody know what's going on? [18:18:13] Wiki13: pls file a ticket for it. [18:18:26] on phabricator? sure [18:18:48] whats the project I should use for it thedj? [18:20:59] The_Photographer: https://commons.wikimedia.org/w/api.php?action=query&titles=File:Folgers.ogv&prop=videoinfo&viprop=size [18:21:50] thedj: if it is runing from wmflabs its already a bot? I want ask for 500 titles [18:22:00] Wiki13: I'd just use Tool-labs [18:22:08] k [18:22:47] The_Photographer: no, a bot requires an account with the bot flag [18:23:06] thedj: how I could ask it? [18:23:23] but most things don't need a bot flag. the default limits are pretty wide. [18:23:37] 500 titles in one go ? [18:23:55] yes [18:24:37] The_Photographer: there are some etiquitte guidelines here: https://www.mediawiki.org/wiki/API:Etiquette [18:25:22] The_Photographer: what are you trying to build ? [18:25:55] thedj: a machine https://github.com/emijrp/wikiradio/blob/master/playlist.php [18:29:03] hmm, if you want to have 500 files, for every time someone accesses that page, you'll probalby quickly need a database or local cache or something. [18:33:32] 6Labs, 10Tool-Labs: Not showing up as maintainer for several projects on toollabs - https://phabricator.wikimedia.org/T122456#1904626 (10Wiki13) 3NEW [18:33:47] thedj: ^ done [18:34:36] thedj: I was thinking in 500x500 request per 10 secconds [18:36:40] then stop thinking, and find a more sustainable method :) [18:36:55] 250000 per 10 seconds is a bit much [18:38:02] since you are already on wmflabs, you could just query the database directly and more efficiently [18:40:45] thedj: I preffer use a independent way [18:46:12] then you will need to apply local caching [18:54:53] I think so [18:55:05] the new php is available in labs? [18:57:26] Which new php? [18:57:27] php 7? [18:59:12] i dont think so... official packages of it are not widely if not at all available... [19:06:09] Reedy: yes [19:06:22] Why do you need php 7? [19:15:41] Reedy: type validation [19:23:31] 6Labs, 10Tool-Labs: Not showing up as maintainer for several projects on toollabs - https://phabricator.wikimedia.org/T122456#1904682 (10scfc) a:3scfc `updatetools.log` is full of: ``` Traceback (most recent call last): File "/usr/local/bin/updatetools", line 72, in update_users_table(db) F... [19:57:33] if I want get the filenames from a wikilinks of sounds from a page I could use '#[[File:(.*?).ogg]]#' ? [20:02:06] I have a text and I want find the ocurrences of text between two texts, ej: "This is [[File:test.ogg]] a litle example of why I [[File:test2.ogg]] want to do" ---> Result could be a array of ("test","test2") [20:02:08] 6Labs, 10Tool-Labs: Not showing up as maintainer for several projects on toollabs - https://phabricator.wikimedia.org/T122456#1904913 (10scfc) [20:16:16] How I could get the text array of "[[:File:test1.ogg]] and [[:File:test2.ogg]] example" result should be just ("test1","test2") [20:17:26] '#[[:File:(.*?).ogg]]#' not work [20:22:21] '/\[\[\:File\:(.+)\.ogg\]\]/' should do it [20:41:20] I shouldn't parse wikicode yourself [20:41:32] maybe using https://www.mediawiki.org/wiki/API:Alllinks [21:03:08] some idea to get all links of sound files (ej: ogg, flac...) from a page? https://en.wikipedia.org/w/api.php?action=query&list=alllinks&alnamespace=6&titles=United%20States&prop=revisions [21:24:56] 6Labs, 10Tool-Labs: Not showing up as maintainer for several projects on toollabs - https://phabricator.wikimedia.org/T122456#1904984 (10scfc) 5Open>3stalled I have hot-fixed the issue in the database; http://tools.wmflabs.org/#toollist-wikilinkbot now shows your user name. [21:38:34] 6Labs, 10Tool-Labs: Not showing up as maintainer for several projects on toollabs - https://phabricator.wikimedia.org/T122456#1904995 (10Wiki13) Thank you very much for that! Just one question let: If I would be added as maintainer to another project (not that it will happen really soon) this problem could the... [22:13:14] 6Labs, 10Tool-Labs: Not showing up as maintainer for several projects on toollabs - https://phabricator.wikimedia.org/T122456#1905017 (10scfc) All tools with you as maintainer should correctly display that fact, now and in the foreseeable future. [22:17:08] 6Labs, 5Continuous-Integration-Scaling: Nodepool can't SSH to spawn instances due to wmflabs provided instances due ssh algorithms - https://phabricator.wikimedia.org/T102459#1905029 (10hashar) Yup I have filled a bug for Shinken {T121767}. The instance has been deleted as far as I can tell. [22:19:13] 6Labs, 10Continuous-Integration-Infrastructure, 6operations, 7Puppet: compiler02.puppet3-diffs.eqiad.wmflabs out of disk space - https://phabricator.wikimedia.org/T122346#1905033 (10hashar) ``` -h, --human-numeric-sort compare human readable numbers (e.g., 2K 1G) ``` @scfc `5/5`. I wi... [22:34:30] I wanna create a task on grid that work every 6 hour. command is "python FarkYok.py"