Help talk:Toolforge/Archives/2017
Appearance
Latest comment: 7 years ago by BryanDavis in topic Why i cant add a new public ssh key?
| Please do not post any new comments on this page. This is a discussion archive See current discussion or the archives index. |
Bot password when running with jsub
Hi, I have a bot that I want to send to the grid with jsub. The bot changes files in the Hebrew Wiktionary and I supplied user-config.py with mylang='he' family = 'wiktionary' usernames['wiktionary']['he'] = u'dafna3.bot'
in the .err file I get:
File "/data/project/he-wiktionary-rule-checker/hewiktionary_checker/rule_checker.py", line 361, in main
report_page.save("\u05e1\u05e8\u05d9\u05e7\u05d4 \u05e2\u05dd \u05d1\u05d5\u05d8 ")
File "/data/project/shared/pywikipedia/core/pywikibot/tools/__init__.py", line 1448, in wrapper
return obj(*__args, **__kw)
File "/data/project/shared/pywikipedia/core/pywikibot/tools/__init__.py", line 1448, in wrapper
return obj(*__args, **__kw)
File "/data/project/shared/pywikipedia/core/pywikibot/page.py", line 1259, in save
cc=apply_cosmetic_changes, quiet=quiet, **kwargs)
File "/data/project/shared/pywikipedia/core/pywikibot/page.py", line 139, in wrapper
handle(func, self, *args, **kwargs)
File "/data/project/shared/pywikipedia/core/pywikibot/page.py", line 121, in handle
func(self, *args, **kwargs)
File "/data/project/shared/pywikipedia/core/pywikibot/page.py", line 1270, in _save
watch=watch, bot=botflag, **kwargs)
File "/data/project/shared/pywikipedia/core/pywikibot/site.py", line 1329, in callee
self.login(False)
File "/data/project/shared/pywikipedia/core/pywikibot/site.py", line 2093, in login
if loginMan.login(retry=True):
File "/data/project/shared/pywikipedia/core/pywikibot/login.py", line 305, in login
password=True)
File "/data/project/shared/pywikipedia/core/pywikibot/bot.py", line 414, in input
data = ui.input(question, password=password, default=default, force=force)
File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 294, in input
text = self._input_reraise_cntl_c(password)
File "/data/project/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 308, in _input_reraise_cntl_c
text = getpass.getpass()
File "/usr/lib/python3.4/getpass.py", line 92, in unix_getpass
passwd = fallback_getpass(prompt, stream)
File "/usr/lib/python3.4/getpass.py", line 127, in fallback_getpass
return _raw_input(prompt, stream)
File "/usr/lib/python3.4/getpass.py", line 149, in _raw_input
raise EOFError
Shavtay (talk) 08:37, 14 May 2017 (UTC)
- @Shavtay: It sounds like you need to setup a password file or some other means of passing your account's password to pywikibot. See mw:Manual:Pywikibot/login.py for some ideas. Personally I like using owner-only OAuth grants. The pywikibot setup for that is described at mw:Manual:Pywikibot/OAuth. --BryanDavis (talk) 19:31, 14 May 2017 (UTC)
Why i cant add a new public ssh key?
I cant add a new SSH public key that start with ssh-rsa. Why? --Walter Klosse (talk) 17:59, 28 June 2017 (UTC)
- @Walter Klosse: What error message did you get? Did your copy and paste of the key include any extra newlines? An SSH public key in the proper format will be a single long line that starts with
ssh-rsafollowed by a long base64 encoded string and optionally a label for the key. Opening a Phabricator task might be an easier way to work through your problem than this talk page. We would also be glad to try and help you figure out what is going wrong interactively in the #wikimedia-cloud connect irc channel. Use!helpto get attention from an admin. --BryanDavis (talk) 23:23, 28 June 2017 (UTC)