Gitlab推动原点大师

时间:2014-04-06 19:52:39

标签: ubuntu nginx gitlab

我在nginx上安装了新版本的gitlab。我可以访问前端没问题,我可以创建用户/添加密钥,并创建项目。创建我的第一个项目后,我试图按照项目页面上的说明进行操作,但我一直收到此错误。我检查了所有日志,找不到任何相关内容:

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.

2 个答案:

答案 0 :(得分:2)

经过几天的谷歌搜索,我终于尝试了两件事,问题得到了解决:

  • 将我的EC2实例从t1.micro更新为m1.small,gitlab 显然需要更接近一堆记忆。
  • 在配置期间,我将配置文件中的url设置为ip 在服务器上,我将这些引用更改为localhost。

答案 1 :(得分:0)

尝试一个&lt; = Git-1.8.4,
的git版本 因为看起来新版本可能在使用https时出现问题。