Re: Problem posting diff

2011-02-20 Thread Gilles Moris
On Friday 11 February 2011 10:07:35 pm Jerry 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 GETting http://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 to
  http://of1dvweb-lnx001/api/review-requests/: {'repository':
  'ssh://scm//opt/hg/main/core/AnyModalConsole'}

The root cause is that Mercurial does not support to be remote queried, in 
particular through ssh. The repo has to be cloned first.

However, note that it does work for HTTP remote repo, because RB hooks 
directly in the WEB user interface, and not in the wire protocol API in this 
case.

So in summary, the Mercurial repo path can be either a local path or a HTTP 
path, but not a SSH path. May be it could be worth explicitly rejecting 
those.
I guess the same may apply to most Distributed VCS, in particular Git.

Regards.
Gilles.

-- 
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


Re: Problem posting diff

2011-02-12 Thread Gilles Moris
On Friday 11 February 2011 11:22:47 pm Jerry wrote:
 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!

Stupid question, but does SSH access ever been tested for Mercurial repos ?
It seems that the support for SSH is relatively recent (Dec 29 2010).

From what I see, I can clone with standard ssh command using RB private key, 
but not if I use rbssh.

# sudo -u apache hg clone --config ui.ssh=rbssh --debug 
ssh://morisgi@localhost/hello hello.clone
running rbssh morisgi@localhost hg -R hello serve --stdio
sending hello command
sending between command
remote: /usr/lib/python2.4/site-packages/paramiko/client.py:94: UserWarning: 
Unknown ssh-rsa host key for localhost: 10b09cfbea8aab56c4df7c9cff5712a7
remote:   warnings.warn('Unknown %s host key for %s: %s' %
remote: Error connecting to server: No authentication methods available
abort: no suitable response from remote hg!

Possibly rbssh/paramiko is to verbose and confuses the mercurial wire protocol.
Or the known host key is not correctly saved when recording the repo 
declaration,
or more precisely is not accessible to rbssh, though Reviewboard knows it.

Note that this fails, but I don't know if it's supposed to work:
# rbssh morisgi@localhost echo
Error connecting to server: No authentication methods available

Regards.
Gilles.

-- 
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


Re: Problem posting diff

2011-02-11 Thread Christian Hammond
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 - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Fri, Feb 11, 2011 at 11:51 AM, Jerry gpjerrymalo...@gmail.com 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 to http://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 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

-- 
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

Re: Problem posting diff

2011-02-11 Thread Jerry
Thanks, Christian.  I had tried hg postreview from mdelagra's fork
(https://bitbucket.org/mdelagra/mercurial-reviewboard) first, and was
unsuccessful, so I went to the GUI to try to eliminate that as a
culprit.  Is this the tool you are referring to?

Here is the --debug result from that (I added some output to explain
the HTTP 400 error):

-

$ hg postreview tip -g -o --debug
postreview plugin, version 3.5.0
running C:\cygwin\bin\ssh scm hg -R /opt/hg/main/core/
AnyModalConsole serve --stdio
sending hello command
sending between command
remote: 79
remote: capabilities: unbundle lookup changegroupsubset branchmap
pushkey stream=65537
remote: 1
sending heads command
searching for changes
common changesets up to 8611b86cc9dc ef6b39fd44d9

=== Diff from parent to rev ===
diff -r ef6b39fd44d9fcacc3e3b9d825c49b07acf17e2c -r
ebefc4bde45bce94672ee937cac8df0eb5f48135 build.xml
--- a/build.xml Wed Feb 02 16:05:49 2011 -0500
+++ b/build.xml Fri Feb 11 14:41:58 2011 -0500
@@ -4,6 +4,7 @@
  basedir=.
  xmlns:ivy=antlib:org.apache.ivy.ant
  !--xmlns:ac=net.sf.antcontrib--
+  !-- some stupid comment --
   property environment=env/
   property name=devTools.dir value=${env.DEVTOOLS} /
   import file=${devTools.dir}/default-build.xml/

changesets:
259:ebefc4bde45b asfd

reviewboard:http://of1dvweb-lnx001/

username: jerry.maloney
password: **
abort: HTTP 400 Error: Bad Request POST 
http://of1dvweb-lnx001/api/review-requests/63/diffs/
(None)

-

I'll try post-review (not hg post-review) now to see if I get
different results.

Thanks,



On Feb 11, 3:16 pm, Christian Hammond chip...@chipx86.com 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 - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com

 On Fri, Feb 11, 2011 at 11:51 AM, Jerry gpjerrymalo...@gmail.com 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
  reviewboard+unsubscr...@googlegroups.com
  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 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


Re: Problem posting diff

2011-02-11 Thread Christian Hammond
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 - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Fri, Feb 11, 2011 at 1:07 PM, Jerry gpjerrymalo...@gmail.com 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 GETting http://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 to http://of1dvweb-lnx001/api/review-requests/:
 {'repository': 'ssh://scm//opt/hg/main/core/AnyModalConsole'}
  Review request created
  Uploading diff, size: 454
  HTTP POSTing to http://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
  title500 - Internal Server Error | Review Board/title
  /head
  body
  h1Something 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 chip...@chipx86.com 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 - chip...@chipx86.com
  Review Board -http://www.reviewboard.org
  VMware, Inc. -http://www.vmware.com
 
  On Fri, Feb 11, 2011 at 11:51 AM, Jerry gpjerrymalo...@gmail.com
 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
   reviewboard+unsubscr...@googlegroups.com
   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 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


-- 
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

Re: Problem posting diff

2011-02-11 Thread Jerry
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 at http://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 , 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 chip...@chipx86.com 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 

Re: Problem posting diff

2011-02-11 Thread Christian Hammond
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 - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Fri, Feb 11, 2011 at 1:46 PM, Jerry gpjerrymalo...@gmail.com 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 at http://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 , 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 

Re: Problem posting diff

2011-02-11 Thread Jerry
 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 chip...@chipx86.com 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 - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com

 On Fri, Feb 11, 2011 at 1:46 PM, Jerry gpjerrymalo...@gmail.com 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