我安装了新版本的 gitlab 和 nginx。我可以毫无问题地访问前端,我可以创建用户/添加 key ,并创建项目。创建第一个项目后,我尝试按照项目页面上的说明进行操作,但我不断收到此错误。我检查了所有日志,但找不到任何相关内容:
git push -u origin master
返回
/home/git/gitlab-shell/lib/gitlab_net.rb:71:in `get': undefined method `request_uri' for #<URI::Generic:0x00000001ca76b8> (NoMethodError)
from /home/git/gitlab-shell/lib/gitlab_net.rb:31:in `allowed?'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:59:in `validate_access'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:23:in `exec'
from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
并且存储库存在。
根据我在网上找到的其他帮助,然后我尝试了:
ssh git@myhost
并得到:
PTY allocation request failed on channel 0
/home/git/gitlab-shell/lib/gitlab_net.rb:71:in `get': undefined method `request_uri' for # <URI::Generic:0x00000002a60d40> (NoMethodError)
from /home/git/gitlab-shell/lib/gitlab_net.rb:38:in `discover'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:77:in `user'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:82:in `username'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:36:in `exec'
from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
Connection to [ip_addr] closed.
最佳答案
经过几天的谷歌搜索,我终于尝试了两件事,问题得到了解决:
- 将我的 EC2 实例从 t1.micro 更新为 m1.small,gitlab 显然需要接近千兆的内存。
- 在配置过程中,我将配置文件中的 url 设置为 IP 对于服务器,我将这些引用更改为 localhost。
关于ubuntu - Gitlab推源大师,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22899158/