Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem with trac configuration
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Surryr  
View profile  
 More options Dec 3 2010, 10:01 am
From: Surryr <den.so...@gmail.com>
Date: Fri, 3 Dec 2010 07:01:35 -0800 (PST)
Local: Fri, Dec 3 2010 10:01 am
Subject: Problem with trac configuration
I got problem with configuring trac (mod_wsgi + postrgre + trac 0.12)

Everything works perfect, when trac is in standalone mode (racd -s --
port 8000 //home/project-home/trac).

But when i try to access via <mydomain.com>/trac  i see next:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/web/api.py", line 436, in send_error
    data, 'text/html')
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/web/chrome.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.1-py2.6.egg/
trac/web/api.py", line 212, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/web/main.py", line 300, in _get_session
    return Session(self.env, req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/web/session.py", line 162, in __init__
    self.get_session(sid)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/web/session.py", line 183, in get_session
    super(Session, self).get_session(sid, authenticated)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/web/session.py", line 56, in get_session
    db = self.env.get_db_cnx()
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/env.py", line 328, in get_db_cnx
    return get_read_db(self)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.1-py2.6.egg/
trac/db/api.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.1-py2.6.egg/
trac/db/api.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.1-py2.6.egg/
trac/db/pool.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.1-py2.6.egg/
trac/db/pool.py", line 146, in get_cnx
    raise TimeoutError(errmsg)
TimeoutError: Unable to get database connection within 0 seconds.
TracError(u'Database "/<PathToMyTrac>/db/trac.db" not found.',)

my trac.wsgi

import os
import trac.db.postgres_backend
trac.db.postgres_backend.PostgreSQLConnection.poolable = False
os.environ['TRAC_ENV'] = '/home/project-home/trac/'
os.environ['PYTHON_EGG_CACHE'] = '/home/project-home/trac/eggs'

import trac.web.main
application = trac.web.main.dispatch_request

my httpd.conf

WSGIScriptAlias /trac  /home/project-home/deploy/cgi-bin/trac.wsgi

<Directory /home/project-home/deploy/cgi-bin>
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
</Directory>

my conf.ini(db connection string):

database = postgres://user:pass@localhost:5432/trac-db
debug_sql = False


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Caron  
View profile  
 More options Dec 3 2010, 12:33 pm
From: Matthew Caron <Matt.Ca...@sixnet.com>
Date: Fri, 03 Dec 2010 12:33:03 -0500
Local: Fri, Dec 3 2010 12:33 pm
Subject: Re: [Trac] Problem with trac configuration
On 12/03/2010 10:01 AM, Surryr wrote:

> I got problem with configuring trac (mod_wsgi + postrgre + trac 0.12)

> Everything works perfect, when trac is in standalone mode (racd -s --
> port 8000 //home/project-home/trac).

Five bucks says that your webserver can't read the config file.

> TimeoutError: Unable to get database connection within 0 seconds.
> TracError(u'Database "/<PathToMyTrac>/db/trac.db" not found.',)

You're using postgres, but yet it's trying to open a sqlite DB (the
default). This implies that it hasn't parsed the trac.ini. Can it read it?

> my conf.ini(db connection string):

Shouldn't this be trac.ini? Or did that change with 0.12?

--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@sixnet.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »