Ticket #1692 (reopened defect)

Opened 1 year ago

Last modified 1 year ago

No 'envroot' set in global trac.ini

Reported by: gustavo@gnulinuxmatters.org Assigned to: brad
Priority: high Component: DbAuthPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description

Hello.

I've installed DbAuthPlugin for Trac 0.10.4 and everytime I access the login page I get this:

Traceback (most recent call last):
  File "/home/glm_trac/packages/lib/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/home/glm_trac/packages/lib/python2.3/site-packages/trac/web/main.py", line 173, in dispatch
    for handler in self.handlers:
  File "/home/glm_trac/packages/lib/python2.3/site-packages/trac/core.py", line 55, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/home/glm_trac/packages/lib/python2.3/site-packages/trac/core.py", line 179, in __getitem__
    component = cls(self)
  File "/home/glm_trac/packages/lib/python2.3/site-packages/trac/core.py", line 98, in maybe_init
    init(self)
  File "build/bdist.linux-i686/egg/dbauth/auth.py", line 39, in __init__
  File "build/bdist.linux-i686/egg/dbauth/env.py", line 30, in get_envname
TracError: No 'envroot' set in global trac.ini

However, this is what I've added to my global Trac file:

[components]
trac.web.auth.* = disabled
dbauth.* = enabled
trac.userdir.* = enabled  # only if you want to use this

[central]
database = /home/glm_trac/trac_sites/dbauth.db
envroot = /home/glm_trac/trac_sites/glm

An my project configuration file contains this:

[inherit]
file = /home/glm_trac/packages/share/trac/conf/trac.ini

I've checked every single path and they're all fine.

Thanks in advance!

Attachments

trac-dbauth-plugin-0.4-0.1.dev_r3881.fc9.src.rpm (9.0 kB) - added by anonymous on 06/21/08 21:56:11.
simple 0.10 (0.4-dev_r3881) tested and worked on fedora 9

Change History

06/22/07 04:29:26 changed by anonymous

  • priority changed from normal to high.
  • release changed from 0.11 to 0.10.
  • severity changed from normal to blocker.

06/22/07 05:16:34 changed by Gustavo Narea

I've found the solution here: http://www.fuzzylizard.com/archives/2007/01/16/854/

Cheers.

Gustavo.

06/22/07 07:23:39 changed by brad

  • status changed from new to closed.
  • resolution set to worksforme.

As noted in the site where you found the solution, the tutorial http://natmaster.com/articles/installing_trac_0.10.php is wrong:

incorrect:

[central]
database = /home/glm_trac/trac_sites/dbauth.db

a database URL should always start with a scheme

correct:

[central]
database = sqlite:/home/glm_trac/trac_sites/dbauth.db

11/22/07 03:48:36 changed by aeron.chang@gmail.com

  • status changed from closed to reopened.
  • resolution deleted.

I have followed the solution posted above but that didn't fix the problem. I added the following:

[central]
database = sqlite:/home/tracadmin/trac_sites/dbauth.db
envroot = /home/tracadmin/trac_sites/Brudden-E750

users_table = trac_users
users_envname_field = all
users_usersname_field = aeron
users_password_field = jimmie
users_email_field = aeron.chang@gmail.com

perms_table = trac_permissions
perms_envname_field = all
perms_usersname_field = aeron
perms_groupname_field = admins

Can anyone help me please?! I have exact same problem after following natmaster's guide on Trac 0.10.3. Where do i set up the project configuration file?

06/21/08 21:56:11 changed by anonymous

  • attachment trac-dbauth-plugin-0.4-0.1.dev_r3881.fc9.src.rpm added.

simple 0.10 (0.4-dev_r3881) tested and worked on fedora 9


Add/Change #1692 (No 'envroot' set in global trac.ini)




Change Properties
Action