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

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,205 views 8 11
Read article

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