> Are you using a fully-qualified domain for the path, or just "scm" or something? It may matter. I was just using scm. I just put in the fully-qualified path and will try again (see below.).
> Also, try cloning the repository using that path on your server, just to see what happens. I am able to clone the repo on the Apache server using the path ssh://scm//opt/hg/main/core/AnyModalConsole. > I assume you have an SSH key uploaded. Can you verify it's the right one in the Admin UI? I had not uploaded an SSH key, but I just did this and tried again. (How do I check if it is the right key in the Admin UI?) After adding the fully-qualified domain and uploading an ssh key, I tried again, and this is what I got on the client: ----- $ post-review --debug >>> RBTools 0.3.2 >>> Home = C:\Documents and Settings\jerry.maloney\Application Data >>> hg showconfig >>> hg root >>> hg svn info >>> Using candidate path 'default': >>> 'ssh://scm.interactivesys.com//opt/hg/main/core/AnyModalConsole' >>> repository info: Path: >>> ssh://scm.interactivesys.com//opt/hg/main/core/AnyModalConsole, Base path: >>> , Supports changesets: False >>> HTTP GETting api/ >>> HTTP GETting http://of1dvweb-lnx001/api/info/ >>> Using the new web API >>> hg branch >>> hg -q outgoing --template b:{branches} r:{rev} default ----- When it gets to the last line, "default", it stays there for 5 minutes or more. The relevant lines from reviewboard.log on the server: ----- 2011-02-11 14:09:25,121 - DEBUG - Trying discovered key 287637e1d8a393fefcc82e2c35f4f567 in /var/www/reviewboard/data/.ssh/ id_dsa 2011-02-11 14:09:25,156 - DEBUG - userauth is OK 2011-02-11 14:09:25,192 - INFO - Authentication (publickey) successful! 2011-02-11 14:09:25,297 - DEBUG - EOF in transport thread 2011-02-11 14:09:25,317 - DEBUG - EOF in transport thread ----- This log also hasn't changed over the course of 5 minutes. So it looks like adding the ssh key helped (though only in conjunction with the fully-qualified path, so that did matter as you suspected it might). I just killed the process on the client because I have to leave the computer now, but I'm gonna try to come back later tonight and see if I can debug it. Any ideas you have in the meantime will be appreciated. Thanks so much for all your help so far! On Feb 11, 4:53 pm, Christian Hammond <[email protected]> wrote: > Are you using a fully-qualified domain for the path, or just "scm" or > something? It may matter. > > Also, try cloning the repository using that path on your server, just to see > what happens. > > I assume you have an SSH key uploaded. Can you verify it's the right one in > the Admin UI? > > Christian > > -- > Christian Hammond - [email protected] > Review Board -http://www.reviewboard.org > VMware, Inc. -http://www.vmware.com > > On Fri, Feb 11, 2011 at 1:46 PM, Jerry <[email protected]> wrote: > > ReviewBoard version 1.5.3. > > > I notice that for the review requests created by RBTools post-review, > > if I go to the web UI and try to select the review request, I also get > > a 500 error in my browser. > > > OK, so here is the full output in reviewboard.log for a post-review > > command: > > ----- > > 2011-02-11 13:38:38,934 - INFO - Logging to /var/www/reviewboard/logs/ > > reviewboard.log with a minimum level of DEBUG > > 2011-02-11 13:38:38,934 - INFO - Log file for Review Board v1.5.3 (PID > > 10530) > > 2011-02-11 13:38:39,743 - INFO - Logging to /var/www/reviewboard/logs/ > > reviewboard.log with a minimum level of DEBUG > > 2011-02-11 13:38:39,743 - INFO - Log file for Review Board v1.5.3 (PID > > 10529) > > 2011-02-11 13:38:41,452 - INFO - Logging to /var/www/reviewboard/logs/ > > reviewboard.log with a minimum level of DEBUG > > 2011-02-11 13:38:41,453 - INFO - Log file for Review Board v1.5.3 (PID > > 10531) > > 2011-02-11 13:38:42,330 - INFO - Logging to /var/www/reviewboard/logs/ > > reviewboard.log with a minimum level of DEBUG > > 2011-02-11 13:38:42,331 - INFO - Log file for Review Board v1.5.3 (PID > > 10532) > > 2011-02-11 13:38:42,824 - ERROR - Exception thrown for user > > jerry.maloney athttp://of1dvweb-lnx001/api/review-requests/72/diffs/ > > > no suitable response from remote hg > > Traceback (most recent call last): > > File "/usr/local/lib/python2.6/dist-packages/Django-1.2.4-py2.6.egg/ > > django/core/handlers/base.py", line 100, in get_response > > response = callback(request, *callback_args, **callback_kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Django-1.2.4-py2.6.egg/ > > django/views/decorators/cache.py", line 78, in _wrapped_view_func > > response = view_func(request, *args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Django-1.2.4-py2.6.egg/ > > django/views/decorators/vary.py", line 22, in inner_func > > response = func(*args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.7-py2.6.egg/ > > djblets/webapi/resources.py", line 289, in __call__ > > result = view(request, api_format=api_format, *args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.7-py2.6.egg/ > > djblets/webapi/resources.py", line 415, in post > > return self.create(*args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.7-py2.6.egg/ > > djblets/webapi/decorators.py", line 88, in _checklogin > > return view_func(*args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.7-py2.6.egg/ > > djblets/webapi/decorators.py", line 62, in _call > > return view_func(*args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.7-py2.6.egg/ > > djblets/webapi/decorators.py", line 224, in _validate > > return view_func(*args, **new_kwargs) > > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.3- > > py2.6.egg/reviewboard/webapi/resources.py", line 1111, in create > > form = UploadDiffForm(review_request, form_data, request.FILES) > > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.3- > > py2.6.egg/reviewboard/reviews/forms.py", line 229, in __init__ > > data, *args, **kwargs) > > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.3- > > py2.6.egg/reviewboard/diffviewer/forms.py", line 44, in __init__ > > if self.repository.get_scmtool().get_diffs_use_absolute_paths(): > > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.3- > > py2.6.egg/reviewboard/scmtools/models.py", line 52, in get_scmtool > > return cls(self) > > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.3- > > py2.6.egg/reviewboard/scmtools/hg.py", line 29, in __init__ > > self.client = HgClient(repository.path) > > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.3- > > py2.6.egg/reviewboard/scmtools/hg.py", line 179, in __init__ > > self.repo = hg.repository(hg_ui, path=repoPath) > > File "/usr/local/lib/python2.6/dist-packages/mercurial-1.7.5-py2.6- > > linux-i686.egg/mercurial/hg.py", line 96, in repository > > repo = _lookup(path).instance(ui, path, create) > > File "/usr/local/lib/python2.6/dist-packages/mercurial-1.7.5-py2.6- > > linux-i686.egg/mercurial/sshrepo.py", line 50, in __init__ > > self.validate_repo(ui, sshcmd, args, remotecmd) > > File "/usr/local/lib/python2.6/dist-packages/mercurial-1.7.5-py2.6- > > linux-i686.egg/mercurial/sshrepo.py", line 81, in validate_repo > > self._abort(error.RepoError(_("no suitable response from remote > > hg"))) > > File "/usr/local/lib/python2.6/dist-packages/mercurial-1.7.5-py2.6- > > linux-i686.egg/mercurial/sshrepo.py", line 101, in _abort > > raise exception > > RepoError: no suitable response from remote hg > > ----- > > > "no suitable response from remote hg" makes me suspect I have the > > wrong path for the Repository Path setting, but this path works fine > > in other settings. I set it up with ssh credentials that I know to be > > valid. For what it's worth, I have different problems if I use http > > instead of ssh in the path. > > > Thanks, > > > On Feb 11, 4:18 pm, Christian Hammond <[email protected]> wrote: > > > A 500. Interesting... So it's more than just a matter of not finding the > > > right path in the repository. > > > > What version of Review Board is this? > > > > Can you enable logging on the Review Board end, repeat the process, and > > then > > > find the accompanying error for this in the reviewboard.log file? > > > > Christian > > > > -- > > > Christian Hammond - [email protected] > > > Review Board -http://www.reviewboard.org > > > VMware, Inc. -http://www.vmware.com > > > > On Fri, Feb 11, 2011 at 1:07 PM, Jerry <[email protected]> wrote: > > > > And, the dbug log from RBTools' post-review: > > > > > ----- > > > > $ post-review --debug > > > > >>> RBTools 0.3.2 > > > > >>> Home = C:\Documents and Settings\jm\Application Data > > > > >>> hg showconfig > > > > >>> hg root > > > > >>> hg svn info > > > > >>> Using candidate path 'default': > > > > 'ssh://scm//opt/hg/main/core/AnyModalConsole' > > > > >>> repository info: Path: ssh://scm//opt/hg/main/core/AnyModalConsole, > > > > Base path: , Supports changesets: False > > > > >>> HTTP GETting api/ > > > > >>> HTTP GETtinghttp://of1dvweb-lnx001/api/info/ > > > > >>> Using the new web API > > > > >>> hg branch > > > > >>> hg -q outgoing --template b:{branches} > > > > r:{rev} > > > > > default > > > > >>> Found outgoing changeset 259 for branch 'default' > > > > >>> hg diff -r 258 -r 259 > > > > >>> Attempting to create review request on > > > > ssh://scm//opt/hg/main/core/AnyModalConsole for None > > > > >>> HTTP POSTing tohttp://of1dvweb-lnx001/api/review-requests/: > > > > {'repository': 'ssh://scm//opt/hg/main/core/AnyModalConsole'} > > > > >>> Review request created > > > > >>> Uploading diff, size: 454 > > > > >>> HTTP POSTing > > tohttp://of1dvweb-lnx001/api/review-requests/67/diffs/: > > > > {} > > > > >>> Got HTTP error: 500: <!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> > > > > > Error uploading diff > > > > > Your review request still exists, but the diff is not attached. > > > > ----- > > > > > On Feb 11, 3:16 pm, Christian Hammond <[email protected]> wrote: > > > > > Hi Jerry, > > > > > > Have you tried post-review or hg post-review? Can you try these (with > > > > debug > > > > > mode on, which is --debug on post-review at least, dunno about hg > > > > > post-review) and see if you still hit this problem? If so, the debug > > log > > > > > would be helpful in identifying the problem. > > > > > > Christian > > > > > > -- > > > > > Christian Hammond - [email protected] > > > > > Review Board -http://www.reviewboard.org > > > > > VMware, Inc. -http://www.vmware.com > > > > > > On Fri, Feb 11, 2011 at 11:51 AM, Jerry <[email protected]> > > > > wrote: > > > > > > I recently set up ReviewBoard connecting to a mercurial repository. > > > > > > When trying to post a diff through the web UI, I get an error: > > > > > > > The file "build.xml" (revision ef6b39fd44d9) was not found in the > > > > > > repository > > > > > > > I have verified that this file with this revision number is in the > > > > > > repo. The mercurial repository path is set > > > > tohttp://ServerName/RepoName > > > > > > (this lists files at the root of the repo, like .hg). That's where > > > > > > build.xml is located, and I can see it in a web browser. > > > > > > > Am I setting up the mercurial path incorrectly? > > > > > > > Thanks, > > > > > > > -- > > > > > > Want to help the Review Board project? Donate today at > > > > > >http://www.reviewboard.org/donate/ > > > > > > Happy user? Let us know athttp://www.reviewboard.org/users/ > > > > > > -~----------~----~----~----~------~----~------~--~--- > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected] > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/reviewboard?hl=en > > > > > -- > > > > Want to help the Review Board project? Donate today at > > > >http://www.reviewboard.org/donate/ > > > > Happy user? Let us know athttp://www.reviewboard.org/users/ > > ... > > read more » -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
