2014-04-06 99 views
2

我有一個安裝了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. 

回答

2

那麼谷歌上搜索了幾天之後,我終於嘗試了兩件事情,問題得到解決:

  • 更新我的EC2實例從t1.micro到的m1.small,gitlab 顯然需要更接近的演出記憶。
  • 在配置期間,我將配置文件中的url設置爲服務器的ip ,我將這些引用更改爲localhost。
0

嘗試git的優化版本是< =混帳-1.8.4,
因爲看來新版本在使用https時可能會在推送時出現問題。

+0

其實使用1.8.3 – Trey

+0

ok,在linux上我沒有問題,我使用的是1.8.4,但是在windows上我有類似的問題,所以我把版本更改爲1.8.2,然後是固定。 –

相關問題