Redmine error log fatal:not a git repository

…衆ロ難τιáo~ 提交于 2019-12-10 10:42:37

问题


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.



来源:https://stackoverflow.com/questions/38265066/redmine-error-log-fatalnot-a-git-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!