Opened 10 years ago
Closed 10 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 , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:3 by , 10 years ago
Resolution: | → cantfix |
---|---|
Status: | new → closed |
comment:4 by , 10 years ago
Resolution: | cantfix |
---|---|
Status: | closed → reopened |
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
comment:5 by , 10 years ago
Resolution: | → cantfix |
---|---|
Status: | reopened → closed |
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 , 10 years ago
Resolution: | cantfix |
---|---|
Status: | closed → reopened |
Many Thanks
Even though permission or given but the error is persists…
comment:7 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Please stop reopening this ticket. You have a configuration issue and you need to ask on the IrcChannel or the MailingList.
InstallationIssue. The error says;
Please contact administrator of your Trac site.