Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#11670 closed defect (duplicate)

MySQL to PostgreSQL migration fails with worklog usermanual

Reported by: Quince Owned by: Colin Guthrie
Priority: high Component: WorkLogPlugin
Severity: major Keywords:
Cc: Ryan J Ollos Trac Release: 1.0


This is a great plugin that we use to slave-drive oversee our devs. Unfortunately, it seems it can't be migrated with the TracMigratePlugin:

./ --in-place /srv/trac postgres://tracuser:nalkyergatte@

Worklog needs an upgrade
 * Upgrading Database
Creating work_log table
Updating work_log table (v2)
Updating work_log table (v3)
 * Upgrading usermanual
Traceback (most recent call last):
  File "./", line 55, in <module>
    sys.exit(main(sys.argv[1:]) or 0)
  File "./", line 51, in main
    return TracMigrationCommand(env)._do_migrate(dest, dburi)
  File "/tmp/m/tracmigrate/", line 29, in _do_migrate
    return self._do_migrate_inplace(dburi)
  File "/tmp/m/tracmigrate/", line 60, in _do_migrate_inplace
    env = self._create_env(env_path, dburi)
  File "/tmp/m/tracmigrate/", line 92, in _create_env
    env = Environment(env_path, create=True, options=options)
  File "/usr/lib/python2.7/site-packages/trac/", line 124, in __call__
    self.__init__(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/trac/", line 288, in __init__
  File "build/bdist.linux-x86_64/egg/worklog/", line 55, in environment_created
  File "build/bdist.linux-x86_64/egg/worklog/", line 182, in upgrade_environment
  File "build/bdist.linux-x86_64/egg/worklog/", line 146, in do_user_man_update
AttributeError: 'NoneType' object has no attribute 'cursor'

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by Quince

Resolution: duplicate
Status: newclosed

Accidentally double-posted #11669

Modify Ticket

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