Hi,

I'm trying to set up Review Board to work with our Mercurial
repository, but I'm stuck at a RepoError.

1) The RB server is Ubuntu 10.04 running Review Board 1.0.9. The
Mercurial repository is hosted at Codebase (http://
www.codebasehq.com/), with the path 
ssh://h...@codebasehq.com/ipstreet/dev/v10.hg.

2) On my client (a Mac), I'm running RBtools 0.2.

3) On my client, I type:  post-review -d 567. 567 is my local check-in
number. Post-review prints out:

lucius:dev-v10 johnd$ post-review -d 567
>>> svn info
>>> git rev-parse --git-dir
>>> hg root
>>> hg svn info
>>> repository info: Path: ssh://h...@codebasehq.com/ipstreet/dev/v10.hg, Base 
>>> path: , Supports changesets: False
>>> hg diff 567
>>> Looking for '184.106.204.128 /' cookie in 
>>> /Users/johnd/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request on 
>>> ssh://h...@codebasehq.com/ipstreet/dev/v10.hg for None
>>> HTTP POSTing to http://184.106.204.128/api/json/reviewrequests/new/: 
>>> {'repository_path': 'ssh://h...@codebasehq.com/ipstreet/dev/v10.hg'}
>>> Review request created
>>> Uploading diff, size: 31
>>> HTTP POSTing to http://184.106.204.128/api/json/reviewrequests/6/diff/new/: 
>>> {}
>>> 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.
lucius:dev-v10 johnd$


4) Over on the server, in Apache's error.log, there's this:

ERROR:root:Exception thrown for user stugots at
http://184.106.204.128/api/json/reviewrequests/5/diff/new/

no suitable response from remote hg
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/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/views/decorators/
cache.py", line 69, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/djblets/webapi/
decorators.py", line 84, in _checklogin
    response = view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/
http.py", line 37, in inner
    return func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/reviewboard/webapi/
json.py", line 1203, in new_diff
    form = UploadDiffForm(review_request.repository, form_data,
request.FILES)
  File "/usr/local/lib/python2.6/dist-packages/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/scmtools/
models.py", line 43, in get_scmtool
    return cls(self)
  File "/usr/local/lib/python2.6/dist-packages/reviewboard/scmtools/
hg.py", line 21, in __init__
    self.client = HgClient(repository.path)
  File "/usr/local/lib/python2.6/dist-packages/reviewboard/scmtools/
hg.py", line 142, in __init__
    self.repo = hg.repository(hg_ui, path=repoPath)
  File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 63, in
repository
    repo = _lookup(path).instance(ui, path, create)
  File "/usr/lib/pymodules/python2.6/mercurial/sshrepo.py", line 51,
in __init__
    self.validate_repo(ui, sshcmd, args, remotecmd)
  File "/usr/lib/pymodules/python2.6/mercurial/sshrepo.py", line 82,
in validate_repo
    self.abort(error.RepoError(_("no suitable response from remote
hg")))
  File "/usr/lib/pymodules/python2.6/mercurial/sshrepo.py", line 100,
in abort
    raise exception
RepoError: no suitable response from remote hg
ERROR:root:Exception thrown for user stugots at
http://184.106.204.128/api/json/reviewrequests/6/diff/new/

no suitable response from remote hg
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/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/views/decorators/
cache.py", line 69, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/djblets/webapi/
decorators.py", line 84, in _checklogin
    response = view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/
http.py", line 37, in inner
    return func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/reviewboard/webapi/
json.py", line 1203, in new_diff
    form = UploadDiffForm(review_request.repository, form_data,
request.FILES)
  File "/usr/local/lib/python2.6/dist-packages/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/scmtools/
models.py", line 43, in get_scmtool
    return cls(self)
  File "/usr/local/lib/python2.6/dist-packages/reviewboard/scmtools/
hg.py", line 21, in __init__
    self.client = HgClient(repository.path)
  File "/usr/local/lib/python2.6/dist-packages/reviewboard/scmtools/
hg.py", line 142, in __init__
    self.repo = hg.repository(hg_ui, path=repoPath)
  File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 63, in
repository
    repo = _lookup(path).instance(ui, path, create)
  File "/usr/lib/pymodules/python2.6/mercurial/sshrepo.py", line 51,
in __init__
    self.validate_repo(ui, sshcmd, args, remotecmd)
  File "/usr/lib/pymodules/python2.6/mercurial/sshrepo.py", line 82,
in validate_repo
    self.abort(error.RepoError(_("no suitable response from remote
hg")))
  File "/usr/lib/pymodules/python2.6/mercurial/sshrepo.py", line 100,
in abort
    raise exception
RepoError: no suitable response from remote hg



I've entered my Codebase username and password in RB's repository
authentication. I've double-checked them, and they're correct.

I'm sending the Codebase support folks a message now, asking if
there's any tricks I need to be aware of when using Review Board with
their service.

Help help! What else should I look at to debug this further?

John

-- 
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 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to