我已经在 Ubuntu 服务器上安装了 GitLab。一切似乎都很好,除了我无法向/从服务器推送/拉取/克隆。
当我推送时,我收到一般错误消息:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已经尝试了数小时的谷歌搜索,但我似乎无法找到问题所在。
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
运行良好,全线OK!
我可以通过 SSH 访问 git@adress.adress 我得到:
PTY allocation request failed on channel 0
Welcome to GitLab, Anonymous!
当我做:
ssh git@adress.adress "ls /location/of/git/dir"
我得到:
Not allowed command
该网站正在运行,当我在该网站上创建一个存储库时,它出现在 /home/git/repository/
但我仍然无法推动它。
我遵循了本指南:
https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md
和本指南让它在 apache 上运行:
http://shanetully.com/2012/08/running-gitlab-from-a-subdirectory-on-apache/