GitLab HTTP URL 上的 504 网关超时 [英] 504 gateway timeout on GitLab HTTP URLs

查看:52
本文介绍了GitLab HTTP URL 上的 504 网关超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 linux 机器上安装了 GitLab 6.0 并创建了许多项目.我可以使用 SSH URL 创建每个项目的本地克隆,但是当我尝试使用 HTTP URL 时,我会在几秒钟内收到 504 网关超时.

I have installed GitLab 6.0 on a linux box and created a number of projects. I can create a local clone of each project using the SSH URL, but when I try to use the HTTP URL I get a 504 Gateway Timeout within seconds.

  • 当我将 HTTP URL 粘贴到 SourceTree 时,它​​会显示检查源"一秒钟左右,然后这不是有效的源路径/URL".当我点击详细信息..."时,它说:
请求的 URL 返回错误:504 访问 http://myserver/group/project.git/info/refs
The requested URL returned error: 504 while accessing http://myserver/group/project.git/info/refs

  • Git Gui 还尝试访问 http://myserver/group/project.git/info/refs URL 并收到 504 错误.

    • Git Gui also attempts to access the http ://myserver/group/project.git/info/refs URL and gets a 504 error.

      当我尝试在浏览器中打开这个信息/参考"URL 时,我收到一个需要身份验证"弹出窗口,其中 ** 不接受**我的 GitLab 用户名/密码也电子邮件/密码.

      When I attempt to open this "info/refs" URL in a browser I get a "Authentication Required" popup which ** does not accept** my GitLab username/password nor email/password.

      Eclise EGit 插件有提供用户名的字段.密码 - 如果我填写了这些,那么我会得到一个分支列表,但是我会在克隆操作中得到一个读取超时"(repo 是 2GB).这种方法在我的 GitLab 服务器上适用于较小的项目.

      The Eclise EGit plugin has fields to provide a username & password - if I fill those out then I get a list of branches, but then I get a "Read timed out" on the clone operation (the repo is 2GB). This approach does work on smaller projects on my GitLab server.

      按照说明,我使用了 nginx,但它似乎是我遇到的许多问题的根源.

      As per the instructions, I've used nginx, but it seems to be the source of a number of problems that I'm having.

      sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production:

      System information
      System:         Ubuntu 12.04
      Current User:   git
      Using RVM:      yes
      RVM Version:    1.6.9
      Ruby Version:   1.9.3p0
      Gem Version:    1.8.11
      Bundler Version:1.3.5
      Rake Version:   10.1.0
      
      GitLab information
      Version:        6.0.0
      Revision:       5246d63
      Directory:      /home/git/gitlab
      DB Adapter:     mysql2
      URL:            http://myserver
      HTTP Clone URL: http://myserver/some-project.git
      SSH Clone URL:  git@myserver:some-project.git
      Using LDAP:     no
      Using Omniauth: no
      
      GitLab Shell
      Version:        1.7.0
      Repositories:   /home/git/repositories/
      Hooks:          /home/git/gitlab-shell/hooks/
      Git:            /usr/bin/git
      

      推荐答案

      这通常是代理服务器问题.只需打开一个终端并运行此命令即可绕过远程代理.(假设您的远程服务器称为来源"):

      This usually is a proxy server issue. Just open a terminal and run this command to bypass the proxy for the remote. (assuming your remote server is called "origin"):

      git config --add remote.origin.proxy ""
      

      此处的更多信息:Git 代理绕过

      这篇关于GitLab HTTP URL 上的 504 网关超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆