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

查看:876
本文介绍了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".当我单击详细信息..."时,它说:
访问http://myserver/group/project.git/info/refs时,请求的URL返回错误:504
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.

      当我尝试在浏览器中打开此"info/refs" 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插件具有用于提供用户名&的字段密码-如果我填写这些密码,那么我会得到一个分支列表,但随后在克隆操作中会收到读取超时"(存储库为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天全站免登陆