Got API Error 206 (HTTP code 400): The repository path specified is not in the list of known repositories

4,002 views
Skip to first unread message

cmuser

unread,
Aug 20, 2012, 7:08:36 AM8/20/12
to revie...@googlegroups.com

I have reviewboard install on server named "ABC(172.16.7.100)" & my cvs is installed on server "DEF"
when i commit code from ser "ABC" it works but same command when i try on ser-"DEF" it fails with below error. Can some1 help where i am going wrong?
Not sure if .reviewboardrc file should also be there, but i have tried with that also but still it failed

cat
.reviewboardrc

REPOSITORY = ':pserver:cmsuer@def:/opt/cvsroot'

REVIEWBOARD_URL = 'http://172.16.7.100:81'


command on changed files-

$>post-review --debug --server=http://172.16.7.100:81 --username=admin --password=admin  --repository-url=':pserver:cmuser@def:/opt/cvsroot'
>>> RBTools 0.3
>>> svn info :pserver:kapilap@def:/opt/cvsroot
>>> repository info: Path: svn.mmt.com:/opt/cvsroot, Base path: None, Supports changesets: False
>>> cvs diff -uN
>>> HTTP GETting api/
>>> HTTP GETting http://172.16.7.100:81/api/info/
>>> Using the new web API
>>> Attempting to create review request on def.domain.com:/opt/cvsroot for None
>>> HTTP POSTing to http://172.16.7.100:81/api/review-requests/: {'repository': 'def.domain.com:/opt/cvsroot'}
>>> Got API Error 206 (HTTP code 400): The repository path specified is not in the list of known repositories
>>> Error data: {'stat': 'fail', 'repository': 'def.domain.com:/opt/cvsroot', 'err': {'msg': 'The repository path specified is not in the list of known repositories', 'code': 206}}

There was an error creating this review request.

The repository path "def.domain.com:/opt/cvsroot" is not in the
list of known repositories on the server.



cmuser

unread,
Aug 20, 2012, 7:18:44 AM8/20/12
to revie...@googlegroups.com
have checked in /etc/hosts file

172.1.8103   def def.domain.com

which is correct entry. My reviewboard cvs repo entry is also correct- :pserver:cmuser@def:/opt/cvsroot

Christian Hammond

unread,
Aug 20, 2012, 1:29:53 PM8/20/12
to revie...@googlegroups.com, revie...@googlegroups.com
I recommend you use named repositories. It will work around this issue. Instead of setting REPOSITORY to a path, set it to the configured name of the repository.

Christian


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

cmuser

unread,
Aug 21, 2012, 2:43:54 AM8/21/12
to revie...@googlegroups.com
Thanx Christian for your reply.

To summarize your input-
in .reviewboardrc file
  REPOSITORY = "my repo name"
Where "my repo name" is the exact name for the repository entry in Review Board.

I have done the same , but still its not working:(

cmuser

unread,
Aug 21, 2012, 3:09:34 AM8/21/12
to revie...@googlegroups.com
to show more error on m/c where cvs installed , reviewboard on another m/c

 cat .reviewboardrc
REPOSITORY = 'svn:/opt/cvsroot'

REVIEWBOARD_URL = 'http://172.16.7.100:81'
-bash-3.2$ post-review                                                         
There was an error creating this review request.

The repository path "svn.mmt.com:/opt/cvsroot" is not in the

list of known repositories on the server.

Ask the administrator to add this repository to the Review Board server.
For information on adding repositories, please read
http://www.reviewboard.org/docs/manual/dev/admin/management/repositories/
-bash-3.2$




On Monday, August 20, 2012 4:38:36 PM UTC+5:30, cmuser wrote:

Christian Hammond

unread,
Aug 21, 2012, 3:22:17 AM8/21/12
to revie...@googlegroups.com
Oh, your RBTools is pretty old. You will need 0.4.x.

What version of Review Board are you using?

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


cmuser

unread,
Aug 21, 2012, 6:41:45 AM8/21/12
to revie...@googlegroups.com, chi...@chipx86.com
My gratitude again for replying Christian.

Versions-
ReviewBoard==1.6.1
RBTools==0.4.1

cmuser

unread,
Aug 21, 2012, 6:45:54 AM8/21/12
to revie...@googlegroups.com, chi...@chipx86.com

I added this line in commitinfo..

/usr/bin/post-review -dn --server=http://172.16.7.100:81   --submit-as=$name  --repository-url=:pserver:$user@svn:/opt/cvsroot

-bash-3.2$ cvs ci -m "BugID:47300 update"   document.txt
Post-review for /opt/cvsroot/test
>>> RBTools 0.4.1
>>> Home = /
No supported repository could be accessed at the supplied url.
A commit is occurring in /opt/cvsroot/test
08/21/12 [16:13:16]: A commit is occurring in /opt/cvsroot/test
08/21/12 [16:13:16]: Pre-commit check for document.txt
cvs commit: Pre-commit check failed
cvs [commit aborted]: correct above errors first!
-bash-3.2$ cat .reviewboardrc

REPOSITORY = 'svn:/opt/cvsroot'
REVIEWBOARD_URL = 'http://172.16.7.100:81'
-bash-3.2$

reviewboard repo settings path- svn:/opt/cvsroot

How can i debug this further?

Christian Hammond

unread,
Aug 21, 2012, 2:29:14 PM8/21/12
to revie...@googlegroups.com
You don't want to be using --repository-url, if you have a .reviewboardrc file.

You also want to make sure you're running this from the checkout directory.


Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


cmuser

unread,
Aug 22, 2012, 4:59:58 AM8/22/12
to revie...@googlegroups.com, chi...@chipx86.com
thanks Christain for your inputs.

1) Is it necessary to have .reviewboardrc file? as all my developers wont be making it in there checkout wolud be little Add-on kinda so i can add this requirement in my commitinfo file like
post-review -dn --server=http://172.16.7.100:81 --username=admin --password=admin  -submit-as=cmuser  --repository-url=:pserver:user:password@svn:/opt/cvsroot

can't this itself work?
2)what is this mean- when commit?


>>> Home = /
No supported repository could be accessed at the supplied url.

kvr

unread,
Aug 29, 2012, 7:51:15 AM8/29/12
to revie...@googlegroups.com
We too faced this issue, and after adding repository ip in .reviewboardrc the issue was resolved.
So I think presence of .reviewboardrc file is must in every user's home directory.

KVR


On Monday, August 20, 2012 4:38:36 PM UTC+5:30, cmuser wrote:

Christian Hammond

unread,
Aug 30, 2012, 2:04:36 PM8/30/12
to revie...@googlegroups.com, revie...@googlegroups.com
Best just to commit it in the base of the checkout.

Christian


shaheer va

unread,
Nov 28, 2012, 8:42:14 AM11/28/12
to revie...@googlegroups.com
Hi Christian,

i am using reviewboard 1.6.13 and RBTools 0.4.2.

i am using subversion as my source control.

i am able to submit review requests using post-review.exe before committing the file. But when I tried to submit review requests as post-commit using following command line,

c:\Python26\Scripts\post-review.exe --server=<server url> -p --target-people=builduser --repository-url=https://192.168.240.104/svn/Hunkara/branches/Private
/AAAHScripts/python/AAAHStart.py --revision-range=1466:1467 -d

i am getting following error

The repository path "https://192.168.240.104/svn/Jamaica" is not in the
list of known repositories on the server.

Could you please help me on this.

Thanks a lot,
Shaheer

Christian Hammond

unread,
Nov 28, 2012, 2:30:18 PM11/28/12
to revie...@googlegroups.com
The repository URL in both Review Board and post-review needs to be the base of the repository. That is, the very root of the SVN repository, not a subdirectory within it.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


Reply all
Reply to author
Forward
0 new messages