URL Error 500 while cloning

I am unable to clone/push/pull with Stash:

$ git clone http://user@msp0ts07:7990/scm/test/test.git

Cloning into 'test'...

error: The requested URL returned error: 500 while accessing http://user@msp0ts07:7990/scm/test/test.git/info/refs?service=git-upload-pack

fatal: HTTP request failed

However, if i remove the username from the URL it seems to work. However, stash presents the repository URL with the username in it, so it's misleading for our users.

I have JIRA+Stash installed on the same server with Stash using JIRA User Directory. I do not have JIRA integrated with IIS.

I can't seem to find anything other than in the stash-access.log, which doesn't tell me much:

10.107.70.107,10.251.109.19 | http | i748x820x1 | - | 2013-05-14 12:28:47,683 | "GET /mvc/error500 HTTP/1.0" | "" "git/1.8.1.msysgit.1" | - | - | - | 
10.107.70.107,10.251.109.19 | http | o748x820x1 | - | 2013-05-14 12:28:47,683 | "GET /mvc/error500 HTTP/1.0" | "" "git/1.8.1.msysgit.1" | - | 0 | - |

4 answers

Hi Blake,

That's definitely not expected. There's nothing in the atlassian-stash.log file? You could try running with the following and see if it displays the 500 error:

export GIT_TRACE=1
export GIT_TRACE_PACKET=1
export GIT_CURL_VERBOSE=1

You could also try enabling debug logging and see if there is anything more interesting in the atlassian-stash.log file:

https://confluence.atlassian.com/display/STASH/Stash+debug+logging

Finaly I might recommend raising a support ticket with a support zip attached so we can investigate further.

https://support.atlassian.com/

The issue is almost certainly with your configuration or setup with the JIRA User Directory - something is throwing an exception when authenticating with the username but no password.

Cheers,

Charles

It seems like this was a git configuration issue. I'm not exactly sure why, but I tried doing it from a different machine and everything works. A reinstall of git has solved the issue.

I mispoke, this did not work. I still suspect it's something with git configuration because not every user experiences this, and I also tried a fresh install on another machine and it worked.

It seems like this was a git configuration issue. I'm not exactly sure why, but I tried doing it from a different machine and everything works. A reinstall of git has solved the issue.

EDIT:

I mispoke, this did not work. I still suspect it's something with git configuration because not every user experiences this, and I also tried a fresh install on another machine and it worked.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,770 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you