Error in Reviewboard v5.0.2 configuration: Failed to exec Python script file reviewboard.wsgi

46 views
Skip to first unread message

Rashmi Sherawat

unread,
Feb 15, 2023, 1:55:29 AM2/15/23
to Review Board Development
Hi,

I have installed Revieboard v5.0.2 and python v3.9 . I configured it with apache but while running URL on web, it is throwing Internal Server Error with below log:
Content in my reviewboard.wsgi is as below:
-----------------------------------------------------------------------------------------------
import __main__
__main__.__requires__ = ['ReviewBoard']
import pkg_resources

import os

os.environ['REVIEWBOARD_SITEDIR'] = '/var/www/reviewboard'

from reviewboard.wsgi import application
----------------------------------------------------------------------------------------------------

Error in apache log:

[wsgi:error] mod_wsgi  Failed to exec Python script file '/var/www/html/reviewboard/htdocs/reviewboard.wsgi'.
[wsgi:error] mod_wsgi (pid=868397): Exception occurred processing WSGI script '/var/www/html/reviewboard/htdocs/reviewboard.wsgi'.
[wsgi:error] Traceback (most recent call last):
[wsgi:error] File "/var/www/html/reviewboard/htdocs/reviewboard.wsgi", line 9, in <module>
[wsgi:error] from reviewboard.wsgi import application
[wsgi:error] File "/usr/local/lib/python3.9/site-packages/reviewboard/wsgi.py", line 33, in <module>
[wsgi:error] application = get_wsgi_application()
[wsgi:error] File "/usr/local/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
[wsgi:error] django.setup(set_prefix=False)
[wsgi:error] File "/usr/local/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
[wsgi:error] apps.populate(settings.INSTALLED_APPS)
[wsgi:error] File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", line 122, in populate
[wsgi:error] app_config.ready()
[wsgi:error] File "/usr/local/lib/python3.9/site-packages/reviewboard/accounts/apps.py", line 25, in ready
[wsgi:error]  sso_backends.populate()
[wsgi:error]  File "/usr/local/lib/python3.9/site-packages/djblets/registries/registry.py", line 384, in populate
[wsgi:error]  self.register(item)
[wsgi:error]  File "/usr/local/lib/python3.9/site-packages/reviewboard/accounts/sso/backends/registry.py", line 109, in register
[wsgi:error]  sso_dynamic_urls.add_patterns(dynamic_urls)
[wsgi:error]  File "/usr/local/lib/python3.9/site-packages/djblets/urls/resolvers.py", line 79, in add_patterns
[wsgi:error]  self._repopulate_caches()
[wsgi:error]  File "/usr/local/lib/python3.9/site-packages/djblets/urls/resolvers.py", line 107, in _repopulate_caches

Christian Hammond

unread,
Feb 15, 2023, 6:06:11 PM2/15/23
to reviewb...@googlegroups.com
Hi Rashmi,

Can you supply the rest of the error log? I'll need to see the rest of the stack trace to know what failed.

What Linux distro/version are you installing this on?

Christian

--

---
You received this message because you are subscribed to the Google Groups "Review Board Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-dev/a94b788a-57c8-4b41-83d2-017f206c51ecn%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages