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).
- I could not get the get repository setup with remote pointing to my private github repository.
- 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"
- 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://g...@git.host.lan/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
>>> 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
>>> 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.
- Here I tried to post from my laptop which also has the git repository cloned from git hub.