Re: Using gitlab integration with self-signed SSL certificate

2016-07-07 Thread udam . dewaraja
This is a temporary hack but I'm disabling all SSL cert validation by doing:

ssl._create_default_https_context = ssl._create_unverified_context

inside the gitlab.py (doesn't really matter where we do this i guess).

I'm on the latest RB 2.5.6.1 version using Python 2.7.10.

Thanks!

On Wednesday, July 6, 2016 at 11:37:31 PM UTC-7, Christian Hammond wrote:
>
> Hi,
>
> Can you show me the code you've used to skip over it, and let me know the 
> version of Python you're using?
>
> Also, what version of Review Board?
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Wed, Jul 6, 2016 at 11:06 PM,  
> wrote:
>
>> Hello,
>>
>> I switched to using the gitlab integration on ReviewBoard. Previously, I 
>> was using a custom git repository setup on the local machine where I was 
>> running a crontab to peridically update the local repos.
>>
>> ReviewBoard/Python was not happy with the self-signed cert. For now, I've 
>> added some code in the reviewboard source to skip the ssl verification. 
>> Wondering if there's a better way to configure this in ReviewBoard so that 
>> when I upgrade RB, I won't have to keep disabling the SSL verification.
>>
>> Thanks!
>>  
>>
>> -- 
>> 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 .
>> 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.


Re: Going to dashboard on ReviewBoard causes this error

2016-07-06 Thread udam . dewaraja
Awesome. That worked.

Thanks!

On Wednesday, July 6, 2016 at 8:20:12 PM UTC-7, Christian Hammond wrote:
>
> Your administrator can fix this for you by doing:
>
> $ rb-site manage /path/to/sitedir shell
> >>> from django.contrib.auth.models import User
> >>> user = User.objects.get(username="")
> >>> profile = user.get_profile()
> >>> profile.extra_data = {}
> >>> profile.save()
>
> We'll get a fix into the next release, but that should fix your state.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Wed, Jul 6, 2016 at 7:06 PM,  wrote:
>
>> Nop. I can however go to the All Review Requests link and see the CRs 
>> properly. Just doesn't seem to show the current state (e.g. ship-it, 
>> comments icon etc).
>>
>>
>>- My Dashboard  
>>- New Review Request  
>>- All Review Requests 
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wednesday, July 6, 2016 at 6:56:43 PM UTC-7, Christian Hammond wrote:
>>>
>>> Hi,
>>>
>>> Looks like there's some state that's not set, which we aren't handling 
>>> well. This is a bug on our end, but it should be possible to work around it.
>>>
>>> If you navigate to a review request and its diff, and then go back, does 
>>> it work?
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag 
>>> Makers of Review Board 
>>>
>>> On Wed, Jul 6, 2016 at 6:20 PM,  wrote:
>>>
 - Exception thrown for user user123 at http://foo.bar.lan/dashboard/

 argument of type 'NoneType' is not iterable
 Traceback (most recent call last):
   File 
 "/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py",
  line 112, in get_response
 response = wrapped_callback(request, *callback_args, **callback_kwargs)
   File 
 "/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/contrib/auth/decorators.py",
  line 22, in _wrapped_view
 return view_func(request, *args, **kwargs)
   File 
 "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/site/decorators.py",
  line 35, in _check
 return view_func(request, local_site=local_site, *args, **kwargs)
   File 
 "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/accounts/decorators.py",
  line 47, in _check_valid_prefs
 return view_func(request, *args, **kwargs)
   File 
 "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/datagrids/views.py",
  line 62, in dashboard
 return grid.render_to_response(template_name)
   File 
 "/usr/lib/python2.7/site-packages/Djblets-0.9.3-py2.7.egg/djblets/datagrid/grids.py",
  line 1448, in render_to_response
 self.load_state(render_context)
   File 
 "/usr/lib/python2.7/site-packages/Djblets-0.9.3-py2.7.egg/djblets/datagrid/grids.py",
  line 1145, in load_state
 if self.load_extra_state(profile):
   File 
 "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/datagrids/grids.py",
  line 375, in load_extra_state
 if profile and 'show_archived' in profile.extra_data:
 TypeError: argument of type 'NoneType' is not iterable

 Any ideas? Other users on the same reviewboard instance don't seem to get 
 an error when going to their dashboard.

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


Re: Going to dashboard on ReviewBoard causes this error

2016-07-06 Thread udam . dewaraja
Nop. I can however go to the All Review Requests link and see the CRs 
properly. Just doesn't seem to show the current state (e.g. ship-it, 
comments icon etc).


   - My Dashboard  
   - New Review Request  
   - All Review Requests 








On Wednesday, July 6, 2016 at 6:56:43 PM UTC-7, Christian Hammond wrote:
>
> Hi,
>
> Looks like there's some state that's not set, which we aren't handling 
> well. This is a bug on our end, but it should be possible to work around it.
>
> If you navigate to a review request and its diff, and then go back, does 
> it work?
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Wed, Jul 6, 2016 at 6:20 PM,  wrote:
>
>> - Exception thrown for user user123 at http://foo.bar.lan/dashboard/
>>
>> argument of type 'NoneType' is not iterable
>> Traceback (most recent call last):
>>   File 
>> "/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py",
>>  line 112, in get_response
>> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>>   File 
>> "/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/contrib/auth/decorators.py",
>>  line 22, in _wrapped_view
>> return view_func(request, *args, **kwargs)
>>   File 
>> "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/site/decorators.py",
>>  line 35, in _check
>> return view_func(request, local_site=local_site, *args, **kwargs)
>>   File 
>> "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/accounts/decorators.py",
>>  line 47, in _check_valid_prefs
>> return view_func(request, *args, **kwargs)
>>   File 
>> "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/datagrids/views.py",
>>  line 62, in dashboard
>> return grid.render_to_response(template_name)
>>   File 
>> "/usr/lib/python2.7/site-packages/Djblets-0.9.3-py2.7.egg/djblets/datagrid/grids.py",
>>  line 1448, in render_to_response
>> self.load_state(render_context)
>>   File 
>> "/usr/lib/python2.7/site-packages/Djblets-0.9.3-py2.7.egg/djblets/datagrid/grids.py",
>>  line 1145, in load_state
>> if self.load_extra_state(profile):
>>   File 
>> "/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/datagrids/grids.py",
>>  line 375, in load_extra_state
>> if profile and 'show_archived' in profile.extra_data:
>> TypeError: argument of type 'NoneType' is not iterable
>>
>> Any ideas? Other users on the same reviewboard instance don't seem to get an 
>> error when going to their dashboard.
>>
>> -- 
>> 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 .
>> 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.


Going to dashboard on ReviewBoard causes this error

2016-07-06 Thread udam . dewaraja


- Exception thrown for user user123 at http://foo.bar.lan/dashboard/

argument of type 'NoneType' is not iterable
Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py",
 line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File 
"/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/contrib/auth/decorators.py",
 line 22, in _wrapped_view
return view_func(request, *args, **kwargs)
  File 
"/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/site/decorators.py",
 line 35, in _check
return view_func(request, local_site=local_site, *args, **kwargs)
  File 
"/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/accounts/decorators.py",
 line 47, in _check_valid_prefs
return view_func(request, *args, **kwargs)
  File 
"/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/datagrids/views.py",
 line 62, in dashboard
return grid.render_to_response(template_name)
  File 
"/usr/lib/python2.7/site-packages/Djblets-0.9.3-py2.7.egg/djblets/datagrid/grids.py",
 line 1448, in render_to_response
self.load_state(render_context)
  File 
"/usr/lib/python2.7/site-packages/Djblets-0.9.3-py2.7.egg/djblets/datagrid/grids.py",
 line 1145, in load_state
if self.load_extra_state(profile):
  File 
"/usr/lib/python2.7/site-packages/ReviewBoard-2.5.6.1-py2.7.egg/reviewboard/datagrids/grids.py",
 line 375, in load_extra_state
if profile and 'show_archived' in profile.extra_data:
TypeError: argument of type 'NoneType' is not iterable

Any ideas? Other users on the same reviewboard instance don't seem to get an 
error when going to their dashboard.

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


Permission denied accessing the local Git repository '/home/user/foo/.git'

2015-08-04 Thread udam . dewaraja
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://g...@git.host.lan/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://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
 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=createonly-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': [ufatal: 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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Permission denied accessing the local Git repository '/home/user/foo/.git'

2015-08-04 Thread udam . dewaraja
Hi Christian,

Thank you for the quick response. I'm using local repo due to not having 
the gitweb/cgit etc. I locally cloned the git repository under my home 
directory. The whole repository has read privileges to all users of the 
system (chmod -R ugo+r foo) already.

However, the error message when I try to save the repository configuration 
is always Permission denied accessing the local Git repository 
'/home/user/foo/.git'

Are there any log files where I can see specific logs related to the error?

I've also installed the beta 2.5 version and tried with that but get the 
same error message.

Thanks again!



On Tuesday, August 4, 2015 at 12:41:53 PM UTC-7, Christian Hammond wrote:

 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 - chi...@chipx86.com javascript:
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Tue, Aug 4, 2015 at 10:07 AM, udam.d...@gmail.com javascript: 
 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://g...@git.host.lan/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://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
  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=createonly-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': [ufatal: 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 

Re: Permission denied accessing the local Git repository '/home/user/foo/.git'

2015-08-04 Thread udam . dewaraja
Ok yes, that was the problem. 

For anyone thats in this bad situation in the future, the way to figure out 
the issue is as follows:

As Christian mentioned, do: 
sudo -su apache (or user who runs apache)
cd to git repo
git ls-remote

In my case, it was failing to connect via ssh (public key denied)

My solution was to:
create a .ssh directory in the home directory of the user (apache). In my 
case, this was in /usr/share/httpd
in the .ssh directory, i copied over my ssh keys to connect to the git hub 
repo
cloned the repo under the /usr/share/httpd directory

This succeeds if/when the ssh keys are properly set up.

Once this succeeds, you can submit the repository form with the path set to 
the local .ssh path AND the mirror path set to the ssh:// path of your 
repo.

the misleading thing here is the directory might be given all the 
permissions needed but still gives that same error message when the ssh 
public key auth is failing.

One last question: Do we need to manually keep the git repository 
up-to-date? e.g. cron tab?

Thanks again for the help!!
Udam


On Tuesday, August 4, 2015 at 12:59:31 PM UTC-7, Christian Hammond wrote:

 Hi,

 There's no additional logs for this, as that's basically all the 
 information we're given. That error is coming straight from Git.

 Best way to reproduce for testing is to `sudo -s` to your web server's 
 user, then attempt to do a `git ls-remotes` on that repository. See if you 
 get an error.

 This does sound like either a permissions issue or SELinux. However, it 
 could also be that the user can't access some parent directory of the 
 repository.

 Christian

 -- 
 Christian Hammond - chri...@beanbaginc.com javascript:
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Tue, Aug 4, 2015 at 12:56 PM, udam.d...@gmail.com javascript: 
 wrote:

 Hi Christian,

 Thank you for the quick response. I'm using local repo due to not having 
 the gitweb/cgit etc. I locally cloned the git repository under my home 
 directory. The whole repository has read privileges to all users of the 
 system (chmod -R ugo+r foo) already.

 However, the error message when I try to save the repository 
 configuration is always Permission denied accessing the local Git 
 repository '/home/user/foo/.git'

 Are there any log files where I can see specific logs related to the 
 error?

 I've also installed the beta 2.5 version and tried with that but get the 
 same error message.

 Thanks again!



 On Tuesday, August 4, 2015 at 12:41:53 PM UTC-7, Christian Hammond wrote:

 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 - chi...@chipx86.com
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Tue, Aug 4, 2015 at 10:07 AM, udam.d...@gmail.com 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://g...@git.host.lan/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://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...