Check the permission of trac.ini, it should look like this: -rw-rw-r-- www-data www-data ... trac.ini
Reguards Von: [email protected] [mailto:[email protected]] Im Auftrag von rumal Gesendet: Donnerstag, 22. Dezember 2011 22:08 An: [email protected] Betreff: [Trac] Problem with configuration of trac 0.12 with apache 2.2.21 Hello everybody, I've performed an installation of trac in my server, but I'm having a problem when try to access it. The error is: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/a pi.py", line 440, in send_error data, 'text/html') File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/c hrome.py", line 827, in render_template message = req.session.pop('chrome.%s.%d' % (type_, i)) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/a pi.py", line 216, in __getattr__ value = self.callbacks[name](self) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/m ain.py", line 300, in _get_session return Session(self.env, req) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/s ession.py", line 198, in __init__ self.get_session(sid) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/s ession.py", line 219, in get_session super(Session, self).get_session(sid, authenticated) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/s ession.py", line 61, in get_session db = self.env.get_db_cnx() File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/env.p y", line 328, in get_db_cnx return get_read_db(self) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/ap i.py", line 90, in get_read_db return _transaction_local.db or DatabaseManager(env).get_connection() File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/ap i.py", line 152, in get_connection return self._cnx_pool.get_cnx(self.timeout or None) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/po ol.py", line 226, in get_cnx return _backend.get_cnx(self._connector, self._kwargs, timeout) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/po ol.py", line 146, in get_cnx raise TimeoutError(errmsg) TimeoutError: Unable to get database connection within 0 seconds. (TracError(<babel.support.LazyProxy object at 0x94ebc0c>,)) The content of the httpd.conf is: LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias /trac /usr/share/trac/cgi-bin/trac.wsgi <Directory /usr/share/trac/cgi-bin> WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> <Location "/trac/login"> AuthType Basic AuthName "Trac" AuthUserFile /usr/share/trac/trac.htpasswd Require valid-user </Location> I can't see where is the problem, please help :) -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/rXudAF7gzokJ. To post to this group, send email to [email protected] <mailto:[email protected]> . To unsubscribe from this group, send email to [email protected] <mailto:[email protected]> . For more options, visit this group at http://groups.google.com/group/trac-users?hl=en <http://groups.google.com/group/trac-users?hl=en> . -- 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.
