ConfigurationError: Cannot find an implementation of the <tt>IPasswordStore</tt> interface named <tt>HtPasswdStore</tt>. Please check that the Component is enabled or update the option <tt>[account-manager] password_store</tt> in trac.ini.

56 views
Skip to first unread message

Velu Narasimman

unread,
Dec 20, 2019, 2:08:42 AM12/20/19
to Trac Users
Hi,

    I am facing a new problem now. It was working fine few days ago but not now. Below are the error details,

   
2019-12-20 11:20:45,706 Trac[main] ERROR: Can't authenticate using LoginModule:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0.15-py2.7.egg/trac/web/main.py", line 216, in authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.linux-x86_64/egg/usr_mgr/web_ui.py", line 143, in wrap
    return func(self, *args, **kwds)
  File "build/bdist.linux-x86_64/egg/usr_mgr/web_ui.py", line 156, in authenticate
    req.environ['
REMOTE_USER'] = self._remote_user(req)
  File "build/bdist.linux-x86_64/egg/usr_mgr/web_ui.py", line 196, in _remote_user
    if Usermanage(self.env).check_password(user, password):
  File "build/bdist.linux-x86_64/egg/usr_mgr/api.py", line 157, in check_password
    if (self.password_store.checkGlobal_password(user,password)):
  File "build/bdist.linux-x86_64/egg/usr_mgr/api.py", line 273, in password_store
    return self._password_store
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0.15-py2.7.egg/trac/config.py", line 747, in __get__
    option=tag.tt("[%s] %s" % (self.section, self.name))))
ConfigurationError: Cannot find an implementation of the <tt>IPasswordStore</tt> interface named <tt>HtPasswdStore</tt>. Please check that the Component is enabled or update the option <tt>[account-manager] password_store</tt> in trac.ini.

I found a suggestion at this link https://groups.google.com/forum/#!topic/trac-users/sf1bKgcrzr4 but in my trac.ini configuration file, I have the following enabled already.

[account-manager]
password_file
= /usr/share/trac/trac.htpasswd
password_store
= HtPasswdStore

[components]
acct_mgr
.htfile.htdigeststore = enabled
acct_mgr
.htfile.htpasswdstore = enabled


Now login doesn't work and I am not able to access the site. Please help me to fix this up!


Ryan Ollos

unread,
Dec 20, 2019, 3:38:34 AM12/20/19
to Trac Users
You might just try:
[components]
acct_mgr.* = enabled

if that works, you can start disabling components.

Also, check that components are loading:


I'm not sure what to make of this traceback:
File "build/bdist.linux-x86_64/egg/usr_mgr/web_ui.py", line 196, in _remote_user
    if Usermanage(self.env).check_password(user, password):

What is "usr_mgr", and "Usermanage" class? That's not part of AccountManager. And why is that path relative rather than absolute? It seems maybe you are loading an egg unintentionally. Maybe some fork of UserManagerPlugin?

- Ryan

Velu Narasimman

unread,
Dec 20, 2019, 3:58:53 AM12/20/19
to Trac Users
Of course it is Usermanager plugin that we used in our application. I try out your suggestions. Thank you!
Reply all
Reply to author
Forward
0 new messages