Hi Christian, We use "post-review" for posting reviews while rbt attach and rbt publish to publish reviews. We had some issues in posting reviews using rbt in our setup we are using post-review command.
In the attached log file, post-review fails for file XYZ.cc but works fine ABC.cc. Have attached the output of post-review running with --debug. Please clarify what is going wrong. Regards, Hari On Thu, Sep 1, 2016 at 12:56 PM, Christian Hammond <christ...@beanbaginc.com> wrote: > Hi, > > How are you uploading the diffs? > > If you're using RBTools, can you show me a debug log (running with --debug)? > > Christian > > -- > Christian Hammond > President/CEO of Beanbag > Makers of Review Board > > On Wed, Aug 31, 2016 at 10:58 PM, Hari Prasad <pk.haripra...@gmail.com> > wrote: >> >> Hi, >> >> We are using ReviewBoard version 2.5.2. >> >> When raising review requests, only for some specific clearcase file rules, >> getting the error "Error uploading diff". >> >> Not sure why this error is happening for such rules. I doubled checked the >> file rule and its a valid rule. >> >> Is there any way to debug this error? >> >> Please clarify. >> >> -- >> 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. > > > -- > 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 a topic in the > Google Groups "reviewboard" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/reviewboard/js9ZQt1gGCY/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/d/optout. -- Best regards, Hari -- 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.
############################################################################################################ ['/cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/1\r'] post-review --revision-range='/cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/0;/cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/1;' --server='http://chn-reviewboard/reviewboard' --branch=default -g --username=hariprak --password=hariprak --target-people='hariprak' --summary='ALU12345678' --description=" ROOT CAUSE: test SOLUTION: test" --bugs-closed=ALU12345678 --debug DEBUG:root:Checking for a Bazaar repository... DEBUG:root:Checking for a CVS repository... DEBUG:root:Checking for a ClearCase repository... DEBUG:root:Running: cleartool pwv -short DEBUG:root:Running: diff --version DEBUG:root:Running: cleartool lsview -full -properties -cview DEBUG:root:Running: cleartool describe -short vob:. DEBUG:root:Running: cleartool pwv -root DEBUG:root:repository info: Path: /cm4/fsn, Base path: /cm4/fsn, Supports changesets: False DEBUG:root:Running: diff -uN /cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/0 /cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/1 DEBUG:root:Command exited with rc 1: ['diff', '-uN', '/cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/0', '/cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/1'] --- /cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/0 2016-05-24 13:43:08.000000000 +0530 +++ /cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/1 2016-05-24 14:22:50.000000000 +0530 @@ -1402,6 +1409,10 @@ char *serialNum, char *SubsLocId, char *SWVerPlnd, + char *plndCfgFile1, + char *plndCfgFile2, + char *dlCfgFile1, + char *dlCfgFile2, AdminState adminState ,int fecUpstreamInd //int fecDnstreamInd --- DEBUG:root:Running: cleartool describe -fmt %On /cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/0 DEBUG:root:Running: cleartool describe -fmt %On /cm4/fsn/app/asam/craft/new/apon/XYZ.cc@@/main/ahaa/ahab/1 DEBUG:root:Running: cleartool lsvob -long /cm4/fsn DEBUG:root:Repository's /cm4/fsn uuid is '90d0c2b7.7b4611cf.ba81.00:01:80:72:89:15' DEBUG:root:Matching repository uuid:90d0c2b7.7b4611cf.ba81.00:01:80:72:89:15 with path://cm4/fsn DEBUG:root:repository info: Path: //cm4/fsn, Base path: //cm4/fsn, Supports changesets: False Error uploading diff post_review_cmd failed !!! 135.249.3.76:61592 - - [01/Sep/2016 17:28:15] "HTTP/1.1 POST /" - 200 OK ############################################################################################################ ['/cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/1\r'] post-review --revision-range='/cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/0;/cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/1;' --server='http://chn-reviewboard/reviewboard' --branch=default -g --username=hariprak --password= --target-people='hariprak' --summary='ALU12345678' --description=" ROOT CAUSE: test SOLUTION: test" --bugs-closed=ALU12345678 --debug DEBUG:root:Checking for a Bazaar repository... DEBUG:root:Checking for a CVS repository... DEBUG:root:Checking for a ClearCase repository... DEBUG:root:Running: cleartool pwv -short DEBUG:root:Running: diff --version DEBUG:root:Running: cleartool lsview -full -properties -cview DEBUG:root:Running: cleartool describe -short vob:. DEBUG:root:Running: cleartool pwv -root DEBUG:root:repository info: Path: /cm4/fsn, Base path: /cm4/fsn, Supports changesets: False DEBUG:root:Running: diff -uN /cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/0 /cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/1 DEBUG:root:Command exited with rc 1: ['diff', '-uN', '/cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/0', '/cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/1'] --- /cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/0 2016-07-19 13:04:48.000000000 +0530 +++ /cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/1 2016-07-25 13:11:36.000000000 +0530 @@ -3722,6 +3746,7 @@ case SA_AID_PONONTBCTC: #endif case SA_AID_ONTUTIL: + case SA_AID_ONTCFGDLD: { // retError = idConv_convertIfIndex (ontIfIndex, // &asamSlotIndex, --- DEBUG:root:Running: cleartool describe -fmt %On /cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/0 DEBUG:root:Running: cleartool describe -fmt %On /cm4/fsn/app/asam/craft/new/apon/ABC.cc@@/main/ahaa/ahab/1 DEBUG:root:Running: cleartool lsvob -long /cm4/fsn DEBUG:root:Repository's /cm4/fsn uuid is '90d0c2b7.7b4611cf.ba81.00:01:80:72:89:15' DEBUG:root:Matching repository uuid:90d0c2b7.7b4611cf.ba81.00:01:80:72:89:15 with path://cm4/fsn DEBUG:root:repository info: Path: //cm4/fsn, Base path: //cm4/fsn, Supports changesets: False ['>>> RBTools 0.5', '>>> Python 2.7.1 (r271:86832, Jan 24 2011, 07:16:01) ', '[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]', '>>> Running on Linux-2.6.18-164.el5-x86_64-with-redhat-5.4-Final', '>>> Home = /home/hariprak', '>>> Current Directory = /cm4/fsn', '>>> Checking the repository type. Errors shown below are mostly harmless.', '>>> Finished checking the repository type.', '>>> HTTP GETting api/info/', '>>> HTTP GETting api/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/info/', '>>> Using the new web API', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/2/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/2/info/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/3/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/3/info/', '>>> Attempting to create review request on //cm4/fsn for None', ">>> HTTP POSTing to http://chn-reviewboard/reviewboard/api/review-requests/: {'repository': u'//cm4/fsn'}", '>>> Review request created', ">>> Attempting to set field 'target_people' to 'hariprak' for review request '415'", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'target_people': 'hariprak'}", ">>> Attempting to set field 'summary' to 'ALU12345678' for review request '415'", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'summary': 'ALU12345678'}", ">>> Attempting to set field 'branch' to 'default' for review request '415'", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'branch': 'default'}", ">>> Attempting to set field 'bugs_closed' to 'ALU12345678' for review request '415'", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'bugs_closed': 'ALU12345678'}", ">>> Attempting to set field 'description' to '", 'ROOT CAUSE:', 'test', '', 'SOLUTION:', "test' for review request '415'", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'description': '\\nROOT CAUSE:\\ntest\\n\\nSOLUTION:\\ntest'}", '>>> Uploading diff, size: 2025', ">>> HTTP POSTing to http://chn-reviewboard/reviewboard/api/review-requests/415/diffs/: {'basedir': u'//cm4/fsn'}", 'Review request #415 posted.', '', 'http://chn-reviewboard/reviewboard/r/415/', ''] >>> RBTools 0.5 >>> Python 2.7.1 (r271:86832, Jan 24 2011, 07:16:01) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] >>> Running on Linux-2.6.18-164.el5-x86_64-with-redhat-5.4-Final >>> Home = /home/hariprak >>> Current Directory = /cm4/fsn >>> Checking the repository type. Errors shown below are mostly harmless. >>> Finished checking the repository type. >>> HTTP GETting api/info/ >>> HTTP GETting api/ >>> HTTP GETting http://chn-reviewboard/reviewboard/api/info/ >>> Using the new web API >>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/ >>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/2/ >>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/2/info/ >>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/3/ >>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/3/info/ >>> Attempting to create review request on //cm4/fsn for None >>> HTTP POSTing to http://chn-reviewboard/reviewboard/api/review-requests/: >>> {'repository': u'//cm4/fsn'} >>> Review request created >>> Attempting to set field 'target_people' to 'hariprak' for review request >>> '415' >>> HTTP PUTting to >>> http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: >>> {'target_people': 'hariprak'} >>> Attempting to set field 'summary' to 'ALU12345678' for review request '415' >>> HTTP PUTting to >>> http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: >>> {'summary': 'ALU12345678'} >>> Attempting to set field 'branch' to 'default' for review request '415' >>> HTTP PUTting to >>> http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: >>> {'branch': 'default'} >>> Attempting to set field 'bugs_closed' to 'ALU12345678' for review request >>> '415' >>> HTTP PUTting to >>> http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: >>> {'bugs_closed': 'ALU12345678'} >>> Attempting to set field 'description' to ' ROOT CAUSE: test SOLUTION: test' for review request '415' >>> HTTP PUTting to >>> http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: >>> {'description': '\nROOT CAUSE:\ntest\n\nSOLUTION:\ntest'} >>> Uploading diff, size: 2025 >>> HTTP POSTing to >>> http://chn-reviewboard/reviewboard/api/review-requests/415/diffs/: >>> {'basedir': u'//cm4/fsn'} Review request #415 posted. http://chn-reviewboard/reviewboard/r/415/ ['>>> HTTP GETting http://chn-reviewboard/reviewboard/api/info/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/2/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/2/info/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/3/', '>>> HTTP GETting http://chn-reviewboard/reviewboard/api/repositories/3/info/', ">>> HTTP POSTing to http://chn-reviewboard/reviewboard/api/review-requests/: {'repository': u'//cm4/fsn'}", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'target_people': 'hariprak'}", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'summary': 'ALU12345678'}", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'branch': 'default'}", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'bugs_closed': 'ALU12345678'}", ">>> HTTP PUTting to http://chn-reviewboard/reviewboard/api/review-requests/415/draft/: {'description': '\\nROOT CAUSE:\\ntest\\n\\nSOLUTION:\\ntest'}", ">>> HTTP POSTing to http://chn-reviewboard/reviewboard/api/review-requests/415/diffs/: {'basedir': u'//cm4/fsn'}", 'http://chn-reviewboard/reviewboard/r/415/'] rbt attach info /tmp/UT.txt --server='http://chn-reviewboard/reviewboard' --username=hariprak --password=