Nic*_*ion 3 git nginx git-gui gitlab atlassian-sourcetree
我已经在 Linux 机器上安装了 GitLab 6.0 并创建了许多项目。我可以使用 SSH URL 创建每个项目的本地克隆,但是当我尝试使用 HTTP URL 时,我会在几秒钟内收到 504 Gateway Timeout。
访问 http://myserver/group/project.git/info/refs 时,请求的 URL 返回错误:504
Git Gui 还尝试访问 http://myserver/group/project.git/info/refs URL 并收到 504 错误。
当我尝试在浏览器中打开此“info/refs”URL 时,会出现“需要身份验证”弹出窗口,该弹出窗口**不接受**我的 GitLab 用户名/密码或电子邮件/密码。
Eclise EGit 插件具有提供用户名和密码的字段 - 如果我填写这些字段,那么我会得到一个分支列表,但随后我会在克隆操作中收到“读取超时”消息(存储库为 2GB)。这种方法确实适用于我的 GitLab 服务器上的小型项目。
根据说明,我使用了 nginx,但它似乎是我遇到的许多问题的根源。
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
Run Code Online (Sandbox Code Playgroud)
这通常是代理服务器问题。只需打开终端并运行此命令即可绕过远程代理。(假设您的远程服务器称为“origin”):
git config --add remote.origin.proxy ""
Run Code Online (Sandbox Code Playgroud)
更多信息请参见:Git 代理绕过
| 归档时间: |
|
| 查看次数: |
22600 次 |
| 最近记录: |