Hi all,

I'm attempting a Reviewboard 1.5->2.0 migration.  An old server has RB1.5 
I'm testing moving the data to a new RB2.0RC3 server.

Old server details:
Ubuntu 10.04
Manual installation of Reviewboard 1.5
Dump database: $ mysqldump -u admin -p reviewboard > 
/tmp/reviewboard.mysql.dump

Edit dump file to replace MyISAM with InnoDB engine.

New server:
Fedora rawhide, RB 2.0RC3 from standard repo.
Create new site: rb-site install /var/www/reviewboard
Drop mysql reviewboard database.
Create new (empty) database
Import data from old server: mysql -p reviewboard < reviewboard.mysql.dump
Upgrade database: rb-site upgrade /var/www/reviewboard

This fails with the following output:

================================
$ sudo rb-site upgrade /var/www/reviewboard
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

------------------ <begin log output> ------------------
Creating tables ...
Creating table extensions_registeredextension
Creating table attachments_fileattachment
Creating table diffviewer_filediffdata
Creating table hostingsvcs_hostingserviceaccount
Creating table reviews_fileattachmentcomment
Creating table site_localsite_users
Creating table site_localsite_admins
Creating table site_localsite
Creating table accounts_localsiteprofile
Upgrading Review Board from 1.5 to 2.0 RC3
There are unapplied evolutions for auth.
There are unapplied evolutions for contenttypes.
There are unapplied evolutions for sessions.
There are unapplied evolutions for attachments.
There are unapplied evolutions for changedescs.
There are unapplied evolutions for diffviewer.
There are unapplied evolutions for hostingsvcs.
There are unapplied evolutions for reviews.
There are unapplied evolutions for scmtools.
There are unapplied evolutions for site.
Adding baseline version for new models
Evolutions in attachments baseline: file_attachment_orig_filename, 
file_attachment_file_max_length_512, file_attachment_repo_info, 
file_attachment_repo_path_no_index, 
file_attachment_repo_revision_max_length_64
Evolutions in site baseline: localsite_public
Evolutions in hostingsvcs baseline: account_hosting_url, 
account_hosting_url_max_length_255, account_unique_together_baseline
Project signature has changed - an evolution is required
There are unapplied evolutions for accounts.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Registering new SCM Tool Plastic SCM 
(reviewboard.scmtools.plastic.PlasticTool) in database
ERROR:root:Unexpected error: 'NoneType' object is not iterable
Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py",
 
line 65, in handle
    self.evolve(*app_labels, **options)
  File 
"/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py",
 
line 125, in evolve
    sql.extend(self.evolve_app(app))
  File 
"/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py",
 
line 165, in evolve_app
    app_mutator_sql = app_mutator.to_sql()
  File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", 
line 303, in to_sql
    sql.extend(mutator.to_sql())
  File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", 
line 186, in to_sql
    return self.evolver.generate_table_ops_sql(self, self._ops)
  File "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", 
line 42, in generate_table_ops_sql
    prev_sql_result, prev_op)
  File "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", 
line 92, in generate_table_op_sql
    sql_result.add(op['sql'])
  File 
"/usr/lib/python2.7/site-packages/django_evolution/db/sql_result.py", line 
105, in add
    super(AlterTableSQLResult, self).add(sql_result)
  File 
"/usr/lib/python2.7/site-packages/django_evolution/db/sql_result.py", line 
30, in add
    self.sql += sql_or_result
TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/bin/rb-site", line 9, in <module>
    load_entry_point('ReviewBoard==2.0rc3', 'console_scripts', 'rb-site')()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1733, in main
    command.run()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1556, in run
    site.migrate_database()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 425, in migrate_database
    self.run_manage_command("evolve", ["--noinput", "--execute"])
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 626, in run_manage_command
    execute_from_command_line([__file__, cmd] + params)
  File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
399, in execute_from_command_line
    utility.execute()
  File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
line 285, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py",
 
line 65, in handle
    self.evolve(*app_labels, **options)
  File 
"/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py",
 
line 125, in evolve
    sql.extend(self.evolve_app(app))
  File 
"/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py",
 
line 165, in evolve_app
    app_mutator_sql = app_mutator.to_sql()
  File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", 
line 303, in to_sql
    sql.extend(mutator.to_sql())
  File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", 
line 186, in to_sql
    return self.evolver.generate_table_ops_sql(self, self._ops)
  File "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", 
line 42, in generate_table_ops_sql
    prev_sql_result, prev_op)
  File "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", 
line 92, in generate_table_op_sql
    sql_result.add(op['sql'])
  File 
"/usr/lib/python2.7/site-packages/django_evolution/db/sql_result.py", line 
105, in add
    super(AlterTableSQLResult, self).add(sql_result)
  File 
"/usr/lib/python2.7/site-packages/django_evolution/db/sql_result.py", line 
30, in add
    self.sql += sql_or_result
TypeError: 'NoneType' object is not iterable
===============================

Anyone got ideas on what's wrong here?  Shall I collect more information to 
help with debugging?

Thanks,
Paul

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to