I've configured a Perforce repo for a 2.5 version of RB. Things seem fine, 
but I can post a review (via rbt). It looks to me like there are problems 
with RB authenticating the username provided (rearden_reader). I'm trying 
to use ticket based authentication. RB is running as www-data whose home 
dir is set to /var/www. To create a ticket file, I used the account 
www-data and set P4USER to the account username specified and P4PORT to the 
"Path" of the repo. I then logged in creating the .p4ticket file.

sudo su -l www-data
[sudo] password for coneill: 
$ cd /var/www
$ export P4USER=rearden_reader
$ export P4PORT=XXXX:9420
$ p4 login -s
User rearden_reader ticket expires in 194525 hours 4 minutes. 

Example of trying to post

coneill-lx [526]:rbt post --debug 329470
>>> RBTools 0.7.5
>>> Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2]
>>> Running on Linux-3.16.0-51-generic-x86_64-with-Ubuntu-14.04-trusty
>>> Home = /home/coneill
>>> Current directory = /home/coneill/p4notes
>>> Checking for a Subversion repository...
>>> Unable to execute "svn help": skipping SVN
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any of the parent directories): .git
>>> Checking for a Mercurial repository...
>>> Unable to execute "hg --help": skipping Mercurial
>>> Checking for a CVS repository...
>>> Unable to execute "cvs": skipping CVS
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> repository info: Path: XXXX:9420, Base path: None, Supports changesets: 
>>> Making HTTP GET request to http://screvboard01.mygazoo.com/api/
>>> Running: p4 info
Generating diff for pending changeset 329470
>>> Processing edit of //Eng/sandbox/coneill/home/p4notes/ztag
>>> Writing "//Eng/sandbox/coneill/home/p4notes/ztag#1" to "/tmp/tmpjSlaKb"
>>> Running: p4 print -o /tmp/tmpjSlaKb -q 
>>> Running: diff -urNp /tmp/tmpjSlaKb /home/coneill/p4notes/ztag
>>> Command exited with rc 1: [u'diff', u'-urNp', '/tmp/tmpjSlaKb', 
>>> Making HTTP GET request to 
>>> Cached response for HTTP GET 
http://screvboard01.mygazoo.com/api/validation/diffs/ expired and was 
>>> Making HTTP POST request to 

Please log in to the Review Board server at screvboard01.mygazoo.com.
Username: coneill
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
>>> Error data: {u'stat': u'fail', u'reason': u'[P4#run] Errors during 
command execution( "p4 login" )\n\n\t[Error]: "Password invalid.\\n\'AD\' 
validation failed: \\nError: Failed to authenticate special user 
[rearden_reader]."\n\n', u'err': {u'msg': u'The specified diff file could 
not be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.5', 'console_scripts', 'rbt')()
line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
line 622, in run_from_argv
    exit_code = self.main(*args) or 0
line 754, in main
    (msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The specified diff file could not be parsed. (HTTP 400, API Error 224)

Looking at the Perforce server logs, it seems the account failed AD auth.

Any idea what's going on?



Supercharge your Review Board with Power Pack: 
Want us to host Review Board for you? Check out RBCommons: 
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.

Reply via email to