I came up with a solution to the first problem. I had a CNAME pointing to my Perforce server (so it could be changed if needed, for example server crash). When I changed the repository path to the actual server name, the .reviewboardrc file was created.
Here's the output requested: coneill-lx [533]: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: scprolp4d01.sc.rden.us: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/tmpqxrZtE" >>> Running: p4 print -o /tmp/tmpqxrZtE -q //Eng/sandbox/coneill/home/p4notes/ztag#1 >>> Running: diff -urNp /tmp/tmpqxrZtE /home/coneill/p4notes/ztag >>> Command exited with rc 1: [u'diff', u'-urNp', '/tmp/tmpqxrZtE', '/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) <end of output> rearden_reader is a readonly account in Perforce and is used as the username of the repo. I'm using ticket based auth. I did create the ticket for the account /var/www/.p4ticket using the uid www-data which apaches is executing as and whose home dir is /var/www. I'll dig some more. Any help appreciated. Thanks Chuck On Thursday, November 5, 2015 at 12:20:51 PM UTC-8, Barret Rennie wrote: > > Hi Chuck, > > Can you run rbt post --debug 329470 and give us the output? rbt > subcommands enforce flags coming before arguments on the command line. > > Regards, > Barret Rennie > > On Nov 4, 2015, at 6:40 PM, Chuck O'Neill <con...@reardencommerce.com > <javascript:>> wrote: > > Hi - I'm bringing up a new instance of RB using Perforce and I'm just > getting things to work. I'm trying to post a review. On a ubuntu box I have > installed rbt 7.5. When I run "rbt setup-repo --debug" I get: > >>> Checking for a Perforce repository... > >>> Running: p4 info > >>> Running: diff --version > >>> repository info: Path: server:port, Base path: None, Supports > changesets: True > >>> Making HTTP GET request to http://server/api/ > >>> Making HTTP GET request to http://server/api/repositories/ > >>> Cached response for HTTP GET http://server/api/repositories/ expired > and was modified > No Perforce repository found or selected > reviewboardrc not created. > > I also tried creating my .reviewboardrc file by hand and then when I try > to post I get > > coneill-lx [560]:rbt post 329470 > Generating diff for pending changeset 329470 > > Please log in to the Review Board server at screvboard01.mygazoo.com. > Username: coneill > Password: > ERROR: Error validating diff > > The specified diff file could not be parsed. (HTTP 400, API Error 224) > > coneill-lx [561]:rbt post 329470 --debug > Path '329470' does not match a valid Perforce path. > > Any idea where I'm going wrong? 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...@googlegroups.com <javascript:>. > 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 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.