HTTP 400, Error 206: The repository path specified is not in the list of known repositories.

1,776 views
Skip to first unread message

angel.c...@googlemail.com

unread,
Jun 25, 2018, 10:45:54 AM6/25/18
to Review Board Community
Hi all,

Having a recurring problem with rbt post - whenever I try to post a diff to our RB server I get

The repository path specified is not in the list of known repositories. (HTTP 400, API Error 206)

as a response.
I've configured the repo in RB to point to the root of the SVN repository we're using, and my .reviewboardrc file reads as follows:

REVIEWBOARD_URL = "http://reviewboard.{company_name}.co.uk"
REPOSITORY = "{project_name}"
REPOSITORY_TYPE = "svn"

The repository in RB is set up as follows:

Name: {project_name}
Hosting Service: (None - Custom Repository)
Repository Type: Subversion
Username: {username}
Password: {password}

svn info on the directory I'm trying to diff reads as follows:

Path: .
Working Copy Root Path: C:\eclipse_workspace
Relative URL: ^/trunk
Repository Root: http://visualsvn.{company_name}.co.uk/svn/{project_name}
Repository UUID: {uuid}
Revision: 9394
Node Kind: directory
Schedule: normal
Last Changed Author: {person}
Last Changed Rev: 9391
Last Changed Date: 2018-06-25 14:59:01 +0100 (Mon, 25 Jun 2018)

Finally, rbt post -o --debug outputs:

>>> RBTools 0.7.11
>>> Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
>>> Running on Windows-7-6.1.7601-SP1
>>> Home = C:\Users\cascara01\AppData\Roaming
>>> Current directory = C:\eclipse_workspace
>>> Command line: rbt post -o --debug
>>> Running: tf vc help
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Running: diff --version
>>> Running: svn --non-interactive --version -q
>>> repository info: Path: http://visualsvn.{company_name}.co.uk/svn/{project_name}, Base path: /trunk, Supports changesets: False
>>> Making HTTP GET request to http://reviewboard.{company_name}.co.uk/api/
>>> Making HTTP GET request to https://reviewboard.{company_name}.co.uk/api/repositories/?tool=Subversion
>>> Cached response for HTTP GET https://reviewboard.{company_name}.co.uk/api/repositories/?tool=Subversion expired and was modified
>>> Running: svn --non-interactive info
>>> Running: diff --version
>>> Running: svn --non-interactive --version -q
>>> repository info: Path: http://visualsvn.{company_name}.co.uk/svn/{project_name}, Base path: /trunk, Supports changesets: False
>>> Running: svn --non-interactive status -q --ignore-externals
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry -r BASE
>>> Running: svn --non-interactive info app/include/carriage/ate/app_1_ate.h
>>> Running: svn --non-interactive info app/include/carriage/ate
>>> Running: svn --non-interactive info app/include/carriage
>>> Running: svn --non-interactive info app/include
>>> Running: svn --non-interactive info app
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry -r BASE --no-diff-deleted
>>> Running: svn --non-interactive info app/include/carriage/ate/app_1_ate.h
>>> Running: svn --non-interactive info app/include/carriage/ate/app_1_ate.h
>>> Running: svn --non-interactive info app/include/carriage/ate/app_1_ate.h
>>> Generated diff size: 604 bytes
>>> Making HTTP GET request to https://reviewboard.{company_name}.co.uk/api/validation/diffs/
>>> Cached response for HTTP GET https://reviewboard.{company_name}.co.uk/api/validation/diffs/ expired and was modified
>>> Making HTTP POST request to https://reviewboard.{company_name}.co.uk/api/validation/diffs/
>>> Got API Error 206 (HTTP code 400): The repository path specified is not in the list of known repositories.
>>> Error data: {u'stat': u'fail', u'repository': u'{project_name}', u'err': {u'msg': u'The repository path specified is not in the list of known repositories.', u'code':206}}
Traceback (most recent call last):
  File "C:\Program Files (x86)\RBTools\bin\..\Python27\Scripts\rbt-script.py", line 11, in <module>
    load_entry_point('RBTools==0.7.11', 'console_scripts', 'rbt')()
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.11-py2.7.egg\rbtools\commands\main.py", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.11-py2.7.egg\rbtools\commands\__init__.py", line 665, in run_from_argv
    exit_code = self.main(*args) or 0
  File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.11-py2.7.egg\rbtools\commands\post.py", line 821, in main
    (msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The repository path specified is not in the list of known repositories. (HTTP 400, API Error 206)

Does anyone have any advice on how to resolve this?

angel.c...@googlemail.com

unread,
Jun 25, 2018, 10:49:13 AM6/25/18
to Review Board Community
Should mention - I'm running 3.0.7 on the server

angel.c...@googlemail.com

unread,
Jun 28, 2018, 5:52:02 AM6/28/18
to Review Board Community
Hi all,

I'm still struggling to get this to work - is there anything I should try? 
I know that the perennial cause for this problem is that the repository on RB is not pointing at the root of the SVN repository, but in my case it is!
I'm just quite stuck and not sure what has been misconfigured.

Kind regards,
Angel Cascarino


On Monday, June 25, 2018 at 3:45:54 PM UTC+1, angel.c...@googlemail.com wrote:

Christian Hammond

unread,
Jun 28, 2018, 6:00:49 AM6/28/18
to revie...@googlegroups.com
Hi Angel,

It's not able to match the configured repository name (or path -- but in this case the name -- the error needs to be updated) from .reviewboardrc with what's on the server. This is case-sensitive. Is there any chance there's a casing difference between the two?

It's also possible that you have some access controls set for the repository (making it private) but your user isn't on the access list (or in a group on the access list).

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 "Review Board Community" 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.


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

angel.c...@googlemail.com

unread,
Jun 28, 2018, 6:41:32 AM6/28/18
to Review Board Community
Hi Christian,

So the repository name is entirely numeric (It's just "280") so no casing issues there. That... shouldn't be causing an issue, but I'll try creating a non-numeric repository name and test that in any case.
The repository is set to publicly accessible so that's not the issue either - indeed if I use the Python API to post a review request that works, but then that's to be expected since by getting the repository via root we already have a reference to it.


UPDATE: Deleting the 280 repository and creating a repository called "Test" appears to have worked.
Can you replicate issues with entirely numeric repository names on your end?

Thanks for your help, 

Kind regards.
Angel

Christian Hammond

unread,
Jun 28, 2018, 6:42:59 AM6/28/18
to revie...@googlegroups.com
That's the problem. If it's numeric, it'll look for it based on the in-database numeric ID, for legacy reasons. There must be non-numeric characters in the name.

Christian

angel.c...@googlemail.com

unread,
Jun 28, 2018, 7:22:45 AM6/28/18
to Review Board Community
Ah that makes perfect sense!

Thanks again for the help, much appreciated,
Kind regards,
Angel
Reply all
Reply to author
Forward
0 new messages