949: post-review perforce HTTP Error 500: Internal Server Error

sriz****@gmai***** (Google Code) (Is this you? Claim this profile.)
March 11, 2009
What's the URL of the page containing the problem?
running post-review form the same ubuntu machine where ReviewBoard is
installed to create a review for a Perforce CL i receive the following output:

Unable to access http://MyReviewBoard/api/json/reviewrequests/new/. The
host may be invalid
HTTP Error 500: Internal Server Error

What steps will reproduce the problem?
1. ./post-review --username=admin --password=***** --p4-client=ReviewBoard
--p4-port=MyPerforceServer:1666 --debug17251
2.
3.

What is the expected output? What do you see instead?
>>> svn info
>>> p4 info
>>> repository info: Path: MyPerforceServer:1666, Base path: None, Supports
changesets: True
>>> Generating diff for changenum 17521
>>> p4 describe -s 17521
>>> Processing edit of ... [Omitted information] ...
>>> diff -urNp /tmp/tmpwsOYbn /tmp/tmpoKXjMy
>>> Looking for 'MyReviewBoard /' cookie in /root/.post-review-cookies.txt
>>> Cookie file loaded, but no cookie for this server
==> Review Board Login Required
Enter username and password for Review Board at http://MyReviewBoard/
>>> Logging in with username "admin"
>>> HTTP POSTing to http://MyReviewBoard/api/json/accounts/login/:
{'username': 'admin', 'password': '**************'}
>>> Logged in.
>>> Attempting to create review request for 17521
>>> HTTP POSTing to http://MyReviewBoard/api/json/reviewrequests/new/:
{'repository_path': 'MyPerforceServer:1666', 'changenum': '17521'}
>>> <!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://MyReviewBoard/api/json/reviewrequests/new/. The
host path may be invalid
HTTP Error 500: Internal Server Error



What operating system are you using? What browser?
ubuntu 8.10

Please provide any additional information below.
ReviewBoard-1.0alpha5.dev_20090310-py2.5.egg
#1 sriz****@gmai***** (Google Code) (Is this you? Claim this profile.)
the error was due to p4python not correctly installed.
it's possible to close this issue.
chipx86
#2 chipx86
Thanks for letting us know. Glad it works now!
  • +UserError
#3 mrkyl******@gmai***** (Google Code) (Is this you? Claim this profile.)
Did you only have to install p4python to get it to work? Or did you have to configure it somehow afterwards?