Posting to reviewboard fails: Got API Error 207 (HTTP code 400): The file was not found in the repository.

764 views
Skip to first unread message

Jonathan Anderson

unread,
Feb 26, 2015, 10:33:50 PM2/26/15
to revie...@googlegroups.com

Hello,

I am using bitbucket as my repo and it's configured in reviewboard as a repo. Tried to google and debug but haven't gotten anywhere. Any help would be greatly appreciated. Here is the debug output of the rbt post command:


jon$ rbt post -d

>>> RBTools 0.7.1

>>> Python 2.7.6 (default, Sep  9 2014, 15:04:36) 

[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]

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

>>> 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.reviewboard-config.merge

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

---

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

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

---

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

>>> repository info: Path: https://xx...@bitbucket.org/xxxxx/application.git, Base path: , Supports changesets: False

>>> Making HTTP GET request to http://ec2-xxxx.us-west-2.compute.amazonaws.com:80/api/

>>> Running: git rev-parse refs/heads/reviewboard-config

>>> Running: git merge-base 905fbca39a4dffd42b6b89d9d460712e4737b7c5 origin/master

>>> Running: git rev-parse 0f88238f106be229dd11f92ab75663034e98b005

>>> Running: git status --porcelain --untracked-files=no

WARNING: Your working directory is not clean. Any changes which have not been committed to a branch will not be included in your review request.

>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff --no-color --full-index --ignore-submodules -M --no-ext-diff 0f88238f106be229dd11f92ab75663034e98b005..905fbca39a4dffd42b6b89d9d460712e4737b7c5

>>> Making HTTP GET request to http://ec2-xxxxx.us-west-2.compute.amazonaws.com:80/api/validation/diffs/

>>> Making HTTP POST request to http://ec2-xxxxxx.us-west-2.compute.amazonaws.com:80/api/validation/diffs/

>>> Got API Error 207 (HTTP code 400): The file was not found in the repository.

>>> Error data: {u'stat': u'fail', u'file': u'grails-app/conf/BootStrap.groovy', u'err': {u'msg': u'The file was not found in the repository.', u'code': 207}, u'revision': u'aa5bc7f26a078a5b027585778c90a60f9ed92813'}

Traceback (most recent call last):

  File "/usr/local/bin/rbt", line 9, in <module>

    load_entry_point('RBTools==0.7.1', 'console_scripts', 'rbt')()

  File "/Library/Python/2.7/site-packages/RBTools-0.7.1-py2.7.egg/rbtools/commands/main.py", line 133, in main

    command.run_from_argv([RB_MAIN, command_name] + args)

  File "/Library/Python/2.7/site-packages/RBTools-0.7.1-py2.7.egg/rbtools/commands/__init__.py", line 538, in run_from_argv

    exit_code = self.main(*args) or 0

  File "/Library/Python/2.7/site-packages/RBTools-0.7.1-py2.7.egg/rbtools/commands/post.py", line 670, in main

    (msg_prefix, e))

rbtools.commands.CommandError: Error validating diff


grails-app/conf/BootStrap.groovy: The file was not found in the repository. (HTTP 400, API Error 207)

David Trowbridge

unread,
Feb 27, 2015, 6:51:21 PM2/27/15
to revie...@googlegroups.com
Hi,

Can you share what the repository configuration looks like in the Review Board admin?

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

Jonathan Anderson

unread,
Mar 3, 2015, 12:54:22 AM3/3/15
to revie...@googlegroups.com
Sorry I missed this.

Are there any important fields you are curious about.

I haven selected the hosting service as bitbucket and entered in my credentials. They worked because it didn't tell my details were invalid.

Repository type: git
Repository plan: personal
Repository name: same as is in bitbucket

Use hosting service's bug tracker: checked

Publicly accessible: not checked and chosen users is my username for reviewboard.

encoding is not filled in

did not change the internal state information but the extra data shows:
{"use_ticket_auth": false, "bitbucket_repo_name": "xxxxx", "repository_plan": "personal", "bug_tracker_use_hosting": true}

Thank you for the response. Let me know if I am missing something.

David Trowbridge

unread,
Mar 5, 2015, 9:39:56 PM3/5/15
to revie...@googlegroups.com
Jonathan,

Unfortunately, I don't see anything immediately wrong. This will probably require some deeper debugging on your side.

-David

Jonathan Anderson

unread,
Mar 5, 2015, 9:42:27 PM3/5/15
to revie...@googlegroups.com
Thanks for the reply.

Any tips on how to debug this problem.

David Trowbridge

unread,
Mar 5, 2015, 10:10:23 PM3/5/15
to revie...@googlegroups.com
Probably the first thing is to add some additional logging to reviewboard/hostingsvcs/bitbucket.py, especially around the get_file_exists method.

-David
On Thu, Mar 5, 2015 at 6:42 PM Jonathan Anderson <jona...@webessenceonline.com> wrote:
Thanks for the reply.

Any tips on how to debug this problem.

--
Reply all
Reply to author
Forward
0 new messages