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: 
True
>>> 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 
//Eng/sandbox/coneill/home/p4notes/ztag#1
>>> Running: diff -urNp /tmp/tmpjSlaKb /home/coneill/p4notes/ztag
>>> Command exited with rc 1: [u'diff', u'-urNp', '/tmp/tmpjSlaKb', 
'/home/coneill/p4notes/ztag']
>>> Making HTTP GET request to 
http://screvboard01.mygazoo.com/api/validation/diffs/
>>> Cached response for HTTP GET 
http://screvboard01.mygazoo.com/api/validation/diffs/ expired and was 
modified
>>> Making HTTP POST request to 
http://screvboard01.mygazoo.com/api/validation/diffs/

Please log in to the Review Board server at screvboard01.mygazoo.com.
Username: coneill
Password: 
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> 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')()
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.5-py2.7.egg/rbtools/commands/main.py",
 
line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.5-py2.7.egg/rbtools/commands/__init__.py",
 
line 622, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.5-py2.7.egg/rbtools/commands/post.py",
 
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?

Thanks

Chuck

-- 
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.

Reply via email to