Spent the better part of two days trying to get our Trac installation
to install new environments after installing the Account Manager plug-
in but with no success.
Originally I had an install of Trac 0.10.2.x running on RHE4 (CentOS)
using Python 2.3 and Apache 2.0 and all was well. After some bother, I
got the 0.10/Py2.3 compatible release of the Account Manager plug-in
installed and working with existing sites.
Subsequently I have attempted several installs of new environments
into directories I have either aliased or made virtual hosts in Apache
config but none work. I tried upgrading to Trac 0.10.3.1 but seems to
have made no difference.
After I got the AM plug-in working with my existing environments I
created a global trac.ini file with the required authentication
methods etc...
Below are the debug error output I get and snippets from the global
trac.ini file and httpd.conf files. Hope someone is able to help, I
really need to get web-based user management up and running to
continue with this tool.
Error Output
--------------------------------------------------------------------------------------------------------------------------------
Mod_python error: "PythonHandler trac.web.modpython_frontend"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/usr/lib/python2.3/site-packages/trac/web/
modpython_frontend.py", line 87, in handler
gateway.run(dispatch_request)
File "/usr/lib/python2.3/site-packages/trac/web/wsgi.py", line 87,
in run
response = application(self.environ, self._start_response)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 377,
in dispatch_request
env = _open_environment(env_path, run_once=run_once)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 58,
in _open_environment
env_cache[env_path] = open_environment(env_path)
File "/usr/lib/python2.3/site-packages/trac/env.py", line 435, in
open_environment
if env.needs_upgrade():
File "/usr/lib/python2.3/site-packages/trac/env.py", line 313, in
needs_upgrade
db = self.get_db_cnx()
File "/usr/lib/python2.3/site-packages/trac/env.py", line 182, in
get_db_cnx
return DatabaseManager(self).get_connection()
File "/usr/lib/python2.3/site-packages/trac/db/api.py", line 73, in
get_connection
connector, args = self._get_connector()
File "/usr/lib/python2.3/site-packages/trac/db/api.py", line 84, in
_get_connector
scheme, args = _parse_db_str(self.connection_uri)
File "/usr/lib/python2.3/site-packages/trac/db/api.py", line 110, in
_parse_db_str
scheme, rest = db_str.split(':', 1)
ValueError: unpack list of wrong size
-------------------------------------------------------------------------------------------------------------------------------
/usr/share/trac/trac.ini snippets
-------------------------------------------------------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
[components]
webadmin.* = enabled
acct_mgr.api.AccountManager = enabled
acct_mgr.admin.AccountManagerAdminPage = enabled
acct_mgr.htfile.HtPasswdStore = enabled
trac.web.auth.LoginModule = disabled
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.web_ui.RegistrationModule = enabled
[account-manager]
; configure the plugin to store passwords in the htpasswd format:
;password_format = htpasswd
; with Trac 0.10 use this instead:
password_store = HtPasswdStore
; the file where user accounts are stored
; the webserver will need write permissions to this file
; and its parent folder
password_file = /var/trac/trac.htpasswd
[trac]
authz_file =
authz_module_name =
base_url =
check_auth_ip = true
database =
default_charset = iso-8859-15
default_handler = WikiModule
#default_handler = LoginModule
htdocs_location =
ignore_auth_case = false
mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
metanav = login,logout,settings,help,about
permission_store = DefaultPermissionStore
repository_dir =
repository_type = svn
# request_filters = <set in global trac.ini>
# templates_dir = <set in global trac.ini>
timeout = 20
-------------------------------------------------------------------------------------------------------------------------------
httpd.conf
-------------------------------------------------------------------------------------------------------------------------------
Alias /trac2 "/path/to/env"
<Location /trac2>
PythonDebug on
SetEnv PYTHON_EGG_CACHE /path/to/env
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /path/to/env
#PythonOption TracUriRoot /path/to/env
</Location>
<Location "/trac2/login">
</Location>
--------------------------------------------------------------------------------------------------------------------------------
Grateful for any help,
Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---