Re: Getting 500 error trying to access review
I was able to remount my git repository on the reviewboard server, and things appear to be back to normal. Thanks! Looks like I'll need to figure out a more persistent way to mount my repo directory. On Friday, June 12, 2015 at 5:08:31 PM UTC-7, Jonathan Anderson wrote: I did not realize that raise SCMError(_('Unable to retrieve information from ' had the GIT repository clipped off of the end until looking at this error again in the actual server logs. I think my remote directory setup may have gotten wiped out somehow. Thanks for the tip. On Friday, June 12, 2015 at 4:41:27 PM UTC-7, Christian Hammond wrote: Hi Jonathan, Sounds like trouble communicating with the Git repository. Are you able to get into the administration UI, and can you show me the repository configuration? Unfortunately, the error output isn't handling a so-called lazy localized string properly, hence the functional.__proxy__ stuff. Christian -- Christian Hammond - chri...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Jonathan Anderson physics...@gmail.com Reply: revie...@googlegroups.com revie...@googlegroups.com Date: June 12, 2015 at 4:39:48 PM To: revie...@googlegroups.com revie...@googlegroups.com Subject: Getting 500 error trying to access review My server got rebooted last night, and since coming back up, I've been getting 500's whenever trying to visit a review e.g. /r/100 Not sure where to troubleshoot this. Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py, line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/accounts/decorators.py, line 23, in _check return view_func(*args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/site/decorators.py, line 35, in _check return view_func(request, local_site=local_site, *args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/views.py, line 713, in review_detail 'screenshots': screenshots, File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/context.py, line 95, in make_review_request_context upload_diff_form = UploadDiffForm(review_request, request=request) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/forms.py, line 95, in __init__ data, *args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/diffviewer/forms.py, line 41, in __init__ if self.repository.get_scmtool().get_diffs_use_absolute_paths(): File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/models.py, line 230, in get_scmtool return cls(self) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/git.py, line 84, in __init__ repository.encoding, local_site_name) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/git.py, line 402, in __init__ raise SCMError(_('Unable to retrieve information from ' SCMError: django.utils.functional.__proxy__ object at 0x7fa808065f90 WSGIRequest path:/r/100/, GET:QueryDict: {}, POST:QueryDict: {}, COOKIES:{'csrftoken': 'TDZtnWvpEESqiXGvRfAKyb505nQBFytK', 'rbsessionid': 'yg7lcom90mgbsqc83p3ibvkqwcrrx0jz'}, META:{'DOCUMENT_ROOT': '/var/www/cr/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=TDZtnWvpEESqiXGvRfAKyb505nQBFytK; rbsessionid=yg7lcom90mgbsqc83p3ibvkqwcrrx0jz', 'HTTP_HOST': 'codereview', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36', u'LOCAL_SITE': None, 'PATH_INFO': u'/r/100/', 'PATH_TRANSLATED': '/var/www/cr/htdocs/reviewboard.wsgi/r/100/', 'QUERY_STRING': '', 'REMOTE_ADDR': '10.105.10.193', 'REMOTE_PORT': '9855', 'REQUEST_METHOD': 'GET
Getting 500 error trying to access review
My server got rebooted last night, and since coming back up, I've been getting 500's whenever trying to visit a review e.g. /r/100 Not sure where to troubleshoot this. Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py, line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/accounts/decorators.py, line 23, in _check return view_func(*args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/site/decorators.py, line 35, in _check return view_func(request, local_site=local_site, *args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/views.py, line 713, in review_detail 'screenshots': screenshots, File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/context.py, line 95, in make_review_request_context upload_diff_form = UploadDiffForm(review_request, request=request) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/forms.py, line 95, in __init__ data, *args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/diffviewer/forms.py, line 41, in __init__ if self.repository.get_scmtool().get_diffs_use_absolute_paths(): File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/models.py, line 230, in get_scmtool return cls(self) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/git.py, line 84, in __init__ repository.encoding, local_site_name) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/git.py, line 402, in __init__ raise SCMError(_('Unable to retrieve information from ' SCMError: django.utils.functional.__proxy__ object at 0x7fa808065f90 WSGIRequest path:/r/100/, GET:QueryDict: {}, POST:QueryDict: {}, COOKIES:{'csrftoken': 'TDZtnWvpEESqiXGvRfAKyb505nQBFytK', 'rbsessionid': 'yg7lcom90mgbsqc83p3ibvkqwcrrx0jz'}, META:{'DOCUMENT_ROOT': '/var/www/cr/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=TDZtnWvpEESqiXGvRfAKyb505nQBFytK; rbsessionid=yg7lcom90mgbsqc83p3ibvkqwcrrx0jz', 'HTTP_HOST': 'codereview', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36', u'LOCAL_SITE': None, 'PATH_INFO': u'/r/100/', 'PATH_TRANSLATED': '/var/www/cr/htdocs/reviewboard.wsgi/r/100/', 'QUERY_STRING': '', 'REMOTE_ADDR': '10.105.10.193', 'REMOTE_PORT': '9855', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/r/100/', 'SCRIPT_FILENAME': '/var/www/cr/htdocs/reviewboard.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '10.105.0.107', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'codereview', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': 'addressApache/2.2.22 (Ubuntu) Server at codereview Port 80/address\n', 'SERVER_SOFTWARE': 'Apache/2.2.22 (Ubuntu)', u'USERNAME': u'janderson', u'USER_EMAIL': u'jander...@quosal.com', 'mod_wsgi.application_group': 'cr|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.queue_start': '1434152055397694', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 4), 'wsgi.errors': mod_wsgi.Log object at 0x7fa816ffa5f0, 'wsgi.file_wrapper': built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fa816a46288, 'wsgi.input': mod_wsgi.Input object at 0x7fa816a3f3b0, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)} -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Getting 500 error trying to access review
I did not realize that raise SCMError(_('Unable to retrieve information from ' had the GIT repository clipped off of the end until looking at this error again in the actual server logs. I think my remote directory setup may have gotten wiped out somehow. Thanks for the tip. On Friday, June 12, 2015 at 4:41:27 PM UTC-7, Christian Hammond wrote: Hi Jonathan, Sounds like trouble communicating with the Git repository. Are you able to get into the administration UI, and can you show me the repository configuration? Unfortunately, the error output isn't handling a so-called lazy localized string properly, hence the functional.__proxy__ stuff. Christian -- Christian Hammond - chri...@beanbaginc.com javascript: Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Jonathan Anderson physics...@gmail.com javascript: Reply: revie...@googlegroups.com javascript: revie...@googlegroups.com javascript: Date: June 12, 2015 at 4:39:48 PM To: revie...@googlegroups.com javascript: revie...@googlegroups.com javascript: Subject: Getting 500 error trying to access review My server got rebooted last night, and since coming back up, I've been getting 500's whenever trying to visit a review e.g. /r/100 Not sure where to troubleshoot this. Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py, line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/accounts/decorators.py, line 23, in _check return view_func(*args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/site/decorators.py, line 35, in _check return view_func(request, local_site=local_site, *args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/views.py, line 713, in review_detail 'screenshots': screenshots, File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/context.py, line 95, in make_review_request_context upload_diff_form = UploadDiffForm(review_request, request=request) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/reviews/forms.py, line 95, in __init__ data, *args, **kwargs) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/diffviewer/forms.py, line 41, in __init__ if self.repository.get_scmtool().get_diffs_use_absolute_paths(): File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/models.py, line 230, in get_scmtool return cls(self) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/git.py, line 84, in __init__ repository.encoding, local_site_name) File /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/scmtools/git.py, line 402, in __init__ raise SCMError(_('Unable to retrieve information from ' SCMError: django.utils.functional.__proxy__ object at 0x7fa808065f90 WSGIRequest path:/r/100/, GET:QueryDict: {}, POST:QueryDict: {}, COOKIES:{'csrftoken': 'TDZtnWvpEESqiXGvRfAKyb505nQBFytK', 'rbsessionid': 'yg7lcom90mgbsqc83p3ibvkqwcrrx0jz'}, META:{'DOCUMENT_ROOT': '/var/www/cr/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=TDZtnWvpEESqiXGvRfAKyb505nQBFytK; rbsessionid=yg7lcom90mgbsqc83p3ibvkqwcrrx0jz', 'HTTP_HOST': 'codereview', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36', u'LOCAL_SITE': None, 'PATH_INFO': u'/r/100/', 'PATH_TRANSLATED': '/var/www/cr/htdocs/reviewboard.wsgi/r/100/', 'QUERY_STRING': '', 'REMOTE_ADDR': '10.105.10.193', 'REMOTE_PORT': '9855', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/r/100/', 'SCRIPT_FILENAME': '/var/www/cr/htdocs/reviewboard.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '10.105.0.107', 'SERVER_ADMIN': '[no address
Re: Diffing between revisions is unreliable.
Yes, the differences are changes that I made in patch 2, and they show up when viewing orig---2 On Tuesday, March 10, 2015 at 5:38:36 PM UTC-7, David Trowbridge wrote: Just to confirm, the differences you see starting at line 100 are changes that you made in the patch uploaded as r2? We explicitly don't highlight differences that are only due to upstream changes in the files and not changed hunks in the patch. -David On Tue, Mar 10, 2015 at 4:55 PM Jonathan Anderson physics...@gmail.com javascript: wrote: I am using ReviewBoard 2.0.12 I posted a code review using with 'rbt post', making changes to multiple files. Subsequently, I updated two of the files and posted a second revision with 'rbt post -r 33'. The CR now has 3 versions of each file: orig---1---2 Selecting orig---1 shows the correct version 1 diff. Selecting orig---2 shows the correct version 2 diff. But 1---2 only shows changes to one of the two files I changed. For the other file, it says that only whitespace changes were made. Manually showing more lines to reveal the file shows that both sides have the correct (different) versions of the file, but there is no highlighting. What information can I provide to diagnose this issue? Thanks, Jonathan Anderson Quosal LLC As you can see, the file below says the diff only contains whitespace changes, but at line 100, the files diverge. https://lh5.googleusercontent.com/-lQ7H3LOm3N4/VP-Dt_zyT3I/AP8/os5qt-Eb6yE/s1600/Whitespace%2BOnly.PNG https://lh5.googleusercontent.com/-tbUvwXHMq7U/VP-DxJb9FeI/AQE/0Tpfw26bXww/s1600/Diverging%2Bcontent.PNG -- 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 javascript:. For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Diffing between revisions is unreliable.
I am using ReviewBoard 2.0.12 I posted a code review using with 'rbt post', making changes to multiple files. Subsequently, I updated two of the files and posted a second revision with 'rbt post -r 33'. The CR now has 3 versions of each file: orig---1---2 Selecting orig---1 shows the correct version 1 diff. Selecting orig---2 shows the correct version 2 diff. But 1---2 only shows changes to one of the two files I changed. For the other file, it says that only whitespace changes were made. Manually showing more lines to reveal the file shows that both sides have the correct (different) versions of the file, but there is no highlighting. What information can I provide to diagnose this issue? Thanks, Jonathan Anderson Quosal LLC As you can see, the file below says the diff only contains whitespace changes, but at line 100, the files diverge. https://lh5.googleusercontent.com/-lQ7H3LOm3N4/VP-Dt_zyT3I/AP8/os5qt-Eb6yE/s1600/Whitespace%2BOnly.PNG https://lh5.googleusercontent.com/-tbUvwXHMq7U/VP-DxJb9FeI/AQE/0Tpfw26bXww/s1600/Diverging%2Bcontent.PNG -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Posting to reviewboard fails: Got API Error 207 (HTTP code 400): The file was not found in the repository.
Thanks for the reply. Any tips on how to debug this problem. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Posting to reviewboard fails: Got API Error 207 (HTTP code 400): The file was not found in the repository.
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: x, repository_plan: personal, bug_tracker_use_hosting: true} Thank you for the response. Let me know if I am missing something. On Friday, February 27, 2015 at 3:51:21 PM UTC-8, David Trowbridge wrote: Hi, Can you share what the repository configuration looks like in the Review Board admin? -David On Thu Feb 26 2015 at 7:43:00 PM Jonathan Anderson jona...@webessenceonline.com javascript: wrote: 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/x/application.git, Base path: , Supports changesets: False Making HTTP GET request to http://ec2-.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-x.us-west-2.compute.amazonaws.com:80/api/validation/diffs/ Making HTTP POST request to http://ec2-xx.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) -- 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 javascript:. For more options, visit https://groups.google.com/d/optout. -- 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
Posting to reviewboard fails: Got API Error 207 (HTTP code 400): The file was not found in the repository.
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/x/application.git, Base path: , Supports changesets: False Making HTTP GET request to http://ec2-.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-x.us-west-2.compute.amazonaws.com:80/api/validation/diffs/ Making HTTP POST request to http://ec2-xx.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) -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: The specified diff file could not be parsed.
Mounting the git repository using NFS, and accessing it directly using the Path field in setup and clearing out the Mirror Path, my issue appears to be resolved. Thanks! On Monday, February 16, 2015 at 10:53:02 AM UTC-8, Jonathan Anderson wrote: Now that I know what was wrong with my configuration, I was able to find the appropriate documentation. Not sure whether I should have seen this going through the first time and just missed it. https://www.reviewboard.org/docs/manual/1.5/admin/management/repositories/#local-clone https://www.google.com/url?q=https%3A%2F%2Fwww.reviewboard.org%2Fdocs%2Fmanual%2F1.5%2Fadmin%2Fmanagement%2Frepositories%2F%23local-clonesa=Dsntz=1usg=AFQjCNFMWnooWT7Bc412w3E3ZD814AjvCw On Monday, February 16, 2015 at 10:31:14 AM UTC-8, Jonathan Anderson wrote: It's occurring to me that right now, I have a bare repository and intend to keep it that way if I can. If I were to have the reviewboard instance accessing git directly through the file system, would it need a working directory in order to function? Is there a way I could set up a git repo on the reviewboard server, tracking our remote, and simply have it fetch when it needs to verify any files? On Monday, February 16, 2015 at 9:45:27 AM UTC-8, Jonathan Anderson wrote: It sounds like this is a documentation issue then. I don't believe that, in the process of setting up our reviewboard, there was an indication that the repository needed to be hosted locally. In fact, the repository settings in the UI suggested otherwise. I'll give this a try and update back here. On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond wrote: Unfortunately, that configuration can't work, unless there's also a raw file URL field that's filled out. Git's protocol has no ability to fetch the kind of information we need remotely, including individual files. For Git, it's a requirement to either host the repository on the Review Board server (or through something like an NFS mount), or to use a service like GitWeb. GitWeb is the recommended route right now (though we're working on a service to help make all this easier). If the other changes were successfully posting, my guess is that they were introducing new files, which doesn't require communication with the repository. Otherwise, there's no way that the file verification could have worked with a remote Git path. Christian -- Christian Hammond - chri...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Liam Reimers liam.r...@gmail.com Reply: Liam Reimers liam.r...@gmail.com Date: February 13, 2015 at 3:40:54 PM To: revie...@googlegroups.com revie...@googlegroups.com Cc: liam.r...@gmail.com liam.r...@gmail.com, chri...@beanbaginc.com chri...@beanbaginc.com Subject: Re: The specified diff file could not be parsed. Ah, I just saw part of your error: Not a git repository: 'None.' How is your repository configured in Review Board? Name - Repository Hosting - None (custom) Type - Git Path - git@server:path/repo.git However, note that the client can post a review request using one invocation (with HEAD~) and not the other, so it would seem that the repo is configured correctly? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: The specified diff file could not be parsed.
It sounds like this is a documentation issue then. I don't believe that, in the process of setting up our reviewboard, there was an indication that the repository needed to be hosted locally. In fact, the repository settings in the UI suggested otherwise. I'll give this a try and update back here. On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond wrote: Unfortunately, that configuration can't work, unless there's also a raw file URL field that's filled out. Git's protocol has no ability to fetch the kind of information we need remotely, including individual files. For Git, it's a requirement to either host the repository on the Review Board server (or through something like an NFS mount), or to use a service like GitWeb. GitWeb is the recommended route right now (though we're working on a service to help make all this easier). If the other changes were successfully posting, my guess is that they were introducing new files, which doesn't require communication with the repository. Otherwise, there's no way that the file verification could have worked with a remote Git path. Christian -- Christian Hammond - chri...@beanbaginc.com javascript: Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Liam Reimers liam.r...@gmail.com javascript: Reply: Liam Reimers liam.r...@gmail.com javascript: Date: February 13, 2015 at 3:40:54 PM To: revie...@googlegroups.com javascript: revie...@googlegroups.com javascript: Cc: liam.r...@gmail.com javascript: liam.r...@gmail.com javascript:, chri...@beanbaginc.com javascript: chri...@beanbaginc.com javascript: Subject: Re: The specified diff file could not be parsed. Ah, I just saw part of your error: Not a git repository: 'None.' How is your repository configured in Review Board? Name - Repository Hosting - None (custom) Type - Git Path - git@server:path/repo.git However, note that the client can post a review request using one invocation (with HEAD~) and not the other, so it would seem that the repo is configured correctly? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: The specified diff file could not be parsed.
Now that I know what was wrong with my configuration, I was able to find the appropriate documentation. Not sure whether I should have seen this going through the first time and just missed it. https://www.reviewboard.org/docs/manual/1.5/admin/management/repositories/#local-clone On Monday, February 16, 2015 at 10:31:14 AM UTC-8, Jonathan Anderson wrote: It's occurring to me that right now, I have a bare repository and intend to keep it that way if I can. If I were to have the reviewboard instance accessing git directly through the file system, would it need a working directory in order to function? Is there a way I could set up a git repo on the reviewboard server, tracking our remote, and simply have it fetch when it needs to verify any files? On Monday, February 16, 2015 at 9:45:27 AM UTC-8, Jonathan Anderson wrote: It sounds like this is a documentation issue then. I don't believe that, in the process of setting up our reviewboard, there was an indication that the repository needed to be hosted locally. In fact, the repository settings in the UI suggested otherwise. I'll give this a try and update back here. On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond wrote: Unfortunately, that configuration can't work, unless there's also a raw file URL field that's filled out. Git's protocol has no ability to fetch the kind of information we need remotely, including individual files. For Git, it's a requirement to either host the repository on the Review Board server (or through something like an NFS mount), or to use a service like GitWeb. GitWeb is the recommended route right now (though we're working on a service to help make all this easier). If the other changes were successfully posting, my guess is that they were introducing new files, which doesn't require communication with the repository. Otherwise, there's no way that the file verification could have worked with a remote Git path. Christian -- Christian Hammond - chri...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Liam Reimers liam.r...@gmail.com Reply: Liam Reimers liam.r...@gmail.com Date: February 13, 2015 at 3:40:54 PM To: revie...@googlegroups.com revie...@googlegroups.com Cc: liam.r...@gmail.com liam.r...@gmail.com, chri...@beanbaginc.com chri...@beanbaginc.com Subject: Re: The specified diff file could not be parsed. Ah, I just saw part of your error: Not a git repository: 'None.' How is your repository configured in Review Board? Name - Repository Hosting - None (custom) Type - Git Path - git@server:path/repo.git However, note that the client can post a review request using one invocation (with HEAD~) and not the other, so it would seem that the repo is configured correctly? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: The specified diff file could not be parsed.
It's occurring to me that right now, I have a bare repository and intend to keep it that way if I can. If I were to have the reviewboard instance accessing git directly through the file system, would it need a working directory in order to function? Is there a way I could set up a git repo on the reviewboard server, tracking our remote, and simply have it fetch when it needs to verify any files? On Monday, February 16, 2015 at 9:45:27 AM UTC-8, Jonathan Anderson wrote: It sounds like this is a documentation issue then. I don't believe that, in the process of setting up our reviewboard, there was an indication that the repository needed to be hosted locally. In fact, the repository settings in the UI suggested otherwise. I'll give this a try and update back here. On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond wrote: Unfortunately, that configuration can't work, unless there's also a raw file URL field that's filled out. Git's protocol has no ability to fetch the kind of information we need remotely, including individual files. For Git, it's a requirement to either host the repository on the Review Board server (or through something like an NFS mount), or to use a service like GitWeb. GitWeb is the recommended route right now (though we're working on a service to help make all this easier). If the other changes were successfully posting, my guess is that they were introducing new files, which doesn't require communication with the repository. Otherwise, there's no way that the file verification could have worked with a remote Git path. Christian -- Christian Hammond - chri...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Liam Reimers liam.r...@gmail.com Reply: Liam Reimers liam.r...@gmail.com Date: February 13, 2015 at 3:40:54 PM To: revie...@googlegroups.com revie...@googlegroups.com Cc: liam.r...@gmail.com liam.r...@gmail.com, chri...@beanbaginc.com chri...@beanbaginc.com Subject: Re: The specified diff file could not be parsed. Ah, I just saw part of your error: Not a git repository: 'None.' How is your repository configured in Review Board? Name - Repository Hosting - None (custom) Type - Git Path - git@server:path/repo.git However, note that the client can post a review request using one invocation (with HEAD~) and not the other, so it would seem that the repo is configured correctly? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
The specified diff file could not be parsed.
I am getting the following error whenever I attempt to rbt post a change that contains updates to an existing file. Posting a change containing a single new file works as expected. I have attached a fiddler archive with the reviewboard request. I am using an ssh git repository. I am accessing the reviewboard instance from Windows 8.1 using RBTools for Windows. $ rbt post --debug RBTools 0.7 Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] Running on Windows-8-6.2.9200 Home = C:\Users\janderson\AppData\Roaming Current directory = c:\work Checking for a Subversion repository... Unable to execute svn help: skipping SVN 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.test.merge Running: git config --get branch.test.remote Running: git config --get remote.origin.url repository info: Path: git@q-git:/opt/git/quosal.git, Base path: , Supports changesets: False Making HTTP GET request to http://codereview/api/ Cached response for HTTP GET http://codereview/api/ expired and was modified Running: git rev-parse refs/heads/test Running: git merge-base 7c9e3a6183f52cd33e4a203c6d53b46b6748c7af origin/master Running: git rev-parse dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4 Running: git status --porcelain --untracked-files=no Running: git diff --no-color --full-index --ignore-submodules -M --no-ext-diff dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4..7c9e3a6183f52cd33e4a203c6d53b46b6748c7af Making HTTP GET request to http://codereview/api/validation/ Cached response for HTTP GET http://codereview/api/validation/ expired and was not modified Making HTTP GET request to http://codereview/api/validation/diffs/ Cached response for HTTP GET http://codereview/api/validation/diffs/ expired and was modified Making HTTP POST request to http://codereview/api/validation/diffs/ Got API Error 224 (HTTP code 400): The specified diff file could not be parsed. Error data: {u'stat': u'fail', u'reason': ufatal: Not a git repository: 'None'\n, u'err': {u'msg': u'The specified diff file could not be parsed.', u'code': 224}} Traceback (most recent call last): File c:/Program Files (x86)/RBTools/Python27/Scripts/rbt-script.py, line 8, in module load_entry_point('RBTools==0.7', 'console_scripts', 'rbt')() File c:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-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-py2.7.egg\rbtools\commands\__init__.py, line 538, in run_from_argv exit_code = self.main(*args) or 0 File c:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\post.py, line 662, in main (msg_prefix, e)) rbtools.commands.CommandError: Error validating diff The specified diff file could not be parsed. (HTTP 400, API Error 224) -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. Reviewboard Diff File Could Not Be Parsed.saz Description: Binary data