3299: 500 Internal Server Error

kan***@gmai***** (Google Code) (Is this you? Claim this profile.)
April 16, 2014
What version are you running?
1.7.22


What's the URL of the page containing the problem?
index page cannot connect

What steps will reproduce the problem?
1.after setup
2.start the apache server
3.500 Internal server error

What is the expected output? What do you see instead?
[Wed Mar 26 14:26:30.806748 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634] mod_wsgi (pid=2672): Target WSGI script '/var/www/reviews/htdocs/reviewboard.wsgi' cannot be loaded as Python module.
[Wed Mar 26 14:26:30.806804 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634] mod_wsgi (pid=2672): Exception occurred processing WSGI script '/var/www/reviews/htdocs/reviewboard.wsgi'.
[Wed Mar 26 14:26:30.806827 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634] Traceback (most recent call last):
[Wed Mar 26 14:26:30.806857 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]   File "/var/www/reviews/htdocs/reviewboard.wsgi", line 3, in <module>
[Wed Mar 26 14:26:30.806905 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]     import pkg_resources
[Wed Mar 26 14:26:30.806925 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
[Wed Mar 26 14:26:30.806964 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]     working_set.require(__requires__)
[Wed Mar 26 14:26:30.806979 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
[Wed Mar 26 14:26:30.807000 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]     needed = self.resolve(parse_requirements(requirements))
[Wed Mar 26 14:26:30.807013 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
[Wed Mar 26 14:26:30.807032 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634]     raise DistributionNotFound(req)
[Wed Mar 26 14:26:30.807059 2014] [:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634] DistributionNotFound: ReviewBoard
[Wed Mar 26 14:26:30.807260 2014] [core:error] [pid 2672:tid 140130923521792] [client 10.13.68.25:50634] AH00037: Symbolic link not allowed or link target not accessible: /var/www/reviews/htdocs/errordocs

What operating system are you using? What browser?
REHL6.5 Firefox


Please provide any additional information below.
I have tried to find all methods online. I could not solve it. Can you give me some advice about it? Thank you
david
#1 david
How did you install the Review Board package?
  • +NeedInfo
#2 kan***@gmai***** (Google Code) (Is this you? Claim this profile.)
easy_install ReviewBoard-1.7.22-py2.6.egg
david
#3 david
So I'm pretty confused by this, but in the meantime, here's a workaround to get you up and running. Edit /var/www/reviews/htdocs/reviewboard.wsgi and remove line 2 (__main__.__requires__ = ['ReviewBoard']).
#4 ste****@gallaghe********* (Google Code) (Is this you? Claim this profile.)
I looked into this on a RHEL 6.5 system yesterday. My best guess is that you did the 'easy_install' as a non-privileged (not root) user and then tried to start Review Board with the system copy of apache httpd. Apache would not be able to find the Review Board installation installed in your private user session.
david
#5 david
  • -NeedInfo
    +SetupIssue
#6 mot****@fre**** (Google Code) (Is this you? Claim this profile.)
I had the same issue on my Ubuntu 14-04 bix, and I finally found at that the wrong mod_wsgi package has been installed (libapache2-mod-wsgi-py3 rather than libapache2-mod-wsgi). Details here:
https://groups.google.com/forum/#!topic/reviewboard/tUWcu9kap90
#7 kan***@gmai***** (Google Code) (Is this you? Claim this profile.)
Thanks a lot. I have sovled this problem. Thank All of my friends.