Error 500 after installation (Shhh... Review Board is taking a nap)

535 views
Skip to first unread message

Mike Basov

unread,
May 31, 2021, 8:31:38 PM5/31/21
to Review Board Community
Hello guys!

I have just installed ReviewBoard 4.0.1 on my Ubuntu 20.04 VM and always see Error 500 when I am trying to open review board in the configured localhost.

I googled this problem and have seen that I should enable DEBUG option in the settings_local.py config file. I had done this and nothing changes. I still can't see detailed description of errors.

Could you help to figure out this problem?

Thanks!

---
Best regards,
Mike

David Trowbridge

unread,
Jun 1, 2021, 1:24:18 AM6/1/21
to reviewboard
Can you look in the Review Board and/or web server log files?

David

--
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/cbeb55e8-45f3-462e-ac94-84951710786bn%40googlegroups.com.

Mike Basov

unread,
Jun 1, 2021, 11:42:35 AM6/1/21
to Review Board Community
Hi David,

Log directory of ReviewBoard is empty. I have taken a look into apache2 errors log:

Tue Jun 01 10:35:12.708494 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884] mod_wsgi (pid=483): Failed to exec Python script file '/var/www/reviews.example.net/htdocs/reviewboard.wsgi'.
[Tue Jun 01 10:35:12.708521 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884] mod_wsgi (pid=483): Exception occurred processing WSGI script '/var/www/reviews.example.net/htdocs/reviewboard.wsgi'.
[Tue Jun 01 10:35:12.708536 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884] Traceback (most recent call last):
[Tue Jun 01 10:35:12.708551 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884]   File "/var/www/reviews.example.net/htdocs/reviewboard.wsgi", line 3, in <module>
[Tue Jun 01 10:35:12.708571 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884]     import pkg_resources
[Tue Jun 01 10:35:12.708587 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884]   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 79, in <module>
[Tue Jun 01 10:35:12.708598 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884]     from . import py31compat
[Tue Jun 01 10:35:12.708610 2021] [wsgi:error] [pid 483:tid 140400769578752] [client 127.0.0.1:51884] ImportError: cannot import name py31compat

I have tried to install this packet directly, but without success:
mixa@mixa-VirtualBox:~$ pip install py31compat
ERROR: Could not find a version that satisfies the requirement py31compat (from versions: none)
ERROR: No matching distribution found for py31compat


I have tried to google this ImportError and have found the next page on stackoverflow - https://stackoverflow.com/questions/46998858/importerror-no-module-named-py31compat
But in fact, this didn't help, because I have already had setuptools.

Proof:
mixa@mixa-VirtualBox:~$ pip install setuptools
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (45.2.0)

Thanks!

----
Best regards,
Mike
вторник, 1 июня 2021 г. в 00:24:18 UTC-5, David Trowbridge:

Jegan Silvester

unread,
Jun 1, 2021, 7:04:05 PM6/1/21
to Review Board Community
Hi,

Please change from  ALLOWED_HOSTS=['localhost.localdomain'] 
to

ALLOWED_HOSTS=["*"]

It will work. Please try and let me know. I did it and found it working 

Regards,
Jegan

Mike Basov

unread,
Jun 1, 2021, 9:59:26 PM6/1/21
to Review Board Community
Hi Jegan,

Thanks for this advice. I have done this but it doesn't help, unfortunately.
I continue to see this error in apache2 log file: ImportError: cannot import name py31compat

Thanks.

---
Best regards,
Mike

вторник, 1 июня 2021 г. в 18:04:05 UTC-5, jeganc...@gmail.com:

Christian Hammond

unread,
Jun 1, 2021, 11:29:45 PM6/1/21
to revie...@googlegroups.com
This is unfortunately a bug on Ubuntu with their Python installation. A lot of projects have been impacted by this.

Try to use pip to upgrade setuptools and pkg_resources, and see if that addresses it.

Christian


--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Mike Basov

unread,
Jun 2, 2021, 1:25:32 PM6/2/21
to Review Board Community
Hi Christian,

Thanks for your response.
I have updated setuptools but it did not help...

Well, I didn't know about this problem with python in Ubuntu.
What is particular Linux distribution could you recommend as a platform for install the ReviewBoard?

Thanks.

вторник, 1 июня 2021 г. в 22:29:45 UTC-5, Christian Hammond:
Reply all
Reply to author
Forward
0 new messages