gitsosis, redmine, 乘客 : 'not a git repository' error

标签 git centos redmine gitosis passenger

我安装了 gitosis 和 redmine,并在 CentOS 上通过 apache/passenger 运行它。问题是我无法通过 redmine 访问存储库。错误是“在存储库中找不到条目或修订。

我的存储库存储在

/home/zenna/repositories/myproject.git

错误(在 apache 日志中发现)是 "fatal: Not a git repository: '/home/zenna/repositories/myproject.git'"
它显然是一个存储库,因为它在 WeBrick 服务器上运行良好。我认为这可能是 apache/passenger 权限的问题

所以我尝试使用 myproject.git带有 apache:apache 的文件夹.那没有用
我想也许 apache 用户也必须可以访问该目录的父级,所以我尝试在 /myproject.git 创建一个符号链接(symbolic link)。到/home/zenna/repositories/myproject.git。那也没用

论坛里有人建议:

You run script/server w/a user that has a public cert in the gitosis repos, but the apache/passenger user doesn’t. Simple solution… create a cert for your passenger user. Add it to gitosis server and assign permissions in gitosis.conf. I gave my apache user read permissions on the entire direstory and all files / folders within.



但是,我使用 sudo /usr/sbin/apachectl start 运行 apache 用户

这是否意味着我必须为 root 创建一个公钥并将 root 添加到我的 gitosis.conf 中?试图通过 redmine、root 访问存储库的实际用户是什么? Apache ?乘客?

谢谢

最佳答案

试试/home/zenna/repositories/myproject.git/.git 还要确保 Apache 用户可以读取它。

关于gitsosis, redmine, 乘客 : 'not a git repository' error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3364475/

相关文章:

postgresql - CloudLinux 7.8 错误安装 postgresql 11 需要 : llvm-toolset-7-clang >= 4. 0.1

centos - 在 Cloudera Impala(虚拟机)中创建数据库时出错

ruby-on-rails - 为什么 post 请求比 rails 中的 delete 更受青睐?

ubuntu - Redmine:想要将 webrick 服务作为后台进程运行

node.js - 在 Centos 上找不到本地咕噜声

ruby-on-rails - Redmine:用于添加新闻的自定义过滤器字段

git - HEAD~4^2 的意思

.net - 如何将 .NET 标准库打包/发布到私有(private) VSTS Nuget 提要?

git - 为什么要在 git 分支中使用 '--track' 选项?

git - 从另一个分支重新建立基础,然后在 merge 另一个分支后 merge 到master