我有一個安裝了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,然後是固定。 –