Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting 500 error on git clone

Tags:

git

github

I am unable to clone a newly created repository. I am getting below error.

$ git clone https://github.xxxxx.com/zzzzzz.git
Cloning into 'zzzzzz'...
Username for 'https://github.xxxxxx.com': yyyyy
Password for 'https://[email protected]':
remote: Internal Server Error.
remote:
fatal: unable to access 'https://github.xxxxxx.com/zzzzz.git/': The requested URL returned error: 500

I have successfully generated ssh keys and updated the key in github settings as per the instructions in the below URL

https://help.github.com/articles/generating-ssh-keys/

authentication was success when I executed the command: git -T [email protected]

Also as per my understanding if we setup the ssh the git clone command should not ask for username and password. But it still asking for them.

debug1: Authentication succeeded (publickey).
Authenticated to github.xxxxx.com ([10.28.22.44]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access. 
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3880, received 1696 bytes, in 0.2 seconds
Bytes per second: sent 19132.2, received 8363.0
debug1: Exit status 1
like image 315
Rob Wilkinson Avatar asked Oct 12 '15 16:10

Rob Wilkinson


People also ask

Why git clone is not working?

This error occurs if the default branch of a repository has been deleted on GitHub.com. Detecting this error is simple; Git will warn you when you try to clone the repository: $ git clone https://github.com/USER/REPO.git # Clone a repo > Cloning into 'repo'... > remote: Counting objects: 66179, done. >

Why do I keep getting error 500?

The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is usually returned by the server when no other error code is suitable.


1 Answers

This is most probably a problem with GitHub service. I recommend contacting them and explain what the problem is.

This is how Wikipedia explains the 500 response code:

500 Internal Server Error

A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

Basically, something went wrong on the GitHub endpoint.


But, since you already have set your SSH keys, you can use the ssh url to clone your repository:

git clone [email protected]:owner/repo.git
like image 131
Ionică Bizău Avatar answered Oct 08 '22 03:10

Ionică Bizău