Hi, Just to check, is this repository local to the Review Board server, or remote?
If local, make sure that your web server's user (usually apache or www-data) has read access to everything under the git repository. if remote, you're going to need to use a service like gitweb/cgit/gitlab/etc, since Git has no support for fine-grained remote access to files/commits. We have some docs on how to do this: https://www.reviewboard.org/docs/manual/2.0/admin/configuration/repositories/#raw-file-urls Christian -- Christian Hammond - [email protected] Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Tue, Aug 4, 2015 at 10:07 AM, <[email protected]> wrote: > Hello, > > I'm trying to set up reviewboard on Fedora linux. I've already disabled > SELinux due to other issues starting up Reviewboard. Running apache with > the other recommended settings. Now I have review board setup but cannot > get my git repository set up (even after trying for a day). > > Here's my issue: > - I could not get the get repository setup with remote pointing to my > private github repository. > - Since then I have setup a local git repo using ssh > - I've put the local git repo in multiple places (/tmp/foo, /home/user/foo > etc) yet continue to get the same error in the setup repo screen where it > says "permission denied accessing the local git repository" > - In the mirror path, I specify ssh://[email protected]/github/foo.git > - I've tried giving the apache user ownership of the foo directory and the > .git directory and given ugo+rwx on both of those directories. > > If I specify only the ssh://[email protected]/github/foo.git as the path > and leave the mirror path empty OR specify the same for the mirror path, I > can create the repo but cannot post a review to the repo. It fails with the > error: > > ~/D/P/foo ❯❯❯ rbt post --debug > >>> RBTools 0.7.4 > >>> Python 2.6.9 (unknown, Sep 9 2014, 15:05:12) > [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] > >>> Running on Darwin-14.4.0-x86_64-i386-64bit > >>> Home = /Users/user > >>> Current directory = /Users/user/Development/Projects/foo > >>> Running: git version > >>> Checking for a Subversion repository... > >>> Running: svn --non-interactive info > >>> Command exited with rc 1: ['svn', '--non-interactive', u'info'] > svn: E155007: '/Users/user/Development/Projects/foo' is not a working copy > --- > >>> Checking for a Git repository... > >>> Running: git rev-parse --git-dir > >>> Running: git config core.bare > >>> Running: git rev-parse --show-toplevel > >>> Running: git symbolic-ref -q HEAD > >>> Running: git config --get branch.master.merge > >>> Running: git config --get branch.master.remote > >>> Running: git config --get remote.origin.url > >>> repository info: Path: http://git.domain.lan/host/foo.git, Base path: > , Supports changesets: False > >>> Making HTTP GET request to http://host.domain.lan/api/ > >>> Making HTTP GET request to http://host.domain.lan/api/info/ > >>> Running: git rev-parse refs/heads/master > >>> Running: git merge-base 7811f02d7382c80525973c17f3cd810d191b81db > origin/master > >>> Running: git rev-parse 715970e7fa070b836cf00c0af254bee94776dc08 > >>> Running: git status --porcelain --untracked-files=no > >>> Running: git rev-parse --git-dir > >>> Running: git -c core.quotepath=false -c diff.noprefix=false diff > --no-color --full-index --ignore-submodules -M --no-ext-diff > 715970e7fa070b836cf00c0af254bee94776dc08..7811f02d7382c80525973c17f3cd810d191b81db > >>> Making HTTP GET request to > http://host.domain.lan/api/review-requests/?only-links=create&only-fields= > >>> Making HTTP POST request to > http://host.domain.lan/api/review-requests/ > >>> Making HTTP GET request to > http://host.domain.lan/api/review-requests/4/diffs/?only-fields= > >>> Making HTTP POST request to > http://host.domain.lan/api/review-requests/4/diffs/ > >>> Got API Error 105 (HTTP code 400): One or more fields had errors > >>> Error data: {u'fields': {u'path': [u"fatal: Not a git repository: > 'None'\n"]}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had > errors', u'code': 105}} > REVIEWBOARD_URL = "host.domain.lan" > REPOSITORY = "foo.git" > Traceback (most recent call last): > File "/usr/local/bin/rbt", line 9, in <module> > load_entry_point('RBTools==0.7.4.dev0', 'console_scripts', 'rbt')() > File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line > 133, in main > command.run_from_argv([RB_MAIN, command_name] + args) > File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", > line 612, in run_from_argv > exit_code = self.main(*args) or 0 > File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line > 797, in main > base_dir=base_dir) > File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line > 479, in post_request > raise CommandError(u'\n'.join(error_msg)) > rbtools.commands.CommandError: Error uploading diff > > > One or more fields had errors (HTTP 400, API Error 105) > > path: fatal: Not a git repository: 'None' > > > Your review request still exists, but the diff is not attached. > > http://host.domain.lan/r/4/ > > - Here I tried to post from my laptop which also has the git repository > cloned from git hub. > > Any help will be much appreciated! > > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
