[00:04:25] !log tools.eranbot disable all plagiabot jobs T354145 [00:04:31] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.eranbot/SAL [10:13:21] !log tools hard reboot tools-harbor-1 [10:13:25] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [10:37:37] !log tools hard reboot tools-harbor-1 [10:37:40] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [10:42:51] !log tools flushed the redis db on tools-harbor-1 (T354176) [10:42:55] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [10:42:55] T354176: [harbor] Redis using all available memory - https://phabricator.wikimedia.org/T354176 [11:05:07] I have a problem with one of my scripts in toolforge. It uses the python `pytz` package, which is installed in the virtual environment, but when the script actually is run by toolforge (at the end of each month), the .err file says `ModuleNotFoundError: No module named 'pytz'`. Any idea what I can do to fix it? [11:06:05] !log tools restart toolsdb database to flush connections (T354176) [11:06:10] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [11:06:10] T354176: [harbor] Redis using all available memory - https://phabricator.wikimedia.org/T354176 [11:06:44] jhsoby: what tool is this? How are you running it on toolforge? (which image/etc.) [11:08:25] `source pyvenv/bin/active` and then `pip3 install pytz` says "Requirement already satisfied". And running the actual script (`createcategorybot.py`) from within that venv seems to work like it should. But when it is run by toolforge (command: `toolforge jobs run createcategorybot --command "pyvenv/bin/python3 createcategorybot.py" --image python3.9 --schedule "55 21,22 28,29,30,3 [11:08:26] 1 * *"` ), it fails (re @jhsoby: I have a problem with one of my scripts in toolforge. It uses the python pytz package, which is installed in the virtual environ...) [11:09:02] dcaro: didn't see your question before now, but hopefully that ^ message answers that question [11:09:09] it's in the tool "jhstools" fwiw [11:14:08] jhsoby, did you follow the instructions here to create the venv? (https://wikitech.wikimedia.org/wiki/Help:Toolforge/Python#Jobs) [11:14:50] note that that's a script that has to be run from `toolforge jobs`, not commands for you to run from the shell [11:21:58] Alternatively, if you have your code in a git repo (highly recommended), you can try using the build service (https://wikitech.wikimedia.org/wiki/Help:Toolforge/Build_Service/My_first_Buildpack_Python_tool) that does not need creating a venv manually [11:27:05] dcaro: I think i used that to create the venv, but probably not to install pytz. Could that be the issue? [11:27:47] Yes [11:27:51] jhosby: yep, you should use it also to install things, otherwise it's not really using the same python that the docker image will run, but the one from the bastion where your shell runs [11:28:20] okay, makes sense [11:29:43] let me know how it goes :) [12:01:01] dcaro: I think it works, at least nothing unexpected happened when I ran the job as a one-off. Now added it again as a scheduled job, but it won't actually do anything until the end of the month, so we'll see then 😊 [12:01:19] \o/ [14:13:16] StrikerBot: If someone could review/merge the one-liner in https://gerrit.wikimedia.org/r/c/labs/striker/+/987145 that would be awesome b/c next Phab deployment might break it a bit otherwise... TIA! [14:17:33] andre: wil that break before the next Phab deployment? [14:17:47] (merging that change I mean) [14:17:50] nope [14:18:06] it just sets the project description field when creating a new project tag in Phab [14:18:26] +1d, though I'm not very familiar with the codebase, it looks safe enough :) [14:18:43] This was not a requirement so far, and I'd like to make it a requirement (mostly for humans, but I cannot differentiate between humans and machines) [14:36:53] I'm also not familiar with the codebase, but maybe we can set the description value to match the project description in Striker? [14:46:19] I left a couple comments in gerrit [14:54:13] that feels like it would be more useful yep [14:54:18] (than setting the name again) [17:34:01] andre sorry about the hundred comments in the patch, bd808 will probably be able to provide better support :) [17:34:38] * dhinus off for the day [17:34:42] ahaha np :) [17:34:45] thanks for the reviews! [17:34:52] yw