4385: Upgrading Review Board from 1.5.3.1 to 2.5.3

mamiles

What version are you running?

1.5.3.1

What's the URL of the page containing the problem?

This is on a upgrade of the database (on a different host).

What steps will reproduce the problem?

rb-site upgrade /var/www/html/ironport
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 accounts_localsiteprofile
Creating table accounts_trophy
Creating table attachments_fileattachmenthistory
Creating table attachments_fileattachment
Creating table diffviewer_filediffdata
Creating table diffviewer_rawfilediffdata
Creating table hostingsvcs_hostingserviceaccount
Creating table notifications_webhooktarget_repositories
Creating table notifications_webhooktarget
Creating table reviews_fileattachmentcomment
Creating table site_localsite_users
Creating table site_localsite_admins
Creating table site_localsite
Creating table webapi_webapitoken
Upgrading Review Board from 1.5.3.1 to 2.5.3
There are unapplied evolutions for auth.
There are unapplied evolutions for contenttypes.
There are unapplied evolutions for sessions.
There are unapplied evolutions for accounts.
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 notifications.
There are unapplied evolutions for reviews.
There are unapplied evolutions for scmtools.
There are unapplied evolutions for site.
There are unapplied evolutions for webapi.
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, file_attachment_revision
Evolutions in hostingsvcs baseline: account_hosting_url, account_hosting_url_max_length_255, account_unique_together_baseline
Evolutions in site baseline: localsite_public
Evolutions in webapi baseline: webapitoken_jsonfield_null
Evolutions in notifications baseline: webhooktarget_extra_state, webhooktarget_extra_data_null
Project signature has changed - an evolution is required
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: u'FileDiffData'
Traceback (most recent call last):
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 65, in handle
self.evolve(app_labels, options)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 125, in evolve
sql.extend(self.evolve_app(app))
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 164, in evolve_app
app_mutator.run_mutations(mutations)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutators.py", line 279, in run_mutations
self.run_mutation(mutation)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutators.py", line 268, in run_mutation
model_mutator.run_mutation(mutation)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutators.py", line 165, in run_mutation
mutation.mutate(self, self.create_model())
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutations.py", line 446, in mutate
self.add_column(mutator, model)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutations.py", line 450, in add_column
self.field_type, self.field_attrs, model)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutations.py", line 37, in create_field
related_model_sig = proj_sig[related_app_name][related_model_name]
KeyError: u'FileDiffData'
Traceback (most recent call last):
File "/usr/local/python_ve/rb_2.5.3/bin/rb-site", line 9, in <module>
load_entry_point('ReviewBoard==2.5.3', 'console_scripts', 'rb-site')()
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/ReviewBoard-2.5.3-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1922, in main
command.run()
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/ReviewBoard-2.5.3-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1725, in run
site.migrate_database()
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/ReviewBoard-2.5.3-py2.7.egg/reviewboard/cmdline/rbsite.py", line 452, in migrate_database
self.run_manage_command("evolve", ["--noinput", "--execute"])
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/ReviewBoard-2.5.3-py2.7.egg/reviewboard/cmdline/rbsite.py", line 676, in run_manage_command
execute_from_command_line([file, cmd] + params)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/python_ve/rb_2.5.3/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/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args,
options.dict)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(
args, options)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 65, in handle
self.evolve(*app_labels,
options)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 125, in evolve
sql.extend(self.evolve_app(app))
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 164, in evolve_app
app_mutator.run_mutations(mutations)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutators.py", line 279, in run_mutations
self.run_mutation(mutation)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutators.py", line 268, in run_mutation
model_mutator.run_mutation(mutation)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutators.py", line 165, in run_mutation
mutation.mutate(self, self.create_model())
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutations.py", line 446, in mutate
self.add_column(mutator, model)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutations.py", line 450, in add_column
self.field_type, self.field_attrs, model)
File "/usr/local/python_ve/rb_2.5.3/lib/python2.7/site-packages/django_evolution/mutations.py", line 37, in create_field
related_model_sig = proj_sig[related_app_name][related_model_name]
KeyError: u'FileDiffData'

Operating System

Was going from FreeBSD 7.2-RELEASE-p2 to CentOS 7 CentOS Linux release 7.2.1511

Is there a specific version we need to upgrade to before we upgrade to 2.5 version?

david
#1 david
  • -New
    +SetupIssue