#9640 closed defect (cantfix)
Error enabling timingandestimationplugin
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.13dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Well, if I enable the TimingAndEstimationPlugin, and later upgrading the environment with 'trac-admin /srv/… upgrade' … I get a new error message. First I thought that this (http://trac.edgewall.org/ticket/9572) will be the solution, but it is not.
Traceback (most recent call last): File "build/bdist.linux-i686/egg/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "build/bdist.linux-i686/egg/trac/web/main.py", line 202, in dispatch chosen_handler) File "build/bdist.linux-i686/egg/trac/web/main.py", line 344, in _pre_process_request chosen_handler = filter_.pre_process_request(req, chosen_handler) File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line 334, in pre_process_request repo = self.get_repository(reponame) File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line 509, in get_repository repoinfo = self.get_all_repositories().get(reponame, {}) File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line 577, in get_all_repositories for reponame, info in provider.get_repositories() or []: File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line 113, in get_repositories cursor = db.cursor() File "build/bdist.linux-i686/egg/trac/db/util.py", line 102, in __getattr__ return getattr(self.cnx, name) AttributeError: 'tuple' object has no attribute 'cursor'
then:
2010-09-23 10:39:44,745 Trac[env] INFO: -------------------------------- environment startup [Trac 0.13dev-r9983] -------------------------------- 2010-09-23 10:39:44,751 Trac[env] INFO: Reloading environment due to configuration change 2010-09-23 10:39:44,777 Trac[env] INFO: Reloading environment due to configuration change 2010-09-23 10:39:44,948 Trac[loader] DEBUG: Loading HudsonTrac from /usr/local/lib/python2.6/site-packages/HudsonTrac-0.3-py2.6.egg 2010-09-23 10:39:44,948 Trac[loader] DEBUG: Loading TracXMLRPC from /usr/local/lib/python2.6/site-packages/TracXMLRPC-1.0.6-py2.6.egg 2010-09-23 10:39:44,948 Trac[loader] DEBUG: Loading acct_mgr.admin from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,949 Trac[loader] DEBUG: Loading acct_mgr.api from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,949 Trac[loader] DEBUG: Loading acct_mgr.db from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,949 Trac[loader] DEBUG: Loading acct_mgr.htfile from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,949 Trac[loader] DEBUG: Loading acct_mgr.http from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,950 Trac[loader] DEBUG: Loading acct_mgr.notification from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,950 Trac[loader] DEBUG: Loading acct_mgr.pwhash from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,950 Trac[loader] DEBUG: Loading acct_mgr.svnserve from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,950 Trac[loader] DEBUG: Loading acct_mgr.web_ui from /usr/local/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r0-py2.6.egg 2010-09-23 10:39:44,951 Trac[loader] DEBUG: Loading advancedworkflow.controller from /usr/lib/python2.6/site-packages 2010-09-23 10:39:44,951 Trac[loader] DEBUG: Loading iniadmin from /usr/local/lib/python2.6/site-packages/IniAdmin-0.2-py2.6.egg 2010-09-23 10:39:44,951 Trac[loader] DEBUG: Loading timingandestimationplugin from /usr/local/lib/python2.6/site-packages/timingandestimationplugin-1.0.6-py2.6.egg 2010-09-23 10:39:44,951 Trac[loader] DEBUG: Loading trac.about from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,952 Trac[loader] DEBUG: Loading trac.admin.console from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,978 Trac[loader] DEBUG: Loading trac.admin.web_ui from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,978 Trac[loader] DEBUG: Loading trac.attachment from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,979 Trac[loader] DEBUG: Loading trac.db.mysql from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,979 Trac[loader] DEBUG: Loading trac.db.postgres from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,980 Trac[loader] DEBUG: Loading trac.db.sqlite from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,980 Trac[loader] DEBUG: Loading trac.mimeview.patch from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,980 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:44,981 Trac[loader] DEBUG: Loading trac.mimeview.rst from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,007 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,007 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,008 Trac[loader] DEBUG: Loading trac.prefs from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,011 Trac[loader] DEBUG: Loading trac.search from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,012 Trac[loader] DEBUG: Loading trac.ticket.admin from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,012 Trac[loader] DEBUG: Loading trac.ticket.query from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,012 Trac[loader] DEBUG: Loading trac.ticket.report from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,013 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,013 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,014 Trac[loader] DEBUG: Loading trac.timeline from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,014 Trac[loader] DEBUG: Loading trac.versioncontrol.admin from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,014 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_authz from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,015 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,015 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_prop from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,049 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,050 Trac[loader] DEBUG: Loading trac.web.auth from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,051 Trac[loader] DEBUG: Loading trac.web.session from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,051 Trac[loader] DEBUG: Loading trac.wiki.admin from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,051 Trac[loader] DEBUG: Loading trac.wiki.interwiki from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,052 Trac[loader] DEBUG: Loading trac.wiki.macros from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,052 Trac[loader] DEBUG: Loading trac.wiki.web_api from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,053 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,053 Trac[loader] DEBUG: Loading tracopt.mimeview.enscript from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,054 Trac[loader] DEBUG: Loading tracopt.mimeview.php from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,054 Trac[loader] DEBUG: Loading tracopt.perm.authz_policy from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,054 Trac[loader] DEBUG: Loading tracopt.perm.config_perm_provider from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,078 Trac[loader] DEBUG: Loading tracopt.ticket.commit_updater from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,079 Trac[loader] DEBUG: Loading tracopt.ticket.deleter from /usr/local/lib/python2.6/site-packages/Trac-0.13dev_r9983-py2.6.egg 2010-09-23 10:39:45,131 Trac[env] ERROR: Exception caught while checking for upgrade: Traceback (most recent call last): File "build/bdist.linux-i686/egg/trac/env.py", line 662, in open_environment needs_upgrade = env.needs_upgrade() File "build/bdist.linux-i686/egg/trac/env.py", line 494, in needs_upgrade db = self.get_db_cnx() File "build/bdist.linux-i686/egg/trac/env.py", line 326, in get_db_cnx return get_read_db(self) File "build/bdist.linux-i686/egg/trac/db/api.py", line 90, in get_read_db return _transaction_local.db or DatabaseManager(env).get_connection() File "build/bdist.linux-i686/egg/trac/db/api.py", line 152, in get_connection return self._cnx_pool.get_cnx(self.timeout or None) File "build/bdist.linux-i686/egg/trac/db/pool.py", line 172, in get_cnx return _backend.get_cnx(self._connector, self._kwargs, timeout) File "build/bdist.linux-i686/egg/trac/db/pool.py", line 105, in get_cnx cnx = connector.get_connection(**kwargs) File "build/bdist.linux-i686/egg/trac/db/sqlite_backend.py", line 180, in get_connection return SQLiteConnection(path, log, params) File "build/bdist.linux-i686/egg/trac/db/sqlite_backend.py", line 246, in __init__ raise TracError(_('Database "%(path)s" not found.', path=path)) TracError: Database "/srv/trac/bastelprojekt/db/trac.db" not found. 2010-09-23 10:39:45,131 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect 2010-09-23 10:39:45,132 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/js/messages/de.js'"> 2010-09-23 10:39:45,580 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/site/your_project_logo.png'"> 2010-09-23 10:39:45,669 Trac[chrome] WARNING: File your_project_logo.png not found in any of ['/srv/trac/bastelprojekt/htdocs'] 2010-09-23 10:39:45,669 Trac[main] WARNING: HTTPNotFound: 404 Not Found (File your_project_logo.png not found) 2010-09-23 10:39:45,700 Trac[session] DEBUG: Retrieving session for ID '204776bde6839f3a82786349' 2010-09-23 10:39:45,701 Trac[main] ERROR: can't retrieve session: TracError: Database "/srv/trac/bastelprojekt/db/trac.db" not found. 2010-09-23 10:39:45,702 Trac[main] DEBUG: Negotiated locale: ['de-de', 'de'] -> de 2010-09-23 10:39:46,116 Trac[chrome] DEBUG: Prepare chrome data for request 2010-09-23 10:39:46,127 Trac[chrome] WARNING: Error with navigation contributor BrowserModule 2010-09-23 10:41:57,468 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/css/trac.css'"> 2010-09-23 10:41:57,477 Trac[env] INFO: Reloading environment due to configuration change 2010-09-23 10:41:58,423 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/css/code.css'"> 2010-09-23 10:42:03,119 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/site/your_project_logo.png'"> 2010-09-23 10:42:03,182 Trac[chrome] WARNING: File your_project_logo.png not found in any of ['/srv/trac/bastelprojekt/htdocs'] 2010-09-23 10:42:03,183 Trac[main] WARNING: HTTPNotFound: 404 Not Found (File your_project_logo.png not found) 2010-09-23 10:42:03,207 Trac[session] DEBUG: Retrieving session for ID '279e223e4098409eae284d8a' 2010-09-23 10:42:03,208 Trac[main] ERROR: can't retrieve session: TracError: Database "/srv/trac/bastelprojekt/db/trac.db" not found. 2010-09-23 10:42:03,208 Trac[main] DEBUG: Negotiated locale: ['de-DE', 'de', 'en-US', 'en'] -> de 2010-09-23 10:42:03,275 Trac[chrome] DEBUG: Prepare chrome data for request 2010-09-23 10:42:03,289 Trac[chrome] WARNING: Error with navigation contributor BrowserModule
My Environment:
OpenSuse 11.3 Trac 0.13dev-r10103 Babel 0.9.5 Docutils 0.5 Genshi 0.6 mod_python 3.3.1 Pygments 1.3.1 pysqlite 2.4.1 Python 2.6.5 (r265:79063, Jul 5 2010, 11:47:21) [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] pytz 2010h setuptools 0.6c11 SilverCity 0.9.7 SQLite 3.6.23 Subversion 1.6.9 (r901367)
Attachments (0)
Change History (7)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
The DB File is not present, but we've more then 10 projects where this file is also not available (with the same config), but those projects are working… (if this is the problem, how can I build this db-file?)
The permission on the hole directory is wwwrun:www. This works also for the other projects.
Disabling of all plugins doesn't make it better. Same problem …
comment:3 by , 14 years ago
Your configuration indicates that you are using SQLite, so the database file has to exist somewhere. The database is pretty central to Trac, so the first step is to find out what database backend you use (SQLite, PostgreSQL, MySQL) and for SQLite, where the database file is located.
comment:4 by , 14 years ago
I know that we use PostgreSQL … do I have to edit the trac.ini within this project?!?
comment:5 by , 14 years ago
Resolution: | → cantfix |
---|---|
Status: | new → closed |
Version: | → 0.13dev |
This is an InstallationIssue. You're using PostgreSQL, but your trac.ini says otherwise.
follow-up: 7 comment:6 by , 14 years ago
well … the point is that it doesn't work and it throws an error message. I thought it's an bug.
And I don't think that this is only an InstallationIssue, because: If the timingandestimation Plugin is not enabled (!), trac works fine. Otherwise I enable it, it doesn't and the error above (the first one) occurs.
comment:7 by , 14 years ago
Replying to anonymous:
well … the point is that it doesn't work and it throws an error message. I thought it's an bug.
And I don't think that this is only an InstallationIssue, because: If the timingandestimation Plugin is not enabled (!), trac works fine. Otherwise I enable it, it doesn't and the error above (the first one) occurs.
Well, if it isn't an InstallationIssue it's a PluginIssue ;-)
Are the permissions on the database and its containing directories correct? Can you access the database using the command-line
sqlite
tool? Does the issue still happen with all plugins disabled?