ubuntu - Gitlab推源大师

标签 ubuntu nginx gitlab

我安装了新版本的 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/

相关文章:

ubuntu - Travis 在自定义源代码库中找不到 Debian 软件包,为什么?

ruby-on-rails - 使用 Passenger 和 Nginx 将 Rails 应用程序部署到子 URI?

git - 如何在 gitlab 中将现有的 ssh key 添加到项目的部署 key

javascript - Vuetify.js:v-stepper 中的 color prop 在 Gitlab 上部署时不生效。如何将颜色 Prop 移动到 CSS 类?

ubuntu - Kile 在 ubuntu 下运行很慢,在扩展结构时

bash - 为什么这个自动完成功能在 Linux 中不自动完成?

c++ - 无法在 Ubuntu 上构建 protobuf 2.4.1

nginx - 如何将 IP 上的请求重定向到域

Node.JS、HAproxy 和 Socket.IO 通过 NGINX,应用程序位于子目录中

gitlab - 在 gitlab-ci.yml 上动态设置工件路径/文件夹结构