我有一个安装了nginx的gitlab的新版本。我可以访问前端没有问题,我可以创建用户/添加密钥,并创建项目。在创建我的第一个项目后,我试图按照项目页面上的指示,但是我一直收到这个错误。我已经检查了所有的日志,并不能找到任何有关:Gitlab push origin master
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 [email protected]
,并得到:
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.
其实使用1.8.3 – Trey
ok,在linux上我没有问题,我使用的是1.8.4,但是在windows上我有类似的问题,所以我把版本更改为1.8.2,然后是固定。 –