[moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell

Lars Noodén lars.nooden at gmail.com
Sat Jul 29 09:53:56 EDT 2017


I seem to have MoinMoin 1.9.8 at least partially set up.  I can add new
accounts via the web and edit pages and so on.  What I would like to do
is use the shell interface to reset the password for an account.  From
what I understand it should be the following:

    moin account resetpw --name=someaccount newpassword

However, when I run "moin" from the shell with those options I get the
errors below.  What do I need to change to be able to reset passwords
manually via the shell?

Regards,
Lars

2017-07-29 16:07:13,271 INFO MoinMoin.log:151 using logging
configuration read from built-in fallback in MoinMoin.log module
2017-07-29 16:07:13,274 INFO MoinMoin.log:157 Running MoinMoin 1.9.8
release code from /usr/local/lib/python2.7/site-packages/MoinMoin
2017-07-29 16:07:14,773 INFO MoinMoin.config.multiconfig:93 using farm
config: /home/wiki/farmconfig.pyc
Traceback (most recent call last):
  File "./moin", line 6, in <module>
    run()
  File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/moin.py",
line 15, in run
    MoinScript().run(showtime=0)
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py",
line 138, in run
    self.mainloop()
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py",
line 266, in mainloop
    plugin_class(args[2:], self.options).run() # all starts again there
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py",
line 138, in run
    self.mainloop()
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/script/account/resetpw.py",
line 116, in mainloop
    self.init_request()
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py",
line 185, in init_request
    self.request = ScriptContext(url, self.options.page)
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line
439, in __init__
    wsgiapp.init(self)
  File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py",
line 52, in init
    context.lang = setup_i18n_preauth(context)
  File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py",
line 241, in setup_i18n_preauth
    i18n.i18n_init(context)
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/i18n/__init__.py", line
73, in i18n_init
    meta_cache = caching.CacheEntry(request, 'i18n', 'meta',
scope='wiki', use_pickle=True)
  File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py",
line 73, in __init__
    self.arena_dir = get_arena_dir(request, arena, scope)
  File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py",
line 32, in get_arena_dir
    return os.path.join(request.cfg.cache_dir, request.cfg.siteid, arena)
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line
56, in get
    res = obj.environ.setdefault(self.name, factory(obj))
  File
"/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line
132, in cfg
    raise NotFound('<p>No wiki configuration matching the URL found!</p>')
werkzeug.exceptions.NotFound: 404: <p>No wiki configuration matching the
URL found!</p>


More information about the moin-user mailing list