[10:43:00] !log deployment-prep move swift settings out of horizon and into puppet's hieradata [10:43:04] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/SAL [16:15:22] Hello, I am making the setting of Pywikibot and I get a small issue by login. I followed the steps from https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot#Submitting,_managing_and_scheduling_jobs_on_the_grid to create the user_config.py and user_password.py, this one should work as I used it previously on other platforms. In my Django app [16:15:22] I have some import pywikibot... However when I try to make pwb.py login, it asks my password instead to read user_password.py (nevertheless it created the throttle file). When Django tries to run a script, it wants the password to be typed which is impossible, so it returns an error. It must be a small detail but I don't know how to solve that [16:15:23] right now. [16:49:20] Psemdel: that might be a good question for https://lists.wikimedia.org/mailman/listinfo/cloud since more people are likely to see it there over the course of a day. You might find someone there who has built a similar thing. [16:50:33] Psemdel: you might also try the #pywikibot irc channel here on Freenode for questions about integrating pywikibot as a library with Django. [17:13:04] I will use the mail. I don't think that the problem is with Pywikibot, because it worked fine in Heroku, but actually I cannot remember how I did it. The first log is always difficult, afterwards it is done somehow... [17:25:55] "actually I cannot remember how I did it" -- a thing I have to say too often :) [17:42:52] hence I often record all the commands I use [17:49:45] bd808: I think it is for all of us the same. When everything works, I will try to write something [17:51:01] zhuyifei1999_: In my case, I think it is better not, because I really tried a lot of things in the last 2 weeks... [17:56:04] o.O [17:58:18] Psemdel: which tool is this? I can take a look later [18:06:31] the biggest problem is that I cannot read I think :/, and that the documentation is splat between different chapters. As I use Python/Django/A database/A worker/statics/pywikibot, and never used Kubernetes or Nginx before, I had some beginner issues. It is not the tools itself. Now I am almost (I hope) done. There is only the login to pywikibot, [18:06:31] which is almost nothing. and then hopefully, it should run (hope dies last..) [18:07:27] good point is that I learnt some new stuffs, so it was not very efficient, but not useless [18:09:34] yes, I can take a look at your configuration if you name your tool [18:11:49] cycling-init-bot [18:12:06] it is just I don't get why the user-password.py is not read [18:12:19] and pywikibot asks me the password... [18:12:47] but the user-config.py which is in the same folder is read... [18:24:26] Here I tried to give more permission [18:24:36] The log seems contradictory to me: [18:24:37] WARNING: /data/project/cycling-init-bot/www/python/src/pywikibot/tools/__init__.py:2091: UserWarning: File /data/project/cycling-init-bot/www/python/src/user-password.py had 777 mode; converted to 600 mode.[2020-10-07 18:22:27,803: WARNING/ForkPoolWorker-4] /data/project/cycling-init-bot/www/python/src/pywikibot/tools/__init__.py:2091: UserWarning: [18:24:38] File /data/project/cycling-init-bot/www/python/src/user-password.py had 777 mode; converted to 600 mode.Password for user CyclingInitBot on wikidata:wikidata (no characters will be shown): [2020-10-07 18:22:27,931: WARNING/ForkPoolWorker-4] Warning: Password input may be echoed. [18:24:59] On one side, it find the file, on the other side I have to type the password... [18:29:16] I think that log is complaining that your password file's permissions are tool loose (which means the password stored there is insecure) [18:29:46] your Django process will run as your tool's user, so 0600 permissions should be correct [18:29:59] that will let your tool account read the file, but no one else [18:30:45] and you should probably change the password of the Wikimedia account you are using in the user-password.py file after you fix the file permissions [18:32:21] before it was 600 [18:32:30] yes [18:32:41] but interesting is that this warning show that it is found [18:41:57] Psemdel: your username in user-config.py is CyclingInitBot whereas in user-password.py it's your main account. expected? [18:42:46] it is ('Psemdel', BotPassword('CyclingInitBot', 'pass')) [18:42:59] should it be ('CyclingInitBot', BotPassword('CyclingInitBot', '4rWn5CCaGjfLR6U4')) ? [18:43:08] :facepalm: [18:43:22] Psemdel: please do not post passwords in public [18:43:41] ah shit [18:43:47] I replaced the first [18:44:01] I change right away [18:44:03] even if they're bot passwords; you need to generate a new botpassword now I guess :) [18:44:21] if it was the only issue... [18:46:19] the first value is the username [18:46:30] the second value is the name of the botpassword [18:46:52] the third value is the random gibberish of the botpassword [18:47:44] ('Username', BotPassword('BotName', 'Password')) [18:47:45] for example, if I have a bot, say, "User:MyBot" [18:48:10] and I go to Special:BotPassword to create a botpassword named pwb [18:48:26] and the random gibberish it generates is abcdef123456 [18:48:44] then it would be ('MyBot', BotPassword('pwb', 'abcdef123456')) [19:01:20] hey cloud folks, i noticed a new internal (eqiad.wmflabs) A record was not created for a new instance i launched [19:01:44] https://www.irccloud.com/pastebin/JWwUoWWc/ [19:03:06] no sure what went awry or what i can do about it (perhaps just re-create it?) [19:37:42] marxarelli: new instances don't get eqiad.wmflabs addresses anymore. They only get ..eqiad1.wikimedia.cloud addresses now [19:38:10] Does that mesh with what you saw? [19:38:30] bstorm: a ha! i must have missed that announcement [19:39:13] i'm spinning up another instance. i'll check dns... [19:39:31] Here's some info T260614 [19:39:32] T260614: Phase out use of .wmflabs tld - https://phabricator.wikimedia.org/T260614 [19:40:31] right on. i see it in wikimedia.cloud [19:40:37] i'll update my ssh config... [19:40:42] bstorm: thank you! [19:40:57] Cool :) [19:41:03] np [19:41:26] I'm not sure we've made that work as expected with the puppet compiler yet... [19:41:32] But that's the deal :) [19:41:38] got it [19:41:44] wikimedia.cloud is fancy :) [19:42:01] so should i use a different address for the bastion as well? [19:42:22] i'm referencing primary.bastion.wmflabs.org atm [19:45:25] marxarelli: i just recently switched to restricted.bastion.wmcloud.org in my config [19:45:35] so i think bastion.wmcloud.org for you [19:46:30] mutante: seems to work. thanks :) [19:46:50] i see there is also primary.bastion.wmcloud.org but same IP for now [19:46:58] yep, you're welcome [19:53:26] hey Psemdel, cool to hear your problems are solved :D. for the mailing list, just as a suggestion, if you are sending a message that is a reply or follow up of a message you sent before, I think it is good etiquette to reply to yourself in the previous email you sent, instead of sending a new one. just a tiny nitpick :) [19:54:02] I bundled my emails, so I will receive "my email" tomorrow [19:54:17] aah I understand [19:54:21] I hope I don't have to send so many emails... [19:54:30] cool cool, just a suggestion :D [19:54:34] thank you [19:54:55] obviously I need some piece of advices, as I have so many questions [19:55:25] no worries, it takes time and effort to learn, I myself am learning too