Modify

Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#11670 closed defect (duplicate)

MySQL to PostgreSQL migration fails with worklog usermanual

Reported by: Quince Owned by: coling
Priority: high Component: WorkLogPlugin
Severity: major Keywords:
Cc: rjollos Trac Release: 1.0

Description

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:

./trac-migrate.py --in-place /srv/trac postgres://tracuser:nalkyergatte@127.0.0.1/trac?schema=trac

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 "./trac-migrate.py", line 55, in <module>
    sys.exit(main(sys.argv[1:]) or 0)
  File "./trac-migrate.py", line 51, in main
    return TracMigrationCommand(env)._do_migrate(dest, dburi)
  File "/tmp/m/tracmigrate/admin.py", line 29, in _do_migrate
    return self._do_migrate_inplace(dburi)
  File "/tmp/m/tracmigrate/admin.py", line 60, in _do_migrate_inplace
    env = self._create_env(env_path, dburi)
  File "/tmp/m/tracmigrate/admin.py", line 92, in _create_env
    env = Environment(env_path, create=True, options=options)
  File "/usr/lib/python2.7/site-packages/trac/core.py", line 124, in __call__
    self.__init__(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/trac/env.py", line 288, in __init__
    setup_participant.environment_created()
  File "build/bdist.linux-x86_64/egg/worklog/api.py", line 55, in environment_created
  File "build/bdist.linux-x86_64/egg/worklog/api.py", line 182, in upgrade_environment
  File "build/bdist.linux-x86_64/egg/worklog/api.py", line 146, in do_user_man_update
AttributeError: 'NoneType' object has no attribute 'cursor'

Attachments (0)

Change History (1)

comment:1 Changed 4 months ago by Quince

  • Resolution set to duplicate
  • Status changed from new to closed

Accidentally double-posted #11669

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coling. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.