Git push via HTTP to Stash behind IIS Proxy Time-out

I'm having trouble pushing an existing repository to Stash via HTTP through an IIS 7 Proxy.

The suggestions I've found on the interwebs including increasing the allowable post size on IIS and Tomcat, (done) configuring the server to allow chunked HTTP posts, (can't figure out how despite instructions) and increasing the git buffer size so it doesn't use HTTP chunking. (doesn't help)

The Tomcat side shows an error indicating that it didn't receive the entire post, and the client side shows "The remote end hung up unexpectedly", so it seems to me like the IIS proxy is to blame here, and in fact, when using GIT via SSH, it works fine, but that's not practical in our environment due to the network configuration.

It seems like there's some hard limit on the post size being enforced, but I can't determine why that is, or how to enable IIS and the tomcat connector to work with chunking.

3 answers

This widget could not be displayed.
Bryan Turner Atlassian Team Oct 17, 2012

Charles,

I'm one of the Atlassian Stash developers, and I'd like to try and help with this issue. To facilitate that, could you please open a ticket at support.atlassian.com? We can exchange a bit more information about what you've tried so far and about your environment and then I'll build a similar setup here to reproduce the issue and investigate possible fixes.

Once we've resolved the issue, I'll post the solution we come up with as another answer to this question so the community can benefit from it.

Best regards,
Bryan Turner
Atlassian Stash

Done. Please look up issue SSP-316.

This widget could not be displayed.

As part of the investigation taking place on Atlassian's side, it was discovered that this is overall a Mac->Windows HTTPS issue with large posts.

This problem does not manifest with HTTP, and has been identified by others as happening even with just a large post over HTTPS to a windows server.

Looks like the answer is "There's a problem with large posts over HTTPS using IIS when the client is a Mac".

https://github.com/projectkudu/kudu/issues/171

http://social.msdn.microsoft.com/Forums/en-US/azuregit/thread/2edc314d-8e18-4d12-843e-92d6de6c3c3d

This widget could not be displayed.

Hi Charles,

how did you manage to proxy Stash trough IIS?

My Problem is that i am able to open the webinterface but can't do any git operation through IIS.

Kind regards

Pascal Empl

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

171 views 18 7
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