git pull error "The requested URL returned error: 503 while accessing"

GitGithubBitbucket

Git Problem Overview


I've been facing problems accessing my git repository lately. It worked perfectly fine earlier but now I cannot run any command on CLI. I can however, access the corresponding Web Page, Could someone help me how to resolve this issue?

Git Solutions


Solution 1 - Git

Had the same error while using SourceTree connected to BitBucket repository.

When navigating to repository url on bitbucket.org the warning message appeared:

> This repository is in read-only mode. You caught us doing some quick maintenance.

After around 2 hours repository was accessible again.

You can check status and uptime of bitbucket here: http://status.bitbucket.org/

Solution 2 - Git

here you can see the latest updated status form their website

bitbucket site status

if Git via HTTPS status is Major Outage, you will not be able to pull/push, let this status to get green

> HTTP Error 503 - Service unavailable

Solution 3 - Git

Try disabling all the system wide HTTP and HTTPS proxies:

export http_proxy="" 
export https_proxy=""
export HTTP_PROXY=""
export HTTPS_PROXY=""

Solution 4 - Git

Its problem at bitbucket's end.

You can check status of their services at http://status.bitbucket.org/

Currently there is HTTPS outage at bitbucket. see below

enter image description here

You can use SSH option. I just used SSH option with sourcetree.

Solution 5 - Git

As in "CocoaPods - pod setup http request failed", a 503 error on accessing (cloning) a public repository is likely to be the result of a GitHub glitch (availability issue)

Retrying later usually works.

Solution 6 - Git

A 50X error is an internal server error. There's nothing wrong on your end, but something's up on the server's end.

http://www.checkupdown.com/status/E503.html

> The Web server (running the Web site) is currently unable to handle > the HTTP request due to a temporary overloading or maintenance of the > server. The implication is that this is a temporary condition which > will be alleviated after some delay.

Just be patient and wait. :-)

Solution 7 - Git

Every one please avoid modifying post buffer and advising it to others. It may help in some cases but it breaks others. If you have modified your post buffer for pushing your large project. Undo it using following command. git config --global --unset http.postBuffer git config --local --unset http.postBuffer

I modified my post buffer to fix one of the issues I had with git but it was the reason for my future problems with git.

Solution 8 - Git

I received the same error when trying to clone a heroku git repository.

Upon accessing heroku dashboard I saw a warning that the tool was under maintenance, and should come back in a few hours.

Cloning into 'foo-repository'...
remote: !        Heroku has temporarily disabled this feature, please try again shortly. See https://status.heroku.com for current Heroku platform status.
fatal: unable to access 'https://git.heroku.com/foo-repository.git/': The requested URL returned error: 503

If you receive the same error, check the service status

Solution 9 - Git

It was the service issue from the git. The site will be under maintenance. Please try once after the maintenance work is done.

Solution 10 - Git

This problem is not only created by no_proxy, because it created by git server down issue also.

So When happening this issue first you open and check gitlab in browser.

And check if It shows any error like "503 An internal server error occured". .

The gitlab shows "503" page, this issue create by gitlab server down not in your system.

So you wait some time until the server going up and continue your work.

Solution 11 - Git

I had the same error today. Apparently, Google Compute Engine was down today for 2-3 hours (GitLab uses it). By that time, I had to use a VPN inorder to pull the update from the repo. I didn't want to wait.

pranav@exam ~/j/just-perfection-gnome-shell-desktop (master)  git pull
fatal: unable to access 'https://gitlab.com/justperfection.channel/just-perfection-gnome-shell-desktop.git/': The requested URL returned error: 503
git: 'gitlab-rake' is not a git command. See 'git --help'.
pranav@exam ~/j/just-perfection-gnome-shell-desktop (master) [1]> nordvpn connect us
Connecting to United States #8244 (us8244.nordvpn.com)
You are connected to United States #8244 (us8244.nordvpn.com)!
pranav@exam ~/j/just-perfection-gnome-shell-desktop (master)> git pull
remote: Enumerating objects: 149, done.
remote: Counting objects: 100% (149/149), done.
remote: Compressing objects: 100% (99/99), done.
remote: Total 118 (delta 88), reused 23 (delta 15), pack-reused 0
Receiving objects: 100% (118/118), 710.93 KiB | 289.00 KiB/s, done.
Resolving deltas: 100% (88/88), completed with 19 local objects.
From https://gitlab.com/justperfection.channel/just-perfection-gnome-shell-desktop
   3008d67..5cf51ac  master     -> origin/master
Successfully rebased and updated refs/heads/master.

So my suggestion for you is either wait for it to come back online or try using VPN and see if it works. This is a server-side problem as mentioned by experts above.

Solution 12 - Git

I had the same error using git from gitlab on Linux when running

git clone git@gitlab.com:MYPROJECT

on a fresh linux install, output:

The requested URL returned error: 503

I simply had to create an ssh key pair (probably the error will also disappear when the you use password authentication for https URLs instead, this answer only shows the key pair approach).

Choose from:

ssh-keygen -t rsa -b 4096 
ssh-keygen -t dsa 
ssh-keygen -t ecdsa -b 521 
ssh-keygen -t ed25519

Just press enter to save it to the standard directory, decide whether you want an additional passphrase. Then copy the content of the public key

cat ~/.ssh/id_rsa.pub

to the ssh key on gitlab, here in the case of rsa as the encryption method. Add the private key to your ssh.

ssh-add ~/.ssh/id_rsa

Try clonging:

git clone git@gitlab.com:MYPROJECT --branch MYBRANCH

It should ask to check a fingerprint to be checked against https://docs.gitlab.com/ee/user/gitlab_com/, to be sure, you may check this, and then the clone command works.

Solution 13 - Git

The solution:

> error : The requested URL returned error : 503 while Accessing

The error might be resolved by deleting the existing git folder.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsilentsongsView Question on Stackoverflow
Solution 1 - GitpbaranskiView Answer on Stackoverflow
Solution 2 - GitMuhammadView Answer on Stackoverflow
Solution 3 - GitEvgeniyView Answer on Stackoverflow
Solution 4 - GitIrfan DANISHView Answer on Stackoverflow
Solution 5 - GitVonCView Answer on Stackoverflow
Solution 6 - Gitcaiosm1005View Answer on Stackoverflow
Solution 7 - GitMohammad fView Answer on Stackoverflow
Solution 8 - GitGuilhermeView Answer on Stackoverflow
Solution 9 - GitLokesh SView Answer on Stackoverflow
Solution 10 - GitCreativeMindsView Answer on Stackoverflow
Solution 11 - GitPranavView Answer on Stackoverflow
Solution 12 - Gitquestionto42standswithUkraineView Answer on Stackoverflow
Solution 13 - GitS.IView Answer on Stackoverflow