1336: reviewboard 500 error

luke****@gmai***** (Google Code) (Is this you? Claim this profile.)
Oct. 7, 2009
872
What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What operating system are you using? What browser?


Please provide any additional information below.


Error:
Publishing the draft has failed due to a server error: 500 Internal Server
Error

Please try again later. If this continues to happen, please report it to
your administrator.
chipx86
#1 chipx86
What triggered the error?

Can you provide the log file?

We need more information than "There was an error."
  • +NeedInfo
#2 markb*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Started seeing the same exact error today.

What version are you running?
1.0

What's the URL of the page containing the problem?
when publishing a comment (http://servername/r/702/#) then click OK

What steps will reproduce the problem?
1. publish a comment
2. get the error listed
3. comment is added, but don't receive an e-mail

What is the expected output? What do you see instead?
expect to receive an e-mail, but don't.  

What operating system are you using? What browser?
Linux 2.6.27-gentoo-r7 #1 SMP Thu Jan 8 15:53:49 EST 2009 i686 Intel(R) Xeon(R) CPU
X7350 @ 2.93GHz GenuineIntel GNU/Linux
Firefox and/or IE

Please provide any additional information below.

Error:
Publishing the draft has failed due to a server error: 500 Internal Server
Error

Please try again later. If this continues to happen, please report it to
your administrator.

I tried setting Debug = True in settings_local.py and restarting apache, but no new
messages seem to be logging.
  • +
    ::1 - - [05/Oct/2009:15:50:28 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:29 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:30 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:34 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:35 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:36 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:37 -0400] "OPTIONS * HTTP/1.0" 200 -
    ::1 - - [05/Oct/2009:15:50:38 -0400] "OPTIONS * HTTP/1.0" 200 -
    10.x.x.x - - [05/Oct/2009:15:51:31 -0400] "GET / HTTP/1.1" 301 -
    10.x.x.x - - [05/Oct/2009:15:51:31 -0400] "GET /dashboard/ HTTP/1.1" 200 2641
    10.x.x.x - - [05/Oct/2009:15:51:34 -0400] "GET /dashboard/?view=outgoing HTTP/1.1" 200 3141
    10.x.x.x - - [05/Oct/2009:15:51:36 -0400] "GET /r/702/ HTTP/1.1" 200 2940
    10.x.x.x - - [05/Oct/2009:15:51:48 -0400] "GET /r/702/diff/ HTTP/1.1" 200 4681
    10.x.x.x - - [05/Oct/2009:15:51:49 -0400] "GET /r/702/diff/1/fragment/7052/?index=1&124
chipx86
#3 chipx86
1.0, or something newer? The newer versions log more information to the log files.

Did you set DEBUG = True, or Debug = True? The latter will not work.
#4 markb*****@gmai***** (Google Code) (Is this you? Claim this profile.)
it's "DEBUG = True"

i'm going to try and get the latest version installed tonight, i saw there is better
logging as of 1.0.2.  Is it possible to install 1.0.2 specifically rather than the
latest?
chipx86
#5 chipx86
1.0.2 was broken. 1.0.3.1 or higher is needed. There's really no reason not to use
1.0.4 though. It should be much more stable.

You should have seen some actual debug output regardless on the 500 page though.
#6 markb*****@gmai***** (Google Code) (Is this you? Claim this profile.)
attached is the debug info.  i am thinking the connection to the exchange server
failed and that is the "connection refused"?  I know IT did some security patching to
exchange and the domain controllers over the weekend so that might be to blame.  What
do you think?
Thanks
  • +
    error at /api/json/reviewrequests/702/reviews/1351/replies/draft/save/
    (111, 'Connection refused')
    Request Method:	POST
    Request URL:	http://reviewboard/api/json/reviewrequests/702/reviews/1351/replies/draft/save/
    Exception Type:	error
    Exception Value:	(111, 'Connection refused')
    Exception Location:	/usr/lib/python2.5/smtplib.py in connect, line 310
    Python Executable:	/usr/bin/python
    Python Version:	2.5.2
    Python Path:	['/var/www/localhost/reviewboard/conf', '/usr/lib/python2.5/site-packages/ReviewBoard-1.0-py2.5.egg', '/usr/lib/python2.5/site-packages/pytz-2009j-py2.5.egg', '/usr/lib/python2.5/site-packages/Djblets-0.5-py2.5.egg', '/usr/lib/python2.5/site-packages/django_evolution-0.0.0-py2.5.egg', '/usr/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg', '/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg', '/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-linux-i686.egg', '/usr/lib/python2.5/site-packages/lucene-2.4.1-py2.5-linux-i686.egg', '/usr/lib/python25.z
#7 markb*****@gmai***** (Google Code) (Is this you? Claim this profile.)
I am sure this is a problem with the connection to exchange:
Sending Message...
ERROR: Unable to connect to SMTP Host 'xyz.com': (111) Connection refused Unable to
connect to SMTP Host 'xyz.com': (111) Connection refused
chipx86
#8 chipx86
That certainly sounds like the problem. We should do a better job of not failing when
sending an e-mail fails, but that's covered under another bug already.