Reviewboard migration issue

83 views
Skip to first unread message

Raghuveer Mudiraj

unread,
Mar 24, 2021, 11:13:30 AM3/24/21
to Review Board Community
Hi,

Currently we are migrating Reviewboard from centos 6 to Oracle linux 7.0 and the version of Reviewboard is 2.5.17.

While making the reviewboard up, I am seeing the following errors:

-------------------------------------------------------------------------------------------------------------------------------------------------

[Wed Mar 24 14:48:57.638814 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519] mod_wsgi (pid=19682): Exception occurred processing WSGI script '/var/www/rboard/htdocs/reviewboard.wsgi'.
[Wed Mar 24 14:48:57.638879 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519] Traceback (most recent call last):
[Wed Mar 24 14:48:57.638905 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Wed Mar 24 14:48:57.639036 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     self.load_middleware()
[Wed Mar 24 14:48:57.639048 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 45, in load_middleware
[Wed Mar 24 14:48:57.639183 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     mw_class = import_by_path(middleware_path)
[Wed Mar 24 14:48:57.639199 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/django/utils/module_loading.py", line 26, in import_by_path
[Wed Mar 24 14:48:57.639260 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     sys.exc_info()[2])
[Wed Mar 24 14:48:57.639268 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/django/utils/module_loading.py", line 21, in import_by_path
[Wed Mar 24 14:48:57.639282 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     module = import_module(module_path)
[Wed Mar 24 14:48:57.639292 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
[Wed Mar 24 14:48:57.639336 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     __import__(name)
[Wed Mar 24 14:48:57.639363 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/reviewboard/admin/middleware.py", line 22, in <module>
[Wed Mar 24 14:48:57.639434 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     from reviewboard.admin.siteconfig import load_site_config
[Wed Mar 24 14:48:57.639442 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]   File "/usr/lib/python2.7/site-packages/reviewboard/admin/siteconfig.py", line 44, in <module>
[Wed Mar 24 14:48:57.639557 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519]     from reviewboard.admin.checks import get_can_enable_search, \\
[Wed Mar 24 14:48:57.639576 2021] [:error] [pid 19682:tid 140463326873344] [client 10.76.51.92:52519] ImproperlyConfigured: Error importing module reviewboard.admin.middleware: "cannot import name get_can_enable_search"

-------------------------------------------------------------------------------------------------------------------------------------------
Can someone let me know what went wrong and how it should be resolved?

Thanks & Regards,
M Raghuveer

Raghuveer Mudiraj

unread,
Apr 9, 2021, 9:52:04 AM4/9/21
to Review Board Community
Any update on the abelow error:

Thanks & Regards,
M Raghuveer

Christian Hammond

unread,
Apr 10, 2021, 9:15:33 PM4/10/21
to revie...@googlegroups.com
Hi Raghuveer,

There’s unfortunately not enough to go on to diagnose this. It sounds like a bad Python environment (some wrong packages, perhaps).

How was Review Board set up on the new server? Can you give me a step-by-step?

I also must point out that Review Board 2.5 is no longer maintained or officially supported without a Premium Support contract. I’ll try to give guidance if I think there’s a better way to move to the new server, though.

Christian


--
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 reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/38219a87-fafb-4ae8-821e-9376d60a4dc6n%40googlegroups.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

raghuveer mudiraj

unread,
Apr 11, 2021, 12:02:44 AM4/11/21
to revie...@googlegroups.com
Hi Christian,

Thank you for your support.

Please find the steps below:

1. Installed mysql server community version and restored the backup database.
2. I have downloaded "ReviewBoard-2.5.17-1.el7.noarch.rpm" from the yum repository and installed it.
3. Installed RBTOOLS 2.0 version from reviewboard website and installed.
4. Installed all the django, pycrypto, memcached, setuptools and other dependent packages from pypi.org.
5. Setup the httpd configuration.

Python modules installed.

Django-1.6.11-py2.7.egg-info
django_extensions-2.2.9-py2.7.egg
python_dateutil-1.5-py2.7.egg-info
Whoosh-2.7.4-py2.7.egg
recaptcha_client-1.0.6-py2.7.egg
python_mimeparse-0.1.4-py2.7.egg-info
Pygments-2.1-py2.7.egg
Djblets-0.9.9-py2.7.egg-info
django_evolution-0.7.7-py2.7.egg
django_multiselectfield-0.1.12-py2.7.egg
django_haystack-2.3.1-py2.7.egg
django_pipeline-1.3.23-py2.7.egg
Markdown-2.2.1-py2.7.egg-info
JCC-3.6
django-cors-headers-2.5.3
distribute-0.7.3
connections-0.1.3
setuptools-44.1.1
django-utils-0.0.2
pycrypto-2.6
Whoosh-2.7.4
recaptcha-client-1.0.6
django-haystack-2.3.1
django-pipeline-1.3.23

There are some other dependent modules installed while installing the above packages.

Let me know if you need anymore information.

Thanks & Regards,
M Raghuveer

raghuveer mudiraj

unread,
Apr 11, 2021, 12:53:00 AM4/11/21
to revie...@googlegroups.com
One more last step, run the below command to configure the review board.

6. rb-site install /var/www/rboard

Raghuveer Mudiraj

unread,
Apr 12, 2021, 9:09:24 AM4/12/21
to Review Board Community
Hi Christian,

I have resolved the issue.

However, I am not able to view the webpage in a proper format.
Those are seeing in a zigzag view.

Am I missing any python modue for the same?

Thanks & Regards,
M Raghuveer

David Trowbridge

unread,
Apr 12, 2021, 1:42:54 PM4/12/21
to revie...@googlegroups.com
It sounds like static media is not being properly served by your web server.

As Christian mentioned, 2.5.x is end-of-life, and the RPM is no longer maintained. We won’t be able to provide any further help if you’re going to be using this version/install method.

David


Christian Hammond

unread,
Apr 13, 2021, 4:23:03 AM4/13/21
to revie...@googlegroups.com
Yeah, if it’s the RPM, it’s out of our control.

I’d make sure you’ve re-run the `rb-site upgrade` on your site directory, and that your Apache configuration is pointing to the right path for /static and /media.

One last thing would be to run:

    rb-site manage /path/to/sitedir list-siteconfig 

Check that static_root and media_root are also pointing to the correct place.

Christian


Reply all
Reply to author
Forward
0 new messages