Modify

Opened 14 years ago

Closed 13 years ago

#7282 closed enhancement (fixed)

Failed in upgrading to trac 0.12.

Reported by: yusami Owned by: Alec Thomas
Priority: normal Component: TagsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Error occurs in upgrading the existing trac project to 0.12. Any suggestion?

  • MacOSX 10.6.4
  • trac 0.12 by MacPorts
$ trac-admin traconmac/ upgrade
07:30:07 Trac[env] INFO: -------------------------------- environment startup [Trac 0.12] --------------------------------
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/graphviz-0.7.6dev-py2.6.egg/graphviz/graphviz.py:23: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
07:30:08 Trac[env] INFO: Trac database schema version is 21, should be 26
07:30:08 Trac[env] WARNING: Component <trac.env.EnvironmentSetup object at 0x102a4a950> requires environment upgrade
07:30:08 Trac[env] INFO: Trac database schema version is 21, should be 26
07:30:08 Trac[env] INFO: trac.env.EnvironmentSetup upgrading...
07:30:08 Trac[env] INFO: Upgraded database version from 21 to 22
07:30:08 Trac[env] INFO: Upgraded database version from 22 to 23
07:30:08 Trac[env] INFO: Upgraded database version from 23 to 24
07:30:08 Trac[env] INFO: Upgraded database version from 24 to 25
07:30:08 Trac[env] INFO: Upgraded database version from 25 to 26
07:30:08 Trac[env] INFO: Wrote sample configuration file with the new settings and their default values: /Users/foo/data/trac/traconmac/conf/trac.ini.sample
07:30:08 Trac[env] INFO: tractags.model.TagModelProvider upgrading...
OperationalError: table tags already exists
07:30:08 Trac[console] ERROR: Exception in trac-admin command: 
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/admin/console.py", line 107, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/cmd.py", line 218, in onecmd
    return self.default(line)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/admin/console.py", line 257, in default
    return cmd_mgr.execute_command(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/admin/api.py", line 123, in execute_command
    return f(*fargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/env.py", line 790, in _do_upgrade
    self.env.upgrade(backup=no_backup is None)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/env.py", line 533, in upgrade
    with_transaction(self)(participant.upgrade_environment)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/db/api.py", line 77, in transaction_wrapper
    fn(ldb)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/TracTags-0.6-py2.6.egg/tractags/model.py", line 35, in upgrade_environment
    self._upgrade_db(db)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/TracTags-0.6-py2.6.egg/tractags/model.py", line 60, in _upgrade_db
    cursor.execute(stmt)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/db/util.py", line 66, in execute
    return self.cursor.execute(sql)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/db/sqlite_backend.py", line 78, in execute
    result = PyFormatCursor.execute(self, *args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/db/sqlite_backend.py", line 56, in execute
    args or [])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
OperationalError: table tags already exists

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by anonymous

Not a glue. But tested on Ubuntu, Trac 0.12, from trunk, fresh set-up and works fine. Try uninstalling and then reinstall from trunk.

comment:2 Changed 13 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

Yes, I believe this is resolved on the trunk. See [10382] and #5345. Please reopen if you have issues after reinstalling from the HEAD of the trunk.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
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.