When I clone a large (1 GB) repository that is sitting behind an haproxy. It fails after a minute or so like this:
prompt$ git clone https://myurl/stash/scm/zra/webapp.git
Cloning into 'webapp'...
remote: Counting objects: 692893, done.
remote: Compressing objects: 100% (175584/175584), done.
error: RPC failed; result=56, HTTP code = 200 MiB | 545.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
The clone works fine if I pull stash out from behind the proxy. I expect I'm configuring something wrong for large file transfers, but I am not sure whats wrong or what configuration option to set. Can somebody who is using haproxy in a production environment point me to some troubleshooting technique?
Thanks!
Jeff
Yes, I saw that KB article. I've adjusted the client side git config setting with:
[http]
postBuffer = 524288000
As another article mentioned and its working for now, hopefully it will stay working. My proxy config is pretty simple and is "mode http". If it breaks again, I will remove confidential information from the config and post it here.
Hi Jeff. It must be the one below: https://stackoverflow.com/questions/22005259/git-push-error-rpc-failed-result-56-http-code-0/22005335#22005335?newreg=e461c39d64d54cb59f5a54ac88cee061 Thanks for your answer, I voted it up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The KB article I linked you to also has that suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jeff,
We've seen a similar error before and wrote this KB article: https://confluence.atlassian.com/display/STASHKB/Unable+to+clone+Stash+Repository+with+HTTP+transport+over+haproxy+using+Windows+Git+clients
Would you mind sharing your haproxy configuration?
Best regards,
Thiago Bomfim
Atlassian Support - DevTools
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thiago,
Thanks for the response.
As noted above, I'm using haproxy. Also, as shown in the command above, I'm trying to clone not push (in other words going the other direction). Does the article still apply?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeff,
Which proxy are you using? In the article below:
We talk about a specific parameter that could cause that in ngnix.
Could you please have a look and give us a feedback?
Best regards,
Thiago Bomfim
Atlassian Support - DevTools
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.