[05:58:35] [[Tech]]; 188.247.75.3; [none]; https://meta.wikimedia.org/w/index.php?diff=24411638&oldid=24404254&rcid=26100271 [05:59:44] [[Tech]]; Tryvix1509; Reverted changes by [[Special:Contributions/188.247.75.3|188.247.75.3]] ([[User talk:188.247.75.3|talk]]) to last version by Tegel; https://meta.wikimedia.org/w/index.php?diff=24411639&oldid=24411638&rcid=26100275 [19:23:05] I've somehow managed to disabled ChristieBot which maintains the GA pages on en-wiki.  It's been running for three months with no problems and is now only allowing me to run the bot interactively from the bash prompt on toolforge.  The cron job gets a message "WARNING: No user is logged in on site wikipedia:en" and exits.  It seems to have [19:23:05] started doing this yesterday, when I logged out of a browser window that was logged in as the bot -- after I did that, the next time I ran it interactively it asked for a password. I gave it the bot user's wikipedia.org web password and it ran OK but since then has stopped running from cron.  My user-config.py file has "password_file = None" so I [19:23:06] was not using a password file, and I recall being told not to do that anyway.  I should have taken better notes when I got it running in the first place, but I didn't, so here I am, hoping for some help.  What do I need to do to re-enable offline jobs? [19:24:52] MikeChristie: hi! tbh I would recommend using password_file, as long as you set it to chmod 600 (only readable by your tool), it's secure enough [19:25:19] Thanks!  Is the password the same as the bot's web login password? [19:26:14] I would recommend setting up a "bot password", see https://www.mediawiki.org/wiki/Manual:Pywikibot/BotPasswords [19:29:28] Done; then put that username and pwd into a file identified by user-config.py? [19:29:40] yeah [19:54:11] I generated a password for user "Mike Christie@ChristieBot", and created a user-password.py file that has one line: "('en','wikipedia','Mike Christie@ChristieBot',BotPassword('ChristieBot','XXXXXXXXXX')).  The user-config.py now has a line "password_file = user-password.py".  That's on line 25 of the config file; when I run the bot at the command [19:54:12] line I get "password_file = user-password.py / NameError: name 'user' is not defined'.  I tried adding a line "user = Mike Christie@ChristieBot" and "password = XXXXXXXXXX" to the config file and that worked (interactively).  I took it back out again as I understand that's not secure.  Any idea what I'm doing wrong? [19:56:04] MikeChristie: in user-config.py, did you quote it like password_file = "user-password.py" ? [19:58:09] I'm an idiot.  That was it; works perfectly interactively now.  Trying cron in a few seconds. [20:01:17] It's fixed; hasn't written to the wiki yet but the database is being updated so it's running.  Thanks for your help!  Much appreciated. [20:09:59] MikeChristie: yw! anytime :)