Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#11809 closed defect (invalid)

TimeoutError: Unable to get database connection within 0 seconds. (TracError: The user apache requires read _and_ write permissions to the database file /data/trac/lte_integ/db/trac.db and the directory it is located in.)

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 1.0.1
Severity: normal Keywords:
Cc: goldenjohn51@… 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 179, in dispatch
    chosen_handler)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 325, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 343, in pre_process_request
    repo = self.get_repository(reponame)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 530, in get_repository
    repoinfo = self.get_all_repositories().get(reponame, {})
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 596, in get_all_repositories
    for reponame, info in provider.get_repositories() or []:
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 124, in get_repositories
    % ",".join("'%s'" % each for each in self.repository_attrs)):
  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. (TracError: The user apache requires read _and_ write permissions to the database file /data/trac/lte_integ/db/trac.db and the directory it is located in.)

Attachments (0)

Change History (7)

comment:1 by Jun Omae, 9 years ago

Owner: changed from Golden John to Jun Omae
Status: newassigned

InstallationIssue. The error says;

The user apache requires read _and_ write permissions to the database file /data/trac/lte_integ/db/trac.db and the directory it is located in.

Please contact administrator of your Trac site.

comment:2 by Jun Omae, 9 years ago

Owner: Jun Omae removed
Status: assignednew

comment:3 by Jun Omae, 9 years ago

Resolution: cantfix
Status: newclosed

comment:4 by anonymous, 9 years ago

Resolution: cantfix
Status: closedreopened

We given the permission on below , But still the issue was persist,

setfacl –m u:apache:rwx –R  /data/"Project path"
setfacl –m g:apache:rwx –R  /data/"project path"
chmod 777 /data/"Project path"
Error message 
--------------

Most recent call last:

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 179, in dispatch
    chosen_handler)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 325, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 343, in pre_process_request
    repo = self.get_repository(reponame)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 530, in get_repository
    repoinfo = self.get_all_repositories().get(reponame, {})
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 596, in get_all_repositories
    for reponame, info in provider.get_repositories() or []:
  File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/api.py", line 124, in get_repositories
    % ",".join("'%s'" % each for each in self.repository_attrs)):
  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. (TracError: The user apache requires read _and_ write permissions to the database file /data/trac/l
Last edited 9 years ago by Jun Omae (previous) (diff)

comment:5 by Jun Omae, 9 years ago

Resolution: cantfix
Status: reopenedclosed

Should be chmod -R 777 /data/"Project path", not chmod 777 /data/"Project path"? Please confirm read and write permissions of /data/trac/lte_integ/db/trac.db.

Also, support and installation questions should be asked on the MailingList or IrcChannel.

comment:6 by anonymous, 9 years ago

Resolution: cantfix
Status: closedreopened

Many Thanks

Even though permission or given but the error is persists…

comment:7 by Ryan J Ollos, 9 years ago

Resolution: invalid
Status: reopenedclosed

Please stop reopening this ticket. You have a configuration issue and you need to ask on the IrcChannel or the MailingList.

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.