[Trac] Unable to complete upgrade to 1.0.1
I just upgraded my Ubuntu 12.04 server to 14.04.1 and as part of that upgraded trac. I get the following error trying to complete the upgrade of trac when running the trac-admin ... upgrade command The upgrade failed. Please fix the issue and try again. AttributeError: I have enabled the log and it shows ... 2014-07-28 14:58:26,841 Trac[loader] DEBUG: Loading tractags from /usr/local/lib/python2.7/dist-packages/TracTags-0.6-py2.7.egg 2014-07-28 14:58:26,845 Trac[default_workflow] DEBUG: Workflow actions at initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name': u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave': {u'operations': [u'leave_status'], 'name': u'leave', u'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions': [u'TICKET_CREATE']}, u'reassign': {u'operations': [u'set_owner'], 'name': u'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}} 2014-07-28 14:58:26,847 Trac[env] INFO: Trac database schema version is 26, should be 29 2014-07-28 14:58:26,847 Trac[env] WARNING: Component trac.env.EnvironmentSetup object at 0x7fc0d87a7410 requires environment upgrade 2014-07-28 14:58:26,847 Trac[env] INFO: Trac database schema version is 26, should be 29 2014-07-28 14:58:26,847 Trac[env] WARNING: Component trac.env.EnvironmentSetup object at 0x7fc0d87a7410 requires environment upgrade 2014-07-28 14:58:26,848 Trac[env] INFO: Trac database schema version is 26, should be 29 2014-07-28 14:58:26,848 Trac[model] ERROR: DatabaseError: no such table: wiki_namespace 2014-07-28 14:58:26,850 Trac[console] ERROR: Exception in trac-admin command: Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/trac/admin/console.py, line 109, in onecmd rv = cmd.Cmd.onecmd(self, line) or 0 File /usr/lib/python2.7/cmd.py, line 220, in onecmd return self.default(line) File /usr/lib/python2.7/dist-packages/trac/admin/console.py, line 285, in default return cmd_mgr.execute_command(*args)
Re: [Trac] Unable to complete upgrade to 1.0.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28.07.2014 16:02, Anton Piatek wrote: I just upgraded my Ubuntu 12.04 server to 14.04.1 and as part of that upgraded trac. I get the following error trying to complete the upgrade of trac when running the trac-admin ... upgrade command The upgrade failed. Please fix the issue and try again. AttributeError: I have enabled the log and it shows Smart move. Now you only need to read with an informed eye. So it was the right thing to post here too. /usr/local/lib/python2.7/dist-packages/TracTags-0.6-py2.7.egg/tractags/model.py, line 23, in environment_needs_upgrade if self._need_migration(db): File /usr/local/lib/python2.7/dist-packages/TracTags-0.6-py2.7.egg/tractags/model.py, line 47, in _need_migration db.rollback() Your version of TagsPlugin [1] is rather old an well-known to be incompatible with Trac=1.0. But this is not a problem, because the issue has been resolved for you months ago and you'll get an even better plugin by upgrading. Just do it. :-) Be sure to handle further issues similarly by looking at locally installed plugins first. I remember that we found a number of plugins that shared the troublesome upgrade check code, so chances are you have some of these installed at well. Sincerely, Steffen Hoffmann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlPWbgcACgkQ31DJeiZFuHeiHQCZARI3JZatn19l3enO3KKAHEZm xk4AoOiWoX6yFHARicqngxrLi4EiF/tb =gVsp -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Unable to complete upgrade to 1.0.1
On Jul 28, 2014 7:22 AM, Anton Piatek anton.pia...@gmail.com wrote: I just upgraded my Ubuntu 12.04 server to 14.04.1 and as part of that upgraded trac. I get the following error trying to complete the upgrade of trac when running the trac-admin ... upgrade command The upgrade failed. Please fix the issue and try again. AttributeError: I have enabled the log and it shows ... 2014-07-28 14:58:26,841 Trac[loader] DEBUG: Loading tractags from /usr/local/lib/python2.7/dist-packages/TracTags-0.6-py2.7.egg 2014-07-28 14:58:26,845 Trac[default_workflow] DEBUG: Workflow actions at initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name': u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave': {u'operations': [u'leave_status'], 'name': u'leave', u'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions': [u'TICKET_CREATE']}, u'reassign': {u'operations': [u'set_owner'], 'name': u'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}} 2014-07-28 14:58:26,847 Trac[env] INFO: Trac database schema version is 26, should be 29 2014-07-28 14:58:26,847 Trac[env] WARNING: Component trac.env.EnvironmentSetup object at 0x7fc0d87a7410 requires environment upgrade 2014-07-28 14:58:26,847 Trac[env] INFO: Trac database schema version is 26, should be 29 2014-07-28 14:58:26,847 Trac[env] WARNING: Component trac.env.EnvironmentSetup object at 0x7fc0d87a7410 requires environment upgrade 2014-07-28 14:58:26,848 Trac[env] INFO: Trac database schema version is 26, should be 29 2014-07-28 14:58:26,848 Trac[model] ERROR: DatabaseError: no such table: wiki_namespace 2014-07-28 14:58:26,850 Trac[console] ERROR: Exception in trac-admin command: Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/trac/admin/console.py, line 109, in onecmd rv = cmd.Cmd.onecmd(self, line) or 0 File /usr/lib/python2.7/cmd.py, line 220, in onecmd return self.default(line) File /usr/lib/python2.7/dist-packages/trac/admin/console.py, line 285, in default return cmd_mgr.execute_command(*args) File /usr/lib/python2.7/dist-packages/trac/admin/api.py, line 124, in execute_command return f(*fargs) File /usr/lib/python2.7/dist-packages/trac/env.py, line 982, in _do_upgrade self.env.upgrade(backup=no_backup is None) File /usr/lib/python2.7/dist-packages/trac/env.py, line 698, in upgrade if participant.environment_needs_upgrade(db): File /usr/local/lib/python2.7/dist-packages/TracTags-0.6-py2.7.egg/tractags/model.py, line 23, in environment_needs_upgrade if self._need_migration(db): File /usr/local/lib/python2.7/dist-packages/TracTags-0.6-py2.7.egg/tractags/model.py, line 47, in _need_migration db.rollback() File /usr/lib/python2.7/dist-packages/trac/db/util.py, line 107, in __getattr__ raise AttributeError AttributeError: But now I'm out of ideas... Anyone have any hints for me? The DB is sqlite. -- Upgrading your TagsPlugin installation to 0.7 should fix the issue. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.