We tried to upgrade our existing set Review Board set up. Used the easy_install -U ReviewBoard command.
There were a few packages mismatch which were resolved.
# rb-site upgrade /var/www/<site_folder>
WARNING:py.warnings:/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.hazmat.backends import default_backend
Rebuilding directory structure
Upgrading site settings_local.py
Updating database. This may take a while.
The log output below, including warnings and errors,
can be ignored unless upgrade fails.
------------------ <begin log output> ------------------
[!] Unable to execute the manager command syncdb: No module named
parse
INFO:root:Using reviewboard.scmtools.svn.pysvn backend for SVN
ERROR:root:Unexpected error: 'privacy'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 76, in handle
self.evolve(*app_labels, **options)
File "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 140, in evolve
app_sql = self.evolve_app(app)
File "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 185, in evolve_app
app_mutator.run_mutations(mutations)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 279, in run_mutations
self.run_mutation(mutation)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 268, in run_mutation
model_mutator.run_mutation(mutation)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 165, in run_mutation
mutation.mutate(self, self.create_model())
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 66, in create_model
self.model_sig, db_name=self.database)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 56, in model_sig
return self.proj_sig[self.app_label][self.model_name]
KeyError: 'privacy'
Traceback (most recent call last):
File "/usr/bin/rb-site", line 11, in <module>
load_entry_point('ReviewBoard==3.0.19', 'console_scripts', 'rb-site')()
File "/usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1972, in main
command.run()
File "/usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1764, in run
site.migrate_database()
File "/usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg/reviewboard/cmdline/rbsite.py", line 475, in migrate_database
self.run_manage_command("evolve", ["--noinput", "--execute"])
File "/usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg/reviewboard/cmdline/rbsite.py", line 715, 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 76, in handle
self.evolve(*app_labels, **options)
File "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 140, in evolve
app_sql = self.evolve_app(app)
File "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py", line 185, in evolve_app
app_mutator.run_mutations(mutations)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 279, in run_mutations
self.run_mutation(mutation)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 268, in run_mutation
model_mutator.run_mutation(mutation)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 165, in run_mutation
mutation.mutate(self, self.create_model())
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 66, in create_model
self.model_sig, db_name=self.database)
File "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line 56, in model_sig
return self.proj_sig[self.app_label][self.model_name]
KeyError: 'privacy'