Can you try deleting ~/.post-review-cookies.txt and ~/.rbtools-cookies.txt?
-David On Tue, Aug 26, 2014 at 5:13 PM, Mehul Sanghvi <[email protected]> wrote: > reviewboard: 1.5.6 > rbtools: 0.5.7 > python: 2.7.8 > os: debian/testing > > I am trying to use post-review to create a diff that I can upload to RB. > > I do the following: > > > bash% post-review -dn pom.xml > > > and I get the following stack trace: > > >>> Python 2.7.8 (default, Aug 18 2014, 10:01:58) > [GCC 4.9.1] > >>> Running on Linux-3.14-2-amd64-x86_64-with-debian-jessie-sid > >>> Home = /home/msanghvi > >>> Current Directory = /home/msanghvi/Work/repo-main > >>> Checking the repository type. Errors shown below are mostly harmless. > DEBUG:root:Checking for a Subversion repository... > DEBUG:root:Running: svn info --non-interactive > DEBUG:root:Command exited with rc 1: ['svn', 'info', '--non-interactive'] > svn: E155007: '/home/msanghvi/Work/repo-main' is not a working copy > --- > DEBUG:root:Checking for a Git repository... > DEBUG:root:Running: git rev-parse --git-dir > DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-dir'] > fatal: Not a git repository (or any of the parent directories): .git > --- > DEBUG:root:Checking for a Mercurial repository... > DEBUG:root:Running: hg showconfig > DEBUG:root:Running: hg root > DEBUG:root:Command exited with rc 255: ['hg', 'root'] > abort: no repository found in '/home/msanghvi/Work/repo-main' (.hg not > found)! > --- > DEBUG:root:Checking for a CVS repository... > DEBUG:root:Checking for a Perforce repository... > DEBUG:root:Running: p4 info > DEBUG:root:Running: diff --version > DEBUG:root:repository info: Path: perforce.tld.com:1666, Base path: None, > Supports changesets: True > >>> Finished checking the repository type. > >>> HTTP GETting api/info/ > ==> HTTP Authentication Required > Enter authorization information for "Web API" at reviewboard.tld.com > Password: > >>> Got API Error 103 (HTTP code 401): You are not logged in > >>> Error data: {u'stat': u'fail', u'err': {u'msg': u'You are not logged > in', u'code': 103}} > Traceback (most recent call last): > File "/usr/local/bin/post-review", line 9, in <module> > load_entry_point('RBTools==0.5.7', 'console_scripts', 'post-review')() > File > "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.7-py2.7.egg/rbtools/postreview.py" > , line 1331, in main > server.load_capabilities() > File > "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.7-py2.7.egg/rbtools/postreview.py" > , line 274, in load_capabilities > info = self.api_get('api/info/') > File > "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.7-py2.7.egg/rbtools/postreview.py" > , line 707, in api_get > self.process_error(e.code, e.read()) > > > > What am I overlooking or missing ? I have P4CLIENT, P4PORT, P4USER, > P4TICKETS all set in the environment. > > If I do > > rbt diff //perforce/server/path/to/file#23,#24 > > I do not get an errors about "You are not logged in" and it works just > fine, giving me a diff, > but I am unable to get it to diff with my local changes. I have to do p4 > submit, and that kind of defeats the purpose of reviewing. :) > > > > > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
