Redmine error log fatal:not a git repository

2019-05-25 03:16发布

问题:

I installed redmine on git server (gitlab), which is our main git server (same machine).

When I add the repository (through gitlab) information in redmine web,

The redmine log says:

/usr/local/redmine/log/production.scm.stderr.log < fatal: Not a git repository: '/data/gitlab/git-data/repositories/woojs/RedmineTestProject.git/'

But when I check the whether bare or non-bare using git command, I get this:

root@gitserver:/data/gitlab/git-data/repositories/woojs/RedmineTestProject.git# git rev-parse --is-bare-repository
true

I tried to change some things related to permissions: Changing owner to www-data and changing permissions to 777. It's still not working.

回答1:

Similar to this old thread, check the account which runs for redmine: does that account has the right to access /data/gitlab/git-data/repositories/woojs/RedmineTestProject.git? (or anything under /data/gitlab/git-data/repositories/?)

This usually is a right access issue.