On Jul 28, 2014 7:22 AM, "Anton Piatek" <[email protected]> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to