Unable to find a Review Board server for this source code tree

4,162 views
Skip to first unread message

许逸斐

unread,
Dec 7, 2016, 3:51:02 PM12/7/16
to reviewboard
I am using review board 0.7.7(python 2.7.12) on Mac OSX  and getting "Unable to find a Review Board server for this source code tree" error when using rbt post. The output file in debug mode is as follows:

>>> RBTools 0.7.7

>>> Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) 

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]

>>> Running on Darwin-15.5.0-x86_64-i386-64bit

>>> Home = /Users/jessicafei

>>> Current directory = /Users/jessicafei/JasperSystem/yfx-macbook-pro

>>> Command line: rbt post -d 190198

>>> Checking for a Subversion repository...

>>> Running: svn --non-interactive info

>>> Command exited with rc 1: ['svn', '--non-interactive', u'info']

svn: E155007: '/Users/jessicafei/JasperSystem/yfx-macbook-pro' is not a working copy

---

>>> Checking for a Git repository...

>>> Running: git rev-parse --git-dir

>>> Running: git config core.bare

>>> Running: git rev-parse --show-toplevel

>>> Running: git symbolic-ref -q HEAD

>>> Running: git config --get branch.dev.merge

>>> Command exited with rc 1: ['git', 'config', '--get', u'branch.dev.merge']

---

>>> Running: git config --get branch.dev.remote

>>> Command exited with rc 1: ['git', 'config', '--get', u'branch.dev.remote']

---

>>> Running: git config --get remote.origin.url

>>> Command exited with rc 1: ['git', 'config', '--get', 'remote.origin.url']

---

>>> Running: git config --get remote.origin.url

>>> Command exited with rc 1: ['git', 'config', '--get', 'remote.origin.url']

---

>>> repository info: Path: /Users/jessicafei/.git, Base path: , Supports changesets: False

>>> Running: git config --get reviewboard.url

>>> Command exited with rc 1: ['git', 'config', '--get', 'reviewboard.url']

---

Unable to find a Review Board server for this source code tree.

David Trowbridge

unread,
Dec 7, 2016, 5:58:42 PM12/7/16
to reviewboard
Hi,

You'll have to create a .reviewboardrc file with the server name (or pass --server on the command-line). The "rbt setup-repo" command can create this file for you.

-David

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

许逸斐

unread,
Dec 7, 2016, 8:09:24 PM12/7/16
to reviewboard
Hi.David
  I tried the "rbt setup-repo" command and it generated the .reviewboardrc file. But I got a new error after "rbt post" command:

Syntax error in config file: /Users/jessicafei/.reviewboardrc

Line 3 offset 93

在 2016年12月7日星期三 UTC-8下午12:51:02,许逸斐写道:

Christian Hammond

unread,
Dec 7, 2016, 8:29:04 PM12/7/16
to revie...@googlegroups.com
Hi,

Can you show the contents of that file?

Christian

-- 
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.

许逸斐

unread,
Dec 8, 2016, 12:37:38 AM12/8/16
to reviewboard
REVIEWBOARD_URL = "review board URL"
REPOSITORY = "GitDemo"
BRANCH = "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD"
LAND_DEST_BRANCH = "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD"

在 2016年12月7日星期三 UTC-8下午12:51:02,许逸斐写道:
I am using review board 0.7.7(python 2.7.12) on Mac OSX  and getting "Unable to find a Review Board server for this source code tree" error when using rbt post. The output file in debug mode is as follows:

许逸斐

unread,
Dec 21, 2016, 5:45:34 PM12/21/16
to reviewboard

Can someone help me resolve this issue? 
Here is the content in .reviewboardrc  file
在 2016年12月7日星期三 UTC-8下午9:37:38,许逸斐写道:

Christian Hammond

unread,
Dec 21, 2016, 6:13:04 PM12/21/16
to revie...@googlegroups.com
Hi,

Your .reviewboardrc isn't correct. The BRANCH seems to have an error message in it. It should be a single like string containing the name of the destination branch.

This causes a syntax error in the file, preventing the server from being found.

Christian


--


Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/


Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/


Happy user? Let us know! https://www.reviewboard.org/users/


---


You received this message because you are subscribed to the Google Groups "reviewboard" group.


To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.

许逸斐

unread,
Dec 21, 2016, 7:21:13 PM12/21/16
to reviewboard, chri...@beanbaginc.com
I used rbt setup-repo command and entered yes to all the questions in the meantime. Did I miss any configuration?

在 2016年12月21日星期三 UTC-8下午3:13:04,Christian Hammond写道:

Christian Hammond

unread,
Dec 21, 2016, 9:08:10 PM12/21/16
to reviewboard, 许逸斐
It looks like something failed with one of the commands it executed and the error output ended up in the file. If you hand-edit it to correct the BRANCH, it should work.

Christian

许逸斐

unread,
Dec 22, 2016, 12:58:07 PM12/22/16
to reviewboard, jessica...@gmail.com, chri...@beanbaginc.com
 I used  rbt post command in debug mode. The output comes from  

svn --non-interactive info

>>> Command exited with rc 1: ['svn', '--non-interactive', u'info']

svn: E155007: '/Users/jessicafei' is not a working copy

Does it has anything to do with svn?
在 2016年12月21日星期三 UTC-8下午6:08:10,Christian Hammond写道:

许逸斐

unread,
Dec 22, 2016, 1:13:23 PM12/22/16
to reviewboard, jessica...@gmail.com, chri...@beanbaginc.com
By the way, I set the review board server through p4 counters. I am able to see the review board url through p4 counter reviewboard.url command.

在 2016年12月22日星期四 UTC-8上午9:58:07,许逸斐写道:

许逸斐

unread,
Dec 22, 2016, 2:13:23 PM12/22/16
to reviewboard, jessica...@gmail.com, chri...@beanbaginc.com
Since I am using perforce, I just figured out I need to set my local repo type to be perforce in the .reviewboardrc.

now my .reviewboadrc file looks like:

REVIEWBOARD_URL = reviewboard.url
REPOSITORY_TYPE = "perforce"

Thank you all for your help!

在 2016年12月22日星期四 UTC-8上午10:13:23,许逸斐写道:
Reply all
Reply to author
Forward
0 new messages