503 error when fetching

I installed GitLab 7.9.2 on a RHEL6 server following the instructions on the Community Edition downloads. I created a group and a project, then forked it, but now I get a 503 error when attempting to fetch from my fork on my laptop. The logs don’t seem to have any errors recorded and I’m not sure what to do.

This server was created last week and is only hosting this installation of GitLab. I can create files and commit through the website but I can’t use a Git client on my laptop.

Any ideas? Also, I’m pretty much a Windows guy so please be patient with me with Linux commands.

So you are trying to git clone from a Windows machine?

The error you see is on the command prompt, right? Care to share the error?

Here is the error from SourceTree while trying to fetch branches on the main project (I forked this project).

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch Main
fatal: unable to access ‘server/group/project.git/’: The requested URL returned error: 503

What if you directly clone the repo with git command in cmd?

git clone http://ldxx79app1.dx.deere.com/group/project.git

I’m not familiar with SourceTree to be frank.

I cleared the directory and tried to clone using Git Bash:

user@W795CB3200QPV0 /c/Workspace/Git/project (master)
$ git clone http://server/main/project.git
Cloning into 'project'...
fatal: unable to access 'http://server/group/project.git/': The requested URL returned error: 503

In case anybody comes across this, if you have an environment variable for a proxy it will override git proxy settings. When I removed the env variable I was able to execute a git command.

4 Likes

This is the more important detail ever…for git users…

I had the same problem. As suggested by tylersmith34, removing the proxy variables solved it.
The following commands worked for me:

git config --global --unset http.proxy 
git config --global --unset https.proxy 
1 Like

Yes exactly 100% correct solution to remove the environment variable of http_proxy .after removal VS Code able to access the TFS URL