Modify

Opened 8 years ago

Closed 7 years ago

#4862 closed defect (fixed)

Running trac-admin upgrade fails after installing this plugin with PostgreSQL

Reported by: joel@… Owned by: Richard Liao
Priority: normal Component: TracTicketTemplatePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Using Trac 0.11.3, with Postgresql database. Installed the TracTicketTemplate plugin, and Trac told me to run trac-admin upgrade. Running "trac-admin upgrade --no-backup" fails with this error:

Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/admin/console.py", line 1317, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/admin/console.py", line 133, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/admin/console.py", line 1154, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/env.py", line 458, in upgrade
    participant.upgrade_environment(db)
  File "build/bdist.linux-x86_64/egg/tickettemplate/ttadmin.py", line 93, in upgrade_environment
  File "build/bdist.linux-x86_64/egg/tickettemplate/ttadmin.py", line 69, in environment_created
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/db/util.py", line 51, in execute
    return self.cursor.execute(sql)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/db/util.py", line 51, in execute
    return self.cursor.execute(sql)
psycopg2.ProgrammingError: column "tt_name,modi_time" does not exist}}}

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Ryan J Ollos

Summary: trac-admin upgrade fails after installing this pluginRunning trac-admin upgrade fails after installing this plugin with PostgreSQL

Probably specific to PostgreSQL because of what I noted in ticket:4931:comment:3.

comment:2 Changed 7 years ago by Richard Liao

Resolution: fixed
Status: newclosed

Fixed in version 0.7.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Richard Liao.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.