Hi,

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.

# easy_install -U ReviewBoard
WARNING: The easy_install command is deprecated and will be removed in a 
future version.
Searching for ReviewBoard
Reading https://pypi.org/simple/ReviewBoard/
Downloading 
https://files.pythonhosted.org/packages/8b/d8/eb063ca03f1d5ca964370a3b5cdfffaecc22900d535cb2cd1a9497a0913e/ReviewBoard-3.0.19-py2-none-any.whl#sha256=9706a1af536bb2e23e9a3cfbd6d9ed5070e52db93f3610631d306196cf2d52f8
Best match: ReviewBoard 3.0.19
Processing ReviewBoard-3.0.19-py2-none-any.whl
removing '/usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg' 
(and everything under it)
Installing ReviewBoard-3.0.19-py2-none-any.whl to 
/usr/lib/python2.7/site-packages
ReviewBoard 3.0.19 is already the active version in easy-install.pth
Installing rbext script to /usr/bin
Installing rbssh script to /usr/bin
Installing rb-site script to /usr/bin

Installed /usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg
Processing dependencies for ReviewBoard
Finished processing dependencies for ReviewBoard

# rb-site --version
rb-site 3.0.19
Python 2.7.5 (default, Nov 16 2020, 22:23:17)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Installed to 
/usr/lib/python2.7/site-packages/ReviewBoard-3.0.19-py2.7.egg/reviewboard

Post this tried the upgrade site command which failed -

# 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'

Any pointers on this would be helpful. 

Regards,
Saurabh

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/bcd7e4aa-899b-4580-82cd-88fdd59c6598n%40googlegroups.com.

Reply via email to