Edgewall Software
Modify

Opened 8 years ago

Closed 8 years ago

#12740 closed defect (cantfix)

TimeoutError: Unable to get database connection within 0 seconds. (OperationalError: could not connect to server: Connection refused Is the server running on host "10.2.1.118" and accepting TCP/IP connections on port 5432?)

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 1.0.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: #USER_AGENT#

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 170, in dispatch
    if handler.match_request(req):
  File "/usr/lib/python2.6/site-packages/TracTags-0.6-py2.6.egg/tractags/web_ui.py", line 66, in match_request
    return 'TAGS_VIEW' in req.perm and req.path_info.startswith('/tags')
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/perm.py", line 556, in has_permission
    return self._has_permission(action, resource)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/perm.py", line 570, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/perm.py", line 462, in check_permission
    perm)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/perm.py", line 296, in check_permission
    get_user_permissions(username)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/perm.py", line 398, in get_user_permissions
    for perm in self.store.get_user_permissions(username) or []:
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/perm.py", line 186, in get_user_permissions
    perms = self._all_permissions
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/cache.py", line 71, in __get__
    return CacheManager(instance.env).get(id, self.retriever, instance)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/cache.py", line 206, in get
    meta = self.env.db_query("SELECT id, generation FROM cache")
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/db/api.py", line 121, in execute
    with self as db:
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/db/api.py", line 174, in __enter__
    db = self.dbmgr.get_connection(readonly=True)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/db/api.py", line 262, in get_connection
    db = self._cnx_pool.get_cnx(self.timeout or None)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/db/pool.py", line 213, in get_cnx
    return _backend.get_cnx(self._connector, self._kwargs, timeout)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/db/pool.py", line 134, in get_cnx
    raise TimeoutError(errmsg)
TimeoutError: Unable to get database connection within 0 seconds. (OperationalError: could not connect to server: Connection refused
	Is the server running on host "10.2.1.118" and accepting
	TCP/IP connections on port 5432?
)

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 8 years ago

Resolution: cantfix
Status: newclosed

InstallationIssue. Make sure your database is connected via [trac] database settings.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.