git GitLab 请求的 URL 返回错误:503
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29476327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
GitLab The requested URL returned error: 503
提问by Tyler Smith
Edit on September 28, 2017. The error description you'll read below makes the problem appear to be GitLab or OS specific. The behavior described can be encountered on any computer behind a proxy while attempting to connect to any internally hosted Git server, whether GitHub, GitLab, Bitbucket, etc... .
2017 年 9 月 28 日编辑。您将在下面阅读的错误描述使问题似乎是 GitLab 或操作系统特定的。在尝试连接到任何内部托管的 Git 服务器(无论是 GitHub、GitLab、Bitbucket 等)时,在代理后面的任何计算机上都可能遇到所描述的行为。
I have a RHEL6 server (setup by the corporate server team) that I installed GitLab Community Edition 7.9.2 on following the instructions provided by GitLab here. After following the installation instructions I was able to start the server and login.
我有一个 RHEL6 服务器(由企业服务器团队设置),我按照GitLab 此处提供的说明安装了 GitLab Community Edition 7.9.2 。按照安装说明进行操作后,我能够启动服务器并登录。
I created a group and a project, then I forked into my own account. I can create a file through the GitLab UI and commit it. I'm trying to fetch from my forked project using Git Bash (on Windows 7) and with SourceTree but I'm getting this error:
我创建了一个组和一个项目,然后分叉到我自己的帐户中。我可以通过 GitLab UI 创建一个文件并提交它。我正在尝试使用 Git Bash(在 Windows 7 上)和 SourceTree 从我的分叉项目中获取,但出现此错误:
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin fatal: unable to access 'http://server.domain.com/username/project.git/': The requested URL returned error: 503
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin 致命:无法访问“ http://server.domain.com/username/project.git/”:请求的 URL 返回错误:503
Most documentation I've found says this is a temporary thing and should be resolved soon. I am the only person using this server, this is the only thing it has installed, and the issue has lasted all day.
我找到的大多数文档都说这是暂时的,应该很快解决。我是唯一一个使用这个服务器的人,这是它唯一安装的东西,问题持续了一整天。
I've tried running reconfigure commands on GitLab with no effect. Gitlab or ngenix isn't an installed service so I'm not able to restart them.
我试过在 GitLab 上运行重新配置命令但没有效果。Gitlab 或 ngenix 不是已安装的服务,因此我无法重新启动它们。
Another tidbit here is that I'm a newbie at Linux server management, I haven't touched Linux in 7 years.
这里的另一个花絮是我是 Linux 服务器管理的新手,我已经 7 年没有接触过 Linux。
Any ideas?
有任何想法吗?
回答by Tyler Smith
The problem turned out to be a proxy setting set as a system property. That overrides the gitconfig settings. Once I removed this it was able to work properly.
问题原来是设置为系统属性的代理设置。这会覆盖 gitconfig 设置。一旦我删除了它,它就能够正常工作。
You can also set an environment variable for no_proxy
with your GH url included.
您还可以为no_proxy
包含您的 GH url设置环境变量。
回答by CreativeMinds
This problem is not only created by no_proxy
, because it created by git server down
issue also.
这个问题不仅是由 造成的no_proxy
,因为它git server down
也是由问题造成的。
So When happening this issue first you open and check gitlab in browser.
所以当第一次发生这个问题时,你在浏览器中打开并检查 gitlab。
And check if It shows any error like "503 An internal server error occured".
.
并检查它是否显示任何错误,例如"503 An internal server error occured".
.
The gitlab shows "503"
page, this issue create by gitlab server down not in your system.
gitlab 显示"503"
页面,此问题由 gitlab 服务器创建,不在您的系统中。
So you wait some time until the server going up and continue your work.
所以你等待一段时间,直到服务器启动并继续你的工作。