I updated hg to hg 2.9 on ubuntu, but I was still getting the same problem.
I looked at the .log file and error does seem to be related to bitbucket
(where the repo is hosted)

*2014-02-13 05:43:21,606 - DEBUG -  - Initialized HgWebClient with
url=u'https://ka...@bitbucket.org/kapil/test-reviewboard
<https://ka...@bitbucket.org/kapil/test-reviewboard>', username=u''*
2014-02-13 05:43:21,607 - DEBUG -  - Initialized HgWebClient with url=u'
https://ka...@bitbucket.org/kapil//test-reviewboard', username=u''
2014-02-13 05:43:21,608 - DEBUG -  - Initialized HgWebClient with url=u'
https://ka...@bitbucket.org/kapil//test-reviewboard', username=u''
2014-02-13 05:43:21,620 - DEBUG -  - Initialized HgWebClient with url=u'
https://ka...@bitbucket.org/kapil//test-reviewboard', username=u''
2014-02-13 05:43:21,620 - DEBUG -  - DiffParser.parse: Beginning parse of
diff, size = 1445593
2014-02-13 05:43:32,105 - DEBUG -  - DiffParser.parse: Finished parsing
diff.

*2014-02-13 05:43:32,228 - ERROR - None - kapil -
/api/review-requests/56/diffs/ - Error uploading new diff: error*

Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/webapi/resources.py",
line 2115, in create
    request.FILES.get('parent_diff_path'))
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/reviews/forms.py",
line 309, in create
    history)
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/diffviewer/forms.py",
line 67, in create
    request=self.request)
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/diffviewer/managers.py",
line 82, in create_from_upload
    save=save)
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/diffviewer/managers.py",
line 103, in create_from_data
    check_existence=(not parent_diff_file_contents)))
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/diffviewer/managers.py",
line 213, in _process_files
    request=request))):
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/scmtools/models.py",
line 190, in get_file_exists
    base_commit_id, request)
  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/scmtools/models.py",
line 310, in _get_file_exists_uncached
    base_commit_id=base_commit_id)
*  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py",
line 161, in get_file_exists*
*    self._api_get_src(repository, path, revision, base_commit_id)*
*  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py",
line 198, in _api_get_src*
*    return self._api_get(url, raw_content=True)*
*  File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.20-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py",
line 249, in _api_get*
*    raise Exception(e.read())*
Exception: error
~

I noticed that in first four lines, it does not seem to specify the right
username for bitbucket repo. Could this be a problem? I have specified the
right username while adding this repository to review-board site though.

Thanks

--Kapil



On Wed, Feb 12, 2014 at 4:37 PM, David Trowbridge <trowb...@gmail.com>wrote:

> I think it's actually due to an old hg. You said in your previous email
> that you were using 2.0.2. Can you upgrade to a more recent release?
>
> -David
>
>
> On Wed, Feb 12, 2014 at 11:22 AM, Christian Hammond 
> <chip...@chipx86.com>wrote:
>
>> The "error" is coming from whatever's serving up your Mercurial repo that
>> Review Board is talking to. Check your reviewboard.log file and see if
>> anything stands out.
>>
>> Christian
>>
>> --
>> Christian Hammond - chip...@chipx86.com
>> Review Board - http://www.reviewboard.org
>> Beanbag, Inc. - http://www.beanbaginc.com
>>
>>
>> On Wed, Feb 12, 2014 at 7:18 AM, Kapil Anand <kapilana...@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> I apologize for posting it again, I think my previous post got buried
>>> down.
>>>
>>>
>>> I am getting a failure while uploading diff file using rbt post command.
>>> I have configured a bitbucket repo on ReviewBoard. The server is running on
>>> my local host.
>>>
>>>
>>> My .reviewboardrc looks as follows:
>>>
>>> REVIEWBOARD_URL = "http://localhost";
>>> REPOSITORY = "test-repo"
>>> BRANCH = "master"
>>>
>>> Configurations while adding Repo on ReviewBoard
>>>
>>> Name: test-repo
>>> Hosting Service: bitbucket
>>> Account: ka...@umd.edu
>>> Repo Type: Mercurial
>>> Repo Plan: Personal
>>> Repo Name: 
>>> test-reviewboard<https://ka...@bitbucket.org/kapil/test-reviewboard>
>>>
>>> BugTracker: No
>>> Access Control: kapil
>>>
>>> Mercurial Version: 2.0.2
>>>
>>> Command: rbt post --revision-range=30:51 --username=XXX --password=YYY
>>> -d --repository-type=mercurial
>>>
>>> Output:
>>> DEBUG:root:Checking for a Mercurial repository...
>>> DEBUG:root:Running: hg showconfig
>>> DEBUG:root:Running: hg root
>>> DEBUG:root:Running: hg svn info
>>> DEBUG:root:Command exited with rc 255: ['hg', 'svn', 'info']
>>> hg: unknown command 'svn'
>>> Mercurial Distributed SCM
>>>
>>> basic commands:
>>>
>>>  add        add the specified files on the next commit
>>>  annotate   show changeset information by line for each file
>>>  clone      make a copy of an existing repository
>>>  commit     commit the specified files or all outstanding changes
>>>  diff       diff repository (or selected files)
>>>  export     dump the header and diffs for one or more changesets
>>>  forget     forget the specified files on the next commit
>>>  init       create a new repository in the given directory
>>>  log        show revision history of entire repository or files
>>>  merge      merge working directory with another revision
>>>  pull       pull changes from the specified source
>>>  push       push changes to the specified destination
>>>  remove     remove the specified files on the next commit
>>>  serve      start stand-alone webserver
>>>  status     show changed files in the working directory
>>>  summary    summarize working directory state
>>>  update     update working directory (or switch revisions)
>>>
>>> use "hg help" for the full list of commands or "hg -v" for details
>>> ---
>>> DEBUG:root:Using candidate path 'default': 'https://ka...@bitbucket.org/
>>> kapil/test-reviewboard'
>>> DEBUG:root:repository info: Path: https://ka...@bitbucket.org/
>>> kapil/test-reviewboard, Base path: , Supports changesets: False
>>> DEBUG:root:Making HTTP GET request to http://localhost/api/
>>> DEBUG:root:Making HTTP GET request to http://localhost/api/info/
>>> DEBUG:root:Running: hg parents --hidden -r 0
>>> DEBUG:root:Command exited with rc 255: ['hg', 'parents', '--hidden',
>>> '-r', '0']
>>> hg parents [-r REV] [FILE]
>>>
>>> show the parents of the working directory or revision
>>>
>>> options:
>>>
>>>  -r --rev REV           show parents of the specified revision
>>>     --style STYLE       display using template map file
>>>     --template TEMPLATE display with template
>>>
>>> use "hg help parents" to show the full help text
>>> ---
>>> DEBUG:root:Running: hg diff -r 30 -r 51 --config
>>> extensions.rbtoolsnormalize=/usr/local/lib/python2.7/dist-
>>> packages/RBTools-0.5.3-py2.7.egg/rbtools/helpers/hgext.py
>>> DEBUG:root:Making HTTP GET request to http://localhost/api/review-
>>> requests/
>>> DEBUG:root:Making HTTP POST request to http://localhost/api/review-
>>> requests/
>>> DEBUG:root:Making HTTP GET request to http://localhost/api/review-
>>> requests/50/diffs/
>>> DEBUG:root:Making HTTP POST request to http://localhost/api/review-
>>> requests/50/diffs/
>>> DEBUG:root:Got API Error 105 (HTTP code 400): One or more fields had
>>> errors
>>> DEBUG:root:Error data: {u'fields': {u'path': [u'error']}, u'stat':
>>> u'fail', u'err': {u'msg': u'One or more fields had errors', u'code': 105}}
>>> Traceback (most recent call last):
>>>   File "/usr/local/bin/rbt", line 9, in <module>
>>>     load_entry_point('RBTools==0.5.3', 'console_scripts', 'rbt')()
>>>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-
>>> py2.7.egg/rbtools/commands/main.py", line 127, in main
>>>     command.run_from_argv([RB_MAIN] + args)
>>>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-
>>> py2.7.egg/rbtools/commands/__init__.py", line 158, in run_from_argv
>>>     exit_code = self.main(*args) or 0
>>>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-
>>> py2.7.egg/rbtools/commands/post.py", line 659, in main
>>>     submit_as=self.options.submit_as)
>>>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-
>>> py2.7.egg/rbtools/commands/post.py", line 534, in post_request
>>>     raise CommandError('\n'.join(error_msg))
>>> rbtools.commands.CommandError: Error uploading diff
>>>
>>>
>>> One or more fields had errors (HTTP 400, API Error 105)
>>>
>>>     path: error
>>>
>>> Your review request still exists, but the diff is not attached.
>>>
>>>
>>> Not sure what the error is. When I try to upload the diff file
>>> (generated by hg diff or rbt diff) manually onto sever, it again gives an
>>> error (but does not give any message).
>>>
>>> Thanks
>>>
>>> ---Kapil
>>>
>>>  --
>>> 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/groups/opt_out.
>>>
>>
>>  --
>> 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/groups/opt_out.
>>
>
>  --
> 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 a topic in the
> Google Groups "reviewboard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/reviewboard/Q3TdIVpMLa8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to