[Patch] Mastertickets does not create table
|Reported by:||carlos@…||Owned by:||coderanger|
|Severity:||major||Keywords:||mastertickets postgresql install|
How to Reproduce
I have just installed MasterTicketsPlugin through sudo easy_install --always-unzip 'http://trac-hacks.org/svn/masterticketsplugin/0.11'. The Trac environment I run is a copy of another one, which had MasterTickets before and therefore a lot of the ticket entries in the database have non-null blocking and blockedby fields. Trac.ini does not have the custom fields defined (I erased then as I figured MasterTickets used its absence to detect a new install and then creat its own mastertickets table).
I have then enabled the plugin through WebAdmin. Then I got
Trac Error TracError: The Trac Environment needs to be upgraded. Run "trac-admin /boreste/trac/0000_00 upgrade"
To which I obliged with sudo trac-admin --no-backup /boreste/trac/0000_00 upgrade (because backup is only run with SQLite) and got the traceback below.
|Python|| 2.5.2 (r252:60911, Apr 21 2008, 11:38:26) |
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Traceback (most recent call last): File "/usr/bin/trac-admin", line 8, in <module> load_entry_point('Trac==0.11', 'console_scripts', 'trac-admin')() File "/var/lib/python-support/python2.5/trac/admin/console.py", line 1249, in run return admin.onecmd(command) File "/var/lib/python-support/python2.5/trac/admin/console.py", line 104, in onecmd rv = cmd.Cmd.onecmd(self, line) or 0 File "/usr/lib/python2.5/cmd.py", line 219, in onecmd return func(arg) File "/var/lib/python-support/python2.5/trac/admin/console.py", line 1108, in do_upgrade self.__env.upgrade(backup=do_backup) File "/var/lib/python-support/python2.5/trac/env.py", line 442, in upgrade participant.upgrade_environment(db) File "/usr/lib/python2.5/site-packages/TracMasterTickets-2.1.2-py2.5.egg/mastertickets/api.py", line 63, in upgrade_environment raise e # If it is an OperationalError, just move on to the next table psycopg2.ProgrammingError: relation "mastertickets" does not exist
Change History (9)
Changed 5 years ago by mixedpuppy
comment:3 Changed 4 years ago by AdrianFritz
- Summary changed from Mastertickets does not create table to [Patch] Mastertickets does not create table
comment:6 Changed 2 years ago by coderanger
- Resolution set to fixed
- Status changed from new to closed