cant push more than a few MB using HTTPS

2,098 views
Skip to first unread message

Mathew Pearson

unread,
Dec 19, 2013, 2:14:16 PM12/19/13
to bonobo-g...@googlegroups.com
We are using 2.0.1 latest bonobo revision with IIS7 on windows server 2008.

We have IIS set up to allow both HTTP and HTTPS.

With HTTP we can push to a repo no problems with all sizes.

I have set the following:
<requestLimits maxAllowedContentLength="524288000" />
<httpRuntime maxRequestLength="524288000" />


With HTTPS; any client we use (sourcetree, tortoisegit) it looks like the upload is done but then it errors out:

git.exe push --all --progress  "origin"

Counting objects: 1621, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1605/1605), done.
Writing objects: 100% (1621/1621), 19.35 MiB | 13.93 MiB/s, done.
Total 1621 (delta 741), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; result=56, HTTP code = 0
Everything up-to-date


git did not exit cleanly (exit code 1) (142695 ms @ 12/19/2013 11:09:52 AM)

Every time this fails it makes a 7.5MB file inside repo/objects/pack and i have to forcequit the git.exe from process explorer to be able to delete the temp files.

The Remote origin repo i pulled from successfully is in format https://hostname.domain.com:666/Bonobo.Git.Server/Repository.git

Any ideas why this is happening??

Thanks,

Mathew

Jakub Chodounský

unread,
Dec 20, 2013, 11:10:39 AM12/20/13
to bonobo-g...@googlegroups.com
Does it work for smaller repositories (e.g. with one small text file)?
Message has been deleted

Mathew Pearson

unread,
Dec 20, 2013, 11:26:17 AM12/20/13
to bonobo-g...@googlegroups.com
Yes it works for small text file around 8KB

Jakub Chodounský

unread,
Dec 20, 2013, 11:37:36 AM12/20/13
to bonobo-g...@googlegroups.com
I would recommend playing with those settings:

  • run git config http.postBuffer [desired size] on your client, you can try 524288000
  • increase <requestLimits maxAllowedContentLength=”[desired size]”> in web.config; the size could be 1073741824
  • increase <httpRuntime maxRequestLength=”[desired size]”> in web.config; try the value 1024000

The problem is in the configuration of your IIS or in the request size handling of your application (web.config).

Mathew Pearson

unread,
Dec 20, 2013, 12:21:56 PM12/20/13
to bonobo-g...@googlegroups.com
i set all of that already but it didn't seem to change anything.  I set it in the global and system configs.

Its almost like it does everything except close out the session...
I changed my session timeout in IIS to 10 minutes and the tortoisegit client waited 10 minutes to give the same error:

Mathew Pearson

unread,
Dec 20, 2013, 12:36:23 PM12/20/13
to bonobo-g...@googlegroups.com
just more info, IIS applicationHost.config:

                <requestFiltering>
                    <requestLimits maxAllowedContentLength="2147483648" />
                </requestFiltering>

Jakub Chodounský

unread,
Dec 20, 2013, 1:17:27 PM12/20/13
to bonobo-g...@googlegroups.com
Could you try the latest version of msysgit? The tortoisegit and Visual Studio may use it internally, but just to be sure.

Mathew Pearson

unread,
Dec 20, 2013, 1:34:05 PM12/20/13
to bonobo-g...@googlegroups.com
im using 1.8.4 version of msysgit

Mathew Pearson

unread,
Dec 20, 2013, 3:17:59 PM12/20/13
to bonobo-g...@googlegroups.com
just fyi, when i unset the postBuffer:

$ git.exe push --all --progress "origin"
Username for 'https://hostname.domain:666': Mathew
Password for 'https://Mat...@hostname.domain:666':
Counting objects: 1624, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1607/1607), done.
Writing objects:  24% (390/1623), 3.70 MiB | 3.68 MiB/s

24% then errors out.

Jakub Chodounský

unread,
Dec 20, 2013, 3:31:55 PM12/20/13
to bonobo-g...@googlegroups.com
I found that on Ubuntu, there was an error with SSL library (http://codeplex.codeplex.com/workitem/26133) - could you perhaps try it with older versions of msysgit? Or perhaps try to do the same on github or bitbucket with a failing repository over https?

Mathew Pearson

unread,
Dec 20, 2013, 4:35:09 PM12/20/13
to bonobo-g...@googlegroups.com
i tried rolling back to the earlier version 1.8.3 and the issue persists, i dont have a bitbucket or github account so id have to create one to try that.

Its very strange that there is no error on HTTPs when the file push size is small.

Mathew Pearson

unread,
Dec 20, 2013, 7:37:06 PM12/20/13
to bonobo-g...@googlegroups.com
so i uploaded same project to gitlabs:

Mathew@ENG-LAPTOPMAT ~/newskyrouter (master)
$ git push -u origin master
Username for 'https://gitlab.com': username
Counting objects: 1622, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1605/1605), done.
Writing objects: 100% (1621/1621), 19.35 MiB | 13.20 MiB/s, done.
Total 1621 (delta 737), reused 0 (delta 0)
efrror: RPC failed; result=22, HTTP code = 413
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

Mathew@ENG-LAPTOPMAT ~/newskyrouter (master)

same error!

zAfLu

unread,
Dec 25, 2013, 9:01:38 PM12/25/13
to bonobo-g...@googlegroups.com
You need to change (increase) your "uploadReadAheadSize".
On iis7.5 its:

Launch "Internet Information Services (IIS) Manager"
  1. Expand the Server field
  2. Expand Sites
  3. Select the site you want to make the modification for.
  4. In the Features section, double click "Configuration Editor"
  5. Under "Section" select: system.webServer>serverRuntime
  6. Modify the "uploadReadAheadSize" section ("The value must be between 0 and 2147483647.")
  7. Click Apply
  8. Restart the Website

This helps for me. You may need to test a bit with the value.

Hope i could help you.


Message has been deleted

zAfLu

unread,
Dec 26, 2013, 11:36:06 AM12/26/13
to bonobo-g...@googlegroups.com
ok ... just work for file between 0 and 10MB :/ sry

Http works fine with files Over 1gb but https didnt work Over 10mb ... (On The Same repo)

zAfLu

unread,
Jan 10, 2014, 7:57:31 PM1/10/14
to bonobo-g...@googlegroups.com
Will you look into it?

Jakub Chodounský

unread,
Jan 11, 2014, 4:41:43 AM1/11/14
to bonobo-g...@googlegroups.com
No, I don't have enough time at the moment. You are free to investigate the issue - the sources are available on github (https://github.com/jakubgarfield/Bonobo-Git-Server/)

zAfLu

unread,
Jan 11, 2014, 5:00:37 PM1/11/14
to bonobo-g...@googlegroups.com
Np Jakub.

BUT i think i got an solution for this. It work for me.

It seams that IIS has a huge bug or security policy for HTTPS. Ive read tons of threads in the www and finally find "http://forums.iis.net/t/1197751.aspx?IIS+7+5+CGI+SSL+Problems+with+upload+limit+30MB+cap+" i tryed the programm on the last post and disable SSL v2 for my IIS ... and it worked for me. i can push text files over 400 MBs.
Would be awesome if someone else could try it ... maybe Mathew??


Jakub Chodounský

unread,
May 10, 2014, 2:47:21 AM5/10/14
to bonobo-g...@googlegroups.com
When problems with SSL persist, try to apply following path http://support.microsoft.com/kb/2634328/en-us

Aimeast Lee

unread,
May 13, 2014, 12:22:52 PM5/13/14
to bonobo-g...@googlegroups.com
I don't think this bug from IIS but form Windows 2008. Because I have same issue about this, then I have done many many tests.

The result of testing is only the the combination msysGit + Chunked POST + HTTPs + Windows 2008 not working!

in brief,
Win2008+IIS not working
Win2008+IIS Express (both 7.5 and 8.0) not working

but,
Win2012+IIS works well
Win2012+IIS Express (8.0) works well

So, the bug not from IIS but from Windows 2008.

My recommendation is:
Update server side to Windows2012
OR
DO NOT use any msysgit based Git client, such as Git Extensions, TortoiseGIT
U can use libgit2 or libgit2sharp based Git client such as GitHub for Windows, VS official Git(Microsoft Git Provider)

----------------------------------
By the way, GitCandy is a new choice for Server side Git on Windows.

Radoslav Štofko

unread,
Mar 3, 2015, 9:45:25 AM3/3/15
to bonobo-g...@googlegroups.com
On page http://bonobogitserver.com/frequently-asked-questions/ is link for ms hotfix, which solve the problem. Regedit changes not helped. RS
Reply all
Reply to author
Forward
0 new messages