Upgrading to ReviewBoard 2.5.6.1 from 1.7.12-1

We been using Bitnami ReviewBoard version 1.7.12-1 and I ran into problems when upgrading to 2.5.6. Since I need to preserve the current content. I revised the following instruction in https://wiki.bitnami.com/Applications/BitNami_Review_Board#How_to_upgrade_Bitnami_Review_Board_Stack.3f:

$ python/bin/easy_install --prefix=installdir/apps/reviewboard --install-dir=installdir/apps/reviewboard/lib/ -U ReviewBoard
$ rb-site upgrade installdir/apps/reviewboard/rb-sites/reviewboard/

After the upgrade, I cannot add a new repository when I click add I get “Something broke! (Error 500)” page and I saw the following in /opt/reviewboard-1.7.12-1/apache2/logs/error_log

[Mon Jun 27 18:54:07.906979 2016] [mpm_prefork:notice] [pid 1522] AH00163: Apache/2.4.6 (Unix) OpenSSL/1.0.1e mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Mon Jun 27 18:54:07.907034 2016] [core:notice] [pid 1522] AH00094: Command line: '/opt/reviewboard-1.7.12-1/apache2/bin/httpd -f /opt/reviewboard-1.7.12-1/apache2/conf/httpd.conf'
[Mon Jun 27 20:57:33.517207 2016] [:error] [pid 1619] ERROR:root:Exception thrown for user pcireview at http://raven:81/reviewboard/admin/db/scmtools/repository/add/
[Mon Jun 27 20:57:33.517240 2016] [:error] [pid 1619]
[Mon Jun 27 20:57:33.517245 2016] [:error] [pid 1619] 'EntryPoint' object has no attribute 'resolve'
[Mon Jun 27 20:57:33.517252 2016] [:error] [pid 1619] Traceback (most recent call last):
[Mon Jun 27 20:57:33.517259 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
[Mon Jun 27 20:57:33.517267 2016] [:error] [pid 1619]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Jun 27 20:57:33.517275 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/contrib/admin/options.py", line 465, in wrapper
[Mon Jun 27 20:57:33.517283 2016] [:error] [pid 1619]     return self.admin_site.admin_view(view)(*args, **kwargs)
[Mon Jun 27 20:57:33.517290 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/utils/decorators.py", line 99, in _wrapped_view
[Mon Jun 27 20:57:33.517297 2016] [:error] [pid 1619]     response = view_func(request, *args, **kwargs)
[Mon Jun 27 20:57:33.517303 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
[Mon Jun 27 20:57:33.517310 2016] [:error] [pid 1619]     response = view_func(request, *args, **kwargs)
[Mon Jun 27 20:57:33.517317 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/contrib/admin/sites.py", line 198, in inner
[Mon Jun 27 20:57:33.517324 2016] [:error] [pid 1619]     return view(request, *args, **kwargs)
[Mon Jun 27 20:57:33.517330 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/utils/decorators.py", line 29, in _wrapper
[Mon Jun 27 20:57:33.517336 2016] [:error] [pid 1619]     return bound_func(*args, **kwargs)
[Mon Jun 27 20:57:33.517342 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/utils/decorators.py", line 99, in _wrapped_view
[Mon Jun 27 20:57:33.517348 2016] [:error] [pid 1619]     response = view_func(request, *args, **kwargs)
[Mon Jun 27 20:57:33.517355 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/utils/decorators.py", line 25, in bound_func
[Mon Jun 27 20:57:33.517362 2016] [:error] [pid 1619]     return func(self, *args2, **kwargs2)
[Mon Jun 27 20:57:33.517368 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/db/transaction.py", line 371, in inner
[Mon Jun 27 20:57:33.517374 2016] [:error] [pid 1619]     return func(*args, **kwargs)
[Mon Jun 27 20:57:33.517381 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/Django-1.6.11-py2.7.egg/django/contrib/admin/options.py", line 1179, in add_view
[Mon Jun 27 20:57:33.517387 2016] [:error] [pid 1619]     form = ModelForm(initial=initial)
[Mon Jun 27 20:57:33.517394 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/scmtools/forms.py", line 356, in __init__
[Mon Jun 27 20:57:33.517400 2016] [:error] [pid 1619]     self.ssh_client = SSHClient(namespace=self.local_site_name)
[Mon Jun 27 20:57:33.517408 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/ssh/client.py", line 65, in __init__
[Mon Jun 27 20:57:33.517415 2016] [:error] [pid 1619]     self.load_host_keys('')
[Mon Jun 27 20:57:33.517435 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/paramiko-2.0.1-py2.7.egg/paramiko/client.py", line 124, in load_host_keys
[Mon Jun 27 20:57:33.517442 2016] [:error] [pid 1619]     self._host_keys.load(filename)
[Mon Jun 27 20:57:33.517449 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/ssh/client.py", line 31, in load
[Mon Jun 27 20:57:33.517455 2016] [:error] [pid 1619]     entry = HostKeyEntry.from_line(line)
[Mon Jun 27 20:57:33.517462 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/paramiko-2.0.1-py2.7.egg/paramiko/hostkeys.py", line 331, in from_line
[Mon Jun 27 20:57:33.517468 2016] [:error] [pid 1619]     key = RSAKey(data=decodebytes(key))
[Mon Jun 27 20:57:33.517475 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/paramiko-2.0.1-py2.7.egg/paramiko/rsakey.py", line 58, in __init__
[Mon Jun 27 20:57:33.517481 2016] [:error] [pid 1619]     ).public_key(default_backend())
[Mon Jun 27 20:57:33.517489 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/cryptography-1.4-py2.7-linux-x86_64.egg/cryptography/hazmat/backends/__init__.py", line 35, in default_backend
[Mon Jun 27 20:57:33.517496 2016] [:error] [pid 1619]     _default_backend = MultiBackend(_available_backends())
[Mon Jun 27 20:57:33.517503 2016] [:error] [pid 1619]   File "/opt/reviewboard-1.7.12-1/apps/reviewboard/lib/cryptography-1.4-py2.7-linux-x86_64.egg/cryptography/hazmat/backends/__init__.py", line 22, in _available_backends
[Mon Jun 27 20:57:33.517510 2016] [:error] [pid 1619]     "cryptography.backends"
[Mon Jun 27 20:57:33.517515 2016] [:error] [pid 1619] AttributeError: 'EntryPoint' object has no attribute 'resolve'

How do I solve this issue?
I am using CentOS 6.8 and will be upgraded to CentOS 7

Hello @sujeevan

You are trying to upgrade your stack from a very old version (1.7.12-1 was released in 2013). We always recommend our users to upgrade their Stacks frequently since you can fin a lot issues when moving from a very old version to the newest one.

In the Stack there are other many component such as MySQL, NodeJS, OpenSSL, PageSpeed, Python ,etc. that are also upgraded in every release. That’s the reason why you could find a lot of problems upgrading not directly related with ReviewBoard.

In these cases, there is not any easy way to upgrade the stack. You could try doing a staggered upgrade. That means moving from ReviewBoard Stack 1.7.12 to 1.7.28, check that everything is OK, then moving to next version, etc .etc. The guide you have to follow to know how to upgrade the whole Stack is the following one:
https://wiki.bitnami.com/Native_Installers_Quick_Start_Guide#How_to_upgrade_the_full_Stack_migrating_the_data.3f

I know that process can be very painful, but there is not any other way. Here you have a list of links to download the old version of ReviewBoard that we still have:
https://downloads.bitnami.com/files/stacks/reviewboard/1.7.28-3/bitnami-reviewboard-1.7.28-3-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.3-0/bitnami-reviewboard-2.0.4-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.11-0/bitnami-reviewboard-2.0.11-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.13-0/bitnami-reviewboard-2.0.13-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.15-0/bitnami-reviewboard-2.0.15-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.18-0/bitnami-reviewboard-2.0.18-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.19-0/bitnami-reviewboard-2.0.19-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.0.20-0/bitnami-reviewboard-2.0.20-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.0-0/bitnami-reviewboard-2.5.0-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.1.1-1/bitnami-reviewboard-2.5.1.1-1-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.2-2/bitnami-reviewboard-2.5.2-2-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.3-1/bitnami-reviewboard-2.5.3-1-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.4-0/bitnami-reviewboard-2.5.4-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.5-0/bitnami-reviewboard-2.5.5-0-linux-x64-installer.run
https://downloads.bitnami.com/files/stacks/reviewboard/2.5.6-1/bitnami-reviewboard-2.5.6-1-linux-x64-installer.run

I hope this information is useful for you. If you have any other question, please do not hesitate to let us know.

Best Regards,

Juan