[06:37:08] Does anyone know if lower sigma is still functioning? Simple hasn’t archived in months except when an admin has time to run his which is very infrequent. [16:32:17] * PotsdamLamb 👋 [16:55:21] anyone around? [17:25:16] TheresNoTime: your latest patch for T310727 is live on https://developer.wikimedia.org/ now if there is anything you want to test. [17:25:16] T310727: Add OpenGraph meta tags - https://phabricator.wikimedia.org/T310727 [17:25:57] https://usercontent.irccloud-cdn.com/file/9Qg2Ke0a/image.png [17:26:00] oh its a work of art [17:26:39] such logo. much wow [17:31:44] Does anyone know if lower sigma is still functioning? Simple hasn’t archived in months except when an admin has time to run his which is very infrequent. [17:32:14] PotsdamLamb: https://guc.toolforge.org/?user=Lowercase_sigmabot_III shows activity on enwiki, but not on other wikis. [17:32:18] I also like the logo [17:33:18] @bd808 It used to until about a month ago. Do I need to have one on simple? I saw I can copy the code without altering so me getting a bot and bot flag should not be an issue [17:33:30] over a month ago on simple [17:35:08] PotsdamLamb: I don't see User:Lowercase_sigmabot_III even attached on simplewiki -- https://meta.wikimedia.org/wiki/Special:CentralAuth/Lowercase_sigmabot_III [17:36:22] PotsdamLamb: what's a simplewiki page that was being archived? We can check the history to figure out which bot did it. There are a number of them that all use the same pywikibot script to actually do the archiving. [17:37:22] https://simple.wikipedia.org/wiki/Wikipedia:Simple_talk [17:37:44] https://simple.wikipedia.org/wiki/User_talk:PotsdamLamb [17:37:54] pretty much all user talks for the main people [17:38:11] https://simple.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard [17:38:19] That is just a few of them [17:38:39] per https://simple.wikipedia.org/w/index.php?title=Wikipedia:Simple_talk/Archive_143&action=history I'd say https://simple.wikipedia.org/wiki/User:SassoBot was doing the needful. [17:39:10] correct but he is around sporadically and it is a manual activation [17:39:25] He has been super busy IRL [17:39:51] You got a Toolforge account recently so you could setup a bot there, correct? [17:40:04] yes and a developer account [17:40:17] I was just gonna copy over everything from lower [17:43:00] PotsdamLamb: https://www.mediawiki.org/wiki/Manual:Pywikibot/archivebot.py should work with the {{User:MiszaBot/config}} template. Or you could try using lowercase sigma III's bot from https://en.wikipedia.org/wiki/User:Lowercase_sigmabot_III/Source.py [17:44:59] Which would you recommend? I know some people archive by days, some by months, some by years [17:45:12] @bd808 [17:46:34] PotsdamLamb: I have setup the pywikibot version before. It handles all of the per-page config options as far as I know -- https://www.mediawiki.org/wiki/Manual:Pywikibot/archivebot.py/setup [17:47:03] There is info at https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot on running pywikibot scripts from Toolforge [17:54:25] Ok Thanks @bd808. Let me get my accounts linked and flagged so I can get it going (I hope). [19:21:09] @bd808 why is toolforge not letting me login via ssh [19:21:16] It is saying invalid password [19:24:38] Toolforge does not allow password based ssh. You must use public key authentication. [19:25:13] ok so I attached the ssh to my account already [19:25:24] I will try again, maybe it is not reading it [19:25:45] https://wikitech.wikimedia.org/wiki/Help:Accessing_Cloud_VPS_instances and/or https://wikitech.wikimedia.org/wiki/Help:Access_to_Toolforge_instances_with_PuTTY_and_WinSCP may be helpful [19:27:09] it also helps to not capitalize my uid lol [19:30:47] @bd808 that is what it was I used the normal caps of my UID instead of all lower case. [19:30:49] Thx [22:09:33] @bd808 so I got everything on it done down to doing the non-live testing as I cannot follow the instructions at that point [22:13:23] PotsdamLamb: which particular instructions lost you? (/me assumes this is pywikibot setup in Toolforge continued from #wikimedia-cloud) [22:14:00] https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot#Using_the_virtual_environment_without_activating_it [22:14:30] that section plus what variables do i need to set or I am happy to set you as a maintainer and you can help me out :) [22:22:20] PotsdamLamb: if you created a virtual environment (venv) at `$HOME/pwb` as the prior instructions on that page did, then when you use the `$HOME/pwb/bin/python3` python binary it will automatically use libraries from the venv without the need for sourcing the `$HOME/pwb/bin/activate` file. [22:28:40] PotsdamLamb: So to run the archivebot.py script you would use a command like `$HOME/pwb/bin/python3 $HOME/pywikibot/scripts/archivebot.py`. For your first test you probably want to add a `-page:PotsdamLamb` argument to limit the bot to changing your user's talk page (or some similar testing page). See https://www.mediawiki.org/wiki/Manual:Pywikibot/archivebot.py for the options that you can give to the script. [22:33:02] @bd808 now it won't let me do anything. I became my tool name, did a cd /home typed in nano .bash_profile which came up blank, copied export PYTHONPATH=/data/project/shared/pywikibot/stable:/data/project/shared/pywikibot/stable/scripts and it says I do not have permissions [22:34:21] PotsdamLamb: that PYTHONPATH stuff is only needed if you did not make the local git clone of pywikibot. But the lack of permissions is strange and unexpected [22:35:16] oh... `cd /home` would put you in the wrong place. `cd $HOME` is probably what you needed [22:35:39] tools.pdlbotarchiver@tools-sgebastion-10:/$ source .bash_profile [22:35:39] -bash: .bash_profile: No such file or directory [22:35:40] or just `cd` as the default is to change directory to $HOME [22:36:38] ok the $home worked [22:36:49] PotsdamLamb: that shell prompt looks like your current working directory is / rather than /data/project/pdlbotarchiver ($HOME) [22:37:31] when you are in /data/project/pdlbotarchiver I would expect the prompt to look like `tools.pdlbotarchiver@tools-sgebastion-10:~$ ` [22:37:56] The `~` is another representation of `$HOME` [22:38:22] RuntimeError: No user-config.py found in directory '/mnt/nfs/labstore-secondary-tools-project/pdlbotarchiver'. [22:38:40] i get that when running 'python3 /data/project/shared/pywikibot/stable/pywikibot/scripts/generate_user_files.py' [22:41:20] PotsdamLamb: you are mixing instructions from two separate install paths, but I can see how the current help page on wikitech does not explain this well to people who don't know already. :/ [22:42:38] Instead of `python3 /data/project/shared/pywikibot/stable/pywikibot/scripts/generate_user_files.py` with the local venv and git clone you should do `$HOME/pwb/bin/python3 $HOME/pywikibot/scripts/generate_user_files.py` [22:43:31] that should prompt you for some information to setup how your bot will login and which wikis it will work on by default [22:46:11] it doesn't It is saying no such file or directory