Re: Issues bringing up Trac 1.0 after upgrade from version 0.12

265 views
Skip to first unread message

RjOllos

unread,
Jan 14, 2013, 12:46:22 PM1/14/13
to trac-...@googlegroups.com
On Monday, January 14, 2013 3:14:28 AM UTC-8, Auto User wrote:
[...]
Any help would be appreciated!

Trac 1.0 includes a Git support, so you should remove GitPlugin and enable the component included in the Trac core.

There is also a newer version of AccountManagerPlugin enabled; you are running 0.3.2, but the latest is 0.4.2.

Steffen Hoffmann

unread,
Jan 14, 2013, 3:31:35 PM1/14/13
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14.01.2013 12:14, Trac upgrade user wrote:
> Hi,
>
> I'm running Trac 0.12 (Ubuntu 8.04, SQLite version 3.4.2, Python 2.5),
> and hit issues with an upgrade to Trac 1.0(using easy_install). Here's
> the error from the log file (/var/lib/trac/project/log/trac.log):
>
> After an upgrade from Trac 0.12 to Trac 1.0, I hit the following error:
(snip)
> /usr/lib/python2.5/site-packages/TracAnnouncer-0.11.1_r10458-py2.5.egg

In addition to Ryan's comment on two other plugins, you're required to
run a recent `trunk` revision of TracAnnouncer. You're version might not
work at all, even cause nasty side-effects for other plugin and Trac
core. We're just in the process of making it fit for 1.0, and the db
backend code has been fixed weeks before. At any rate, be sure to follow
`trunk` closely, and make sure to upgrade to announcer-1.0 as soon as it
will be release.

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlD0ayIACgkQ31DJeiZFuHf+cwCglnrMUqTL+H6UhfGOStfV5lxv
JPMAn22vjSdosoUZgDzAYWfhAuwxcw/7
=w2Rq
-----END PGP SIGNATURE-----

Auto User

unread,
Jan 16, 2013, 6:45:24 AM1/16/13
to trac-...@googlegroups.com
Thanks for the quick replies Ryan and Steffen.  I went ahead with the requested changes (upgrading 2 plugins and removing the GitPlugin).
When upgrading (trac-admin /var/lib/trac/project upgrade), I still get the following error which now only appears to fail on (DatabaseError: no such table: wiki_namespace), full log as follows:

2013-01-16 13:29:04,941 Trac[env] INFO: -------------------------------- environment startup [Trac 1.0] --------------------------------
2013-01-16 13:29:05,116 Trac[env] INFO: Trac database schema version is 26, should be 29
2013-01-16 13:29:05,116 Trac[env] WARNING: Component <trac.env.EnvironmentSetup object at 0x88b126c> requires environment upgrade
2013-01-16 13:29:05,118 Trac[env] INFO: Trac database schema version is 26, should be 29
2013-01-16 13:29:05,118 Trac[env] WARNING: Component <trac.env.EnvironmentSetup object at 0x88b126c> requires environment upgrade
2013-01-16 13:29:05,119 Trac[env] INFO: Trac database schema version is 26, should be 29
2013-01-16 13:29:05,121 Trac[model] ERROR: DatabaseError: no such table: wiki_namespace
2013-01-16 13:29:05,124 Trac[console] ERROR: Exception in trac-admin command:
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/admin/console.py", line 108, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.5/cmd.py", line 218, in onecmd
    return self.default(line)
  File "build/bdist.linux-i686/egg/trac/admin/console.py", line 284, in default
    return cmd_mgr.execute_command(*args)
  File "build/bdist.linux-i686/egg/trac/admin/api.py", line 124, in execute_command
    return f(*fargs)
  File "build/bdist.linux-i686/egg/trac/env.py", line 970, in _do_upgrade
    self.env.upgrade(backup=no_backup is None)
  File "build/bdist.linux-i686/egg/trac/env.py", line 686, in upgrade
    if participant.environment_needs_upgrade(db):
  File "build/bdist.linux-i686/egg/tractags/model.py", line 23, in environment_needs_upgrade
    if self._need_migration(db):
  File "build/bdist.linux-i686/egg/tractags/model.py", line 47, in _need_migration
    db.rollback()
  File "build/bdist.linux-i686/egg/trac/db/util.py", line 107, in __getattr__
    raise AttributeError
AttributeError:

Here are the plugins and Trac version I now run:
/usr/lib/python2.5/site-packages/Trac-1.0-py2.5.egg
/usr/lib/python2.5/site-packages/TracAccountManager-0.5dev_r12532-py2.5.egg
/usr/lib/python2.5/site-packages/TracAddCommentMacro-0.3-py2.5.egg
/usr/lib/python2.5/site-packages/TracAnnouncer-1.0dev_r12503-py2.5.egg
/usr/lib/python2.5/site-packages/TracMacroPost-0.2-py2.5.egg
/usr/lib/python2.5/site-packages/TracTags-0.6-py2.5.egg
/usr/lib/python2.5/site-packages/TracTocMacro-11.0.0.3-py2.5.egg
/usr/lib/python2.5/site-packages/TracCustomFieldAdmin-0.2.6_r10460-py2.5.egg:
/usr/lib/python2.5/site-packages/TracDateField-1.0.2_r10435-py2.5.egg:
/usr/lib/python2.5/site-packages/TracXMLRPC-1.1.2_r10706-py2.5.egg:

Can you please let me know how to proceed?

Thanks!

Eduard-Cristian Stefan

unread,
Jan 16, 2013, 6:50:13 AM1/16/13
to trac-...@googlegroups.com
On Wed, Jan 16, 2013 at 1:45 PM, Auto User <automati...@gmail.com> wrote:
Thanks for the quick replies Ryan and Steffen.  I went ahead with the requested changes (upgrading 2 plugins and removing the GitPlugin).
When upgrading (trac-admin /var/lib/trac/project upgrade), I still get the following error which now only appears to fail on (DatabaseError: no such table: wiki_namespace), full log as follows:

Try the latest version of the TracTags plugin (you may want to use the trunk: http://trac-hacks.org/svn/tagsplugin/trunk/)

Have a nice day,
  Eduard

Auto User

unread,
Jan 16, 2013, 7:24:00 AM1/16/13
to trac-...@googlegroups.com
Thanksa lot Eduard, I now have Trac 1.0 up and running!
Reply all
Reply to author
Forward
0 new messages