Hi Anke,

Am Fr., 19. Mai 2023 um 09:50 Uhr schrieb Anke Visser <
[email protected]>:

> Hello,
>
> I'm trying to upgrade to Trac1.5.4, which allows to use a current version
> of python. I've already migrated the PageAuthzPolicyEditor plugin, but I'm
> stuck with the TracDirectoryAuth plugin, which implements the
> IPasswordStore interface from TracAccountManager.
>
> TracAccountManager works fine with htpasswd, but if I enable the
> TracDirectoryAuth plugin, trac shows an internal error: "TemplateNotFound:
> account_login.html". This seems to happen in acct_mgr/web_ui.py, after
> calling "return 'account_login.html'" (but it's not part of the stack
> trace).
> I think that the error message is misleading because the template
> "account_login.html" exists and can be used in other situations. But it's
> the only error message, that is shown in the log. Do you have any idea what
> may have caused this error or how to search for it?
> I'm using the trunk version of both plugins, but I had to modify
> TracDirectoryAuth because of the python/trac API changes.
>
>
if i remember right i couldnt get the trunk version of AccountManager to
work properly with 1.5.4 so i tried the fork of Niels Sascha Reedijk on
github https://github.com/nielx/trac-accountmanager-fork
you might try this version with the other plugin and see if you get a
diffrent error then the one for the account_login.html



> I 'm grateful for any help,
> Anke
>
> > 2023-05-17 17:01:07,168 Trac[main] ERROR: [172.17.0.1] Internal Server
> Error: <RequestWithSession "GET '/login'">, referrer '
> https://tractest.zam.kfa-juelich.de/visser1/prefs <
> https://tractest.zam.kfa-juelich.de/visser1/prefs>'
> > Traceback (most recent call last):
> >    File "/usr/local/lib/python3.9/dist-packages/trac/web/main.py", line
> 610, in dispatch_request
> >      dispatcher.dispatch(req)
> >    File "/usr/local/lib/python3.9/dist-packages/trac/web/main.py", line
> 302, in dispatch
> >      raise e
> >    File "/usr/local/lib/python3.9/dist-packages/trac/web/main.py", line
> 266, in dispatch
> >      output = chrome.render_template(req, template, data, metadata)
> >    File "/usr/local/lib/python3.9/dist-packages/trac/web/chrome.py",
> line 1377, in render_template
> >      template, data = self.prepare_template(req, filename, data, text,
> >    File "/usr/local/lib/python3.9/dist-packages/trac/web/chrome.py",
> line 1480, in prepare_template
> >      template = self.load_template(filename, text)
> >    File "/usr/local/lib/python3.9/dist-packages/trac/web/chrome.py",
> line 1323, in load_template
> >      return (self.jenv_text if text else
> self.jenv).get_template(filename)
> >    File "/usr/local/lib/python3.9/dist-packages/jinja2/environment.py",
> line 1010, in get_template
> >      return self._load_template(name, globals)
> >    File "/usr/local/lib/python3.9/dist-packages/jinja2/environment.py",
> line 969, in _load_template
> >      template = self.loader.load(self, name, self.make_globals(globals))
> >    File "/usr/local/lib/python3.9/dist-packages/jinja2/loaders.py", line
> 126, in load
> >      source, filename, uptodate = self.get_source(environment, name)
> >    File "/usr/local/lib/python3.9/dist-packages/jinja2/loaders.py", line
> 218, in get_source
> >      raise TemplateNotFound(template)
> > TemplateNotFound: account_login.html
> > 2023-05-17 17:01:07,168 Trac[authz_policy] DEBUG: Parsing authz security
> policy /trac/projects/visser1/visser1.tracauthz.conf
> > 2023-05-17 17:01:07,169 Trac[api] DEBUG: action controllers for ticket
> workflow: ['ConfigurableTicketWorkflow']
> > 2023-05-17 17:01:07,169 Trac[authz_policy] DEBUG: Checking TRAC_ADMIN on
> *:*@*
> > 2023-05-17 17:01:07,169 Trac[auth] DEBUG: _dir_search: searching
> ou=users,cn=trac,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/703f69ee-fe6f-4c3c-8a0c-d3548eaf4fe0n%40googlegroups.com
> <https://groups.google.com/d/msgid/trac-users/703f69ee-fe6f-4c3c-8a0c-d3548eaf4fe0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAJ4osO%3D%2BJeMtV3zPv-tZ5MZXv9hoRFLxNO6-i9LiEhZVARC_ag%40mail.gmail.com.

Reply via email to