Opened 17 years ago
Closed 14 years ago
#1692 closed defect (wontfix)
No 'envroot' set in global trac.ini
Reported by: | Owned by: | Brad Anderson | |
---|---|---|---|
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 (1)
Change History (6)
comment:1 Changed 17 years ago by
Priority: | normal → high |
---|---|
Severity: | normal → blocker |
Trac Release: | 0.11 → 0.10 |
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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
comment:4 Changed 17 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
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?
Changed 16 years ago by
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
comment:5 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Closing tickets for a deprecated plugin.
I've found the solution here: http://www.fuzzylizard.com/archives/2007/01/16/854/
Cheers.
Gustavo.