Hi,

Edit your conf/settings_local.py and add:

DEBUG = True

Then restart Apache and try again. You should get more detailed error output
instead of that plain 500 error, which we can use to help diagnose the
problem.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.review-board.org
VMware, Inc. - http://www.vmware.com


On Tue, Aug 25, 2009 at 12:33 AM, J.C. Zhu <realal...@gmail.com> wrote:

>
> After installation and admin configuration,  I tried to issue a post-
> review command like 'post-review 5440 -d --server=http://localhost',
> but got the following error(see below: command output) after
> successful login, while the only info I got was apache's log(see
> below: apache error.log). The problem stops me from continuing.
>
> Is this a bug or could some give me some advices?
>
> I'll be very grateful!
>
> ***********************************
> basic info:
>
> Ubuntu 9.04
> Firefox 3.0.13
> Apache/2.2.11 (Ubuntu)
> ReviewBoard-1.0.1-py2.6
> work with Perforce
>
> ***********************************
> command ouput:
>
> <...logged in>
> >>> Attempting to create review request for 5440
> >>> HTTP POSTing to http://localhost/api/json/reviewrequests/new/:
> {'repository_path': 'spicydata.SpicyNet.local:1666', 'changenum': '5440'}
> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
>  <head>
>  <title>500 - Internal Server Error | Review Board</title>
>  </head>
>  <body>
>  <h1>Something broke! (Error 500)</h1>
>  <p>
>   It appears something broke when you tried to go to here. This is
> either
>   a bug in Review Board or a server configuration error. Please
> report
>   this to your administrator.
>  </p>
>  </body>
> </title>
>
> Unable to access http://localhost/api/json/reviewrequests/new/. The
> host path may be invalid
> HTTP Error 500: Internal Server Error
>
>
> **********************************************
> apache error.log
>
> [Tue Aug 25 01:21:40 2009] [notice] mod_python: Creating 8 session
> mutexes based on 6 max processes and 25 max threads.
> [Tue Aug 25 01:21:40 2009] [notice] mod_python: using mutex_directory /
> tmp
> [Tue Aug 25 01:21:40 2009] [notice] Apache/2.2.11 (Ubuntu) mod_python/
> 3.3.1 Python/2.6.2 configured -- resuming normal operations
> [Tue Aug 25 01:27:06 2009] [error] [client 127.0.0.1] File does not
> exist: /var/www/reviewboard.mydomain.com/htdocs/media/admin/js/
> actions.js<http://reviewboard.mydomain.com/htdocs/media/admin/js/%0Aactions.js>,
> referer: http://127.0.0.1/admin/db/auth/user/
> [Tue Aug 25 01:27:15 2009] [error] [client 127.0.0.1] File does not
> exist: /var/www/reviewboard.mydomain.com/htdocs/media/admin/js/
> actions.js<http://reviewboard.mydomain.com/htdocs/media/admin/js/%0Aactions.js>,
> referer: http://127.0.0.1/admin/db/auth/user/?q=dd
> [Tue Aug 25 01:27:19 2009] [error] [client 127.0.0.1] File does not
> exist: /var/www/reviewboard.mydomain.com/htdocs/media/admin/js/
> actions.js<http://reviewboard.mydomain.com/htdocs/media/admin/js/%0Aactions.js>,
> referer: http://127.0.0.1/admin/db/auth/user/?q=rr
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32<http://127.0.0.1/admin/db/auth/user/?q=rr%0A/usr/lib/python2.6/dist-packages/mod_python/importer.py:32>
> :
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> /var/lib/python-support/python2.6/MySQLdb/__init__.py:34:
> DeprecationWarning: the sets module is deprecated
>  from sets import ImmutableSet
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> [not...@1251134639.876554] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251134939.745234] mcm_server_connect():2302: Software caused
> connection abort
> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0.1-py2.6.egg/
> reviewboard/accounts/views.py:2: DeprecationWarning: the sha module is
> deprecated; use the hashlib module instead
>  from sha import sha
> [not...@1251134940.209659] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251134940.693710] mcm_server_connect():2302: Software caused
> connection abort
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> /var/lib/python-support/python2.6/MySQLdb/__init__.py:34:
> DeprecationWarning: the sets module is deprecated
>  from sets import ImmutableSet
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> [not...@1251134638.750092] mcm_server_connect():2302: Software caused
> connection abort
> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0.1-py2.6.egg/
> reviewboard/accounts/views.py:2: DeprecationWarning: the sha module is
> deprecated; use the hashlib module instead
>  from sha import sha
> [not...@1251134822.957359] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251134823.210249] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251134826.365840] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251134835.020220] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251134839.293153] mcm_server_connect():2302: Software caused
> connection abort
> [Tue Aug 25 01:30:20 2009] [notice] caught SIGTERM, shutting down
> [Tue Aug 25 01:30:21 2009] [notice] mod_python: Creating 8 session
> mutexes based on 6 max processes and 25 max threads.
> [Tue Aug 25 01:30:21 2009] [notice] mod_python: using mutex_directory /
> tmp
> [Tue Aug 25 01:30:21 2009] [notice] Apache/2.2.11 (Ubuntu) mod_python/
> 3.3.1 Python/2.6.2 configured -- resuming normal operations
> [Tue Aug 25 01:30:53 2009] [notice] caught SIGTERM, shutting down
> [Tue Aug 25 01:30:54 2009] [notice] mod_python: Creating 8 session
> mutexes based on 6 max processes and 25 max threads.
> [Tue Aug 25 01:30:54 2009] [notice] mod_python: using mutex_directory /
> tmp
> [Tue Aug 25 01:30:54 2009] [notice] Apache/2.2.11 (Ubuntu) mod_python/
> 3.3.1 Python/2.6.2 configured -- resuming normal operations
> [Tue Aug 25 01:31:27 2009] [error] [client 127.0.0.1] File does not
> exist: /var/www/reviewboard.mydomain.com/htdocs/media/admin/js/
> actions.js<http://reviewboard.mydomain.com/htdocs/media/admin/js/%0Aactions.js>,
> referer: http://127.0.0.1/admin/db/reviews/group/
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32<http://127.0.0.1/admin/db/reviews/group/%0A/usr/lib/python2.6/dist-packages/mod_python/importer.py:32>
> :
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> /var/lib/python-support/python2.6/MySQLdb/__init__.py:34:
> DeprecationWarning: the sets module is deprecated
>  from sets import ImmutableSet
> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0.1-py2.6.egg/
> reviewboard/accounts/views.py:2: DeprecationWarning: the sha module is
> deprecated; use the hashlib module instead
>  from sha import sha
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> [not...@1251135084.955066] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251135085.234092] mcm_server_connect():2302: Software caused
> connection abort
> [not...@1251135087.292136] mcm_server_connect():2302: Software caused
> connection abort
> [Tue Aug 25 01:31:46 2009] [notice] caught SIGTERM, shutting down
> [Tue Aug 25 01:31:47 2009] [notice] mod_python: Creating 8 session
> mutexes based on 6 max processes and 25 max threads.
> [Tue Aug 25 01:31:47 2009] [notice] mod_python: using mutex_directory /
> tmp
> [Tue Aug 25 01:31:47 2009] [notice] Apache/2.2.11 (Ubuntu) mod_python/
> 3.3.1 Python/2.6.2 configured -- resuming normal operations
> [Tue Aug 25 01:31:52 2009] [error] [client 127.0.0.1] File does not
> exist: /var/www/reviewboard.mydomain.com/htdocs/media/admin/js/
> actions.js<http://reviewboard.mydomain.com/htdocs/media/admin/js/%0Aactions.js>,
> referer: http://127.0.0.1/admin/db/reviews/group/
> [Tue Aug 25 01:32:17 2009] [error] [client 127.0.0.1] File does not
> exist: /var/www/reviewboard.mydomain.com/htdocs/media/admin/js/
> actions.js<http://reviewboard.mydomain.com/htdocs/media/admin/js/%0Aactions.js>,
> referer: http://127.0.0.1/admin/db/reviews/group/
>
> **********************************************
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to