the root cause is subvertpy <http://samba.org/~jelmer/subvertpy/> ,and when 
we uninstall it , and use pysvn instead, everything is OK. :)


在 2014年9月11日星期四UTC+8上午4时29分49秒,David Trowbridge写道:
>
> This looks like the credentials that are configured in the review board 
> admin for that repository aren't correct.
>
> -David
>
> On Tue, Sep 9, 2014 at 3:31 AM, Magic Chen <magic...@gmail.com 
> <javascript:>> wrote:
>
>>
>> Dear all,
>>
>> We got another problem. when we using RBTools 0.62 , the review request 
>> could be generated, while the diff file could not be uploaded to RB 2.0.6. 
>> the debug information were attached as below.
>>
>> >>> RBTools 0.6.2
>> >>> Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit 
>> (Intel)]
>> >>> Running on Windows-post2008Server-6.2.9200
>> >>> Home = C:\Users\mxc3060\AppData\Roaming
>> >>> Current directory = D:\Source\3rd
>> >>> Checking for a Subversion repository...
>> >>> Running: svn info --non-interactive
>> >>> Running: diff --version
>> >>> repository info: Path: http://172.31.160.219:3199/svn/3rd, Base 
>> path: /, Supports changesets: False
>> >>> Making HTTP GET request to http://172.31.159.45/reviewboard/api/
>> >>> Running: svn info --non-interactive
>> >>> Running: diff --version
>> >>> repository info: Path: http://172.31.160.219:3199/svn/3rd, Base 
>> path: /, Supports changesets: False
>> >>> Running: svn status --ignore-externals
>> >>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl/phhs/OrderActionImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl/phhs
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action
>> >>> Running: svn info 07_PHHS_Code/3rd.console/src/main/java/com/yum/third
>> >>> Running: svn info 07_PHHS_Code/3rd.console/src/main/java/com/yum
>> >>> Running: svn info 07_PHHS_Code/3rd.console/src/main/java/com
>> >>> Running: svn info 07_PHHS_Code/3rd.console/src/main/java
>> >>> Running: svn info 07_PHHS_Code/3rd.console/src/main
>> >>> Running: svn info 07_PHHS_Code/3rd.console/src
>> >>> Running: svn info 07_PHHS_Code/3rd.console
>> >>> Running: svn info 07_PHHS_Code
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/service/ITddIosOrderServiceImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/service
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main/java/com/yum
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main/java/com
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main/java
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src
>> >>> Running: svn info 07_PHHS_Code/3rd.service
>> >>> Running: svn info 07_PHHS_Code
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/tdd/util/TddUtil.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/tdd/util
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/tdd
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main/java/com/yum
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main/java/com
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main/java
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src/main
>> >>> Running: svn info 07_PHHS_Code/3rd.service/src
>> >>> Running: svn info 07_PHHS_Code/3rd.service
>> >>> Running: svn info 07_PHHS_Code
>> >>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE 
>> --no-diff-deleted
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl/phhs/OrderActionImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl/phhs/OrderActionImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl/phhs/OrderActionImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/service/ITddIosOrderServiceImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/service/ITddIosOrderServiceImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/service/ITddIosOrderServiceImpl.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/tdd/util/TddUtil.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/tdd/util/TddUtil.java
>> >>> Running: svn info 
>> 07_PHHS_Code/3rd.service/src/main/java/com/yum/services/third/tdd/util/TddUtil.java
>> >>> Making HTTP GET request to 
>> http://172.31.159.45/reviewboard/api/review-requests/
>> >>> Making HTTP POST request to 
>> http://172.31.159.45/reviewboard/api/review-requests/
>> >>> Making HTTP GET request to 
>> http://172.31.159.45/reviewboard/api/review-requests/16/diffs/
>> >>> Making HTTP POST request to 
>> http://172.31.159.45/reviewboard/api/review-requests/16/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'/07_PHHS_Code/3rd.console/src/main/java/com/yum/third/action/impl/phhs/OrderActionImpl.java',
>>  
>> u'err': {u'msg': u'The file was not found in the repository.', u'code': 
>> 207}, u'revision': u'4'}
>> Traceback (most recent call last):
>>   File "C:\DevTools\Python27\Scripts\rbt-script.py", line 9, in <module>
>>     load_entry_point('RBTools==0.6.2', 'console_scripts', 'rbt')()
>>   File 
>> "C:\DevTools\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\c
>> ommands\main.py", line 134, in main
>>     command.run_from_argv([RB_MAIN, command_name] + args)
>>   File 
>> "C:\DevTools\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\c
>> ommands\__init__.py", line 416, in run_from_argv
>>     exit_code = self.main(*args) or 0
>>   File 
>> "C:\DevTools\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\c
>> ommands\post.py", line 784, in main
>>     submit_as=self.options.submit_as)
>>   File 
>> "C:\DevTools\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\c
>> ommands\post.py", line 551, in post_request
>>     raise CommandError(u'\n'.join(error_msg))
>> rbtools.commands.CommandError: Error uploading diff
>>
>>
>> The file was not found in the repository. (HTTP 400, API Error 207)
>>
>> Your review request still exists, but the diff is not attached.
>>
>> http://172.31.159.45/reviewboard/r/16/
>>
>>
>> And when we try to visit 
>> http://172.31.159.45/reviewboard/api/repositories/3/branches/?api_format=json,
>>  
>> we get a 500 error. we make sure that the user/password is correctly 
>> inputed.
>>
>> 2014-09-09 10:27:27,741 - INFO -  - Using 
>> reviewboard.scmtools.svn.subvertpy backend for SVN
>> 2014-09-09 10:27:27,750 - ERROR -  - Exception thrown for user admin at 
>> http://172.31.159.45/reviewboard/api/repositories/3/branches/?api_format=json
>>
>> ("OPTIONS of 'http://172.31.160.219:3199/svn/3rd': authorization failed: 
>> Could not authenticate to server: rejected Basic challenge (
>> http://172.31.160.219:3199)", 170001)
>> Traceback (most recent call last):
>>   File 
>> "/usr/lib/python2.6/site-packages/Django-1.6.6-py2.6.egg/django/core/handlers/base.py",
>>  
>> line 112, in get_response
>>     response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Django-1.6.6-py2.6.egg/django/views/decorators/cache.py",
>>  
>> line 52, in _wrapped_view_func
>>     response = view_func(request, *args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Django-1.6.6-py2.6.egg/django/views/decorators/vary.py",
>>  
>> line 19, in inner_func
>>     response = func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/resources.py",
>>  
>> line 494, in __call__
>>     request, method, view, api_format=api_format, *args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/resources.py",
>>  
>> line 565, in call_method_view
>>     return view(request, *args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py",
>>  
>> line 117, in _call
>>     return view_func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/decorators.py",
>>  
>> line 110, in _check
>>     return view_func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py",
>>  
>> line 117, in _call
>>     return view_func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/decorators.py",
>>  
>> line 31, in _check
>>     return webapi_login_required(view_func)(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py",
>>  
>> line 117, in _call
>>     return view_func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py",
>>  
>> line 138, in _checklogin
>>     return view_func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py",
>>  
>> line 117, in _call
>>     return view_func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/resources/repository_branches.py",
>>  
>> line 53, in get
>>     for branch in repository.get_branches():
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/scmtools/models.py",
>>  
>> line 290, in get_branches
>>     self.BRANCHES_CACHE_PERIOD)
>>   File 
>> "/usr/lib/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/cache/backend.py",
>>  
>> line 118, in cache_memoize
>>     data = lookup_callable()
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/scmtools/svn/__init__.py",
>>  
>> line 132, in get_branches
>>     raise SCMError(e)
>> SCMError: ("OPTIONS of 'http://172.31.160.219:3199/svn/3rd': 
>> authorization failed: Could not authenticate to server: rejected Basic 
>> challenge (http://172.31.160.219:3199)", 170001)
>>
>>
>> could anyone give us any advice about it? thx a lot.
>>
>>
>>
>>  -- 
>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>> ---
>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>> ---
>> Happy user? Let us know at http://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.
>>
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.

Reply via email to