Unable to upload more than 10mb

Asif Shakir's Avatar

Asif Shakir

06 Nov, 2013 07:07 PM

I have installed HGLab on an Amazon EC2 instance with Windows 2008 R2 server and SQL Server 2008 R2

Whenever I try to upload a repository over 30mb it fails. I have tried increasing timeout as well as increasing the request content limits but to no avail.

  1. Support Staff 1 Posted by Anton Gogolev on 06 Nov, 2013 07:11 PM

    Anton Gogolev's Avatar

    Asif,

    I assume by "uploading" you mean "pushing the entire repository to HgLab"?

    Can you confirm that pushes of smaller repositories do actually succeed?
    Also, what is the error message it's failing with?

    On Wednesday, November 6, 2013, Asif Shakir wrote:

  2. 2 Posted by Asif Shakir on 06 Nov, 2013 07:15 PM

    Asif Shakir's Avatar

    Hi Anton,

    Yes I am trying to push my repository to the server.

    The error message that I receive is "URLError: [Errno 10054] An existing
    connection was forcibly closed by the remote host"

    Smaller uploads work fine.

    I tried to push from the server instance itself. It was a 64mb upload. It
    zoomed till 30mb then paused for like 15-20 seconds then zoomed to 60mb and
    then fails with the above error message.

    From my laptop it fails around the 10mb mark,

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  3. Support Staff 3 Posted by Anton Gogolev on 06 Nov, 2013 07:19 PM

    Anton Gogolev's Avatar

    Asif,

    Are you running .NET 4.0 on a 64-bit version of Windows? Is so, could you
    please try enabling 32-bit applications in the Application Pool settings in
    IIS?

    If not, I'll be starting my investigations ASAP.

    On Wednesday, November 6, 2013, Asif Shakir wrote:

  4. 4 Posted by Asif Shakir on 06 Nov, 2013 07:22 PM

    Asif Shakir's Avatar

    Yes it is .NET 4.0 on a 64 bit server.

    I had enabled 32 bit applications in the Application Pool while searching
    for a solution and looking at the various suggestions to upload large files.

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  5. 5 Posted by Asif Shakir on 06 Nov, 2013 07:29 PM

    Asif Shakir's Avatar

    One thing. I am using SSL. The SSL Certificate is from GoDaddy.

    https://ssl.equitec.in/hg

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  6. Support Staff 6 Posted by Anton Gogolev on 06 Nov, 2013 07:41 PM

    Anton Gogolev's Avatar

    I doubt that SSL has anything to do with that.

    One more thing to check, please. Run these commands in an Elevated command prompt:

    icacls {path-to-app_data} /t /remove:g iis_iusrs
    icacls {path-to-app_data} /grant iis_iusrs:(OI)(CI)(F)
    

    By {path-to-app_data} I mean full path to App_Data folder inside HgLab installation directory. This will allow HgLab to write logs to that location.

    Retry you big push after running these commands and post it here.

    Thanks in advance!

  7. 7 Posted by Asif Shakir on 06 Nov, 2013 07:59 PM

    Asif Shakir's Avatar

    Same thing.

    It uploads 30mb then waits for the 120 second timeout. Then uploads another
    30mb and then waits and gives an error.

    The below link seems to suggest that the 30MB limit for HTTPS is enforced
    for python irrespective of config file settings.

    http://forums.iis.net/t/1197751.aspx

    I tried uploading without SSL and it works fine.

    I have even run the BEAST tool to disable SSL 2.0 but still cannot get it
    to upload more than 30MB with SSL.

    The only reason I wanted to have SSL was because I need to type username
    and password repeatedly without SSL.

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  8. Support Staff 8 Posted by Anton Gogolev on 06 Nov, 2013 08:07 PM

    Anton Gogolev's Avatar

    Could you attach the log file here, please?

    That's a nice find, but HgLab does not have any Python dependencies whatsoever. It's pure .NET, so I doubt that this particular error applies here, but I will investigate anyway.

  9. Support Staff 9 Posted by Anton Gogolev on 06 Nov, 2013 08:17 PM

    Anton Gogolev's Avatar

    Oh, this actually relates to client-side Python ( http://bz.selenic.com/show_bug.cgi?id=3905 ). Now that's interesting.

  10. 10 Posted by Asif Shakir on 06 Nov, 2013 08:24 PM

    Asif Shakir's Avatar

    My latest log file has vanished. Not sure maybe because I restarted the
    Server.

    I tried generating a fresh log file but for some weird reason it is not
    creating the file.

    Attaching an older log file. This has the failed uploads.

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  11. 11 Posted by Asif Shakir on 06 Nov, 2013 08:26 PM

    Asif Shakir's Avatar

    Wow. Thats crazy. Will try out with Tortoise 2.4.1 and revert.

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  12. Support Staff 12 Posted by Anton Gogolev on 06 Nov, 2013 08:30 PM

    Anton Gogolev's Avatar

    Or else try with Mercurial 2.8 (released yesterday, I believe). This bug was assumed to be fixed in 2.7.

  13. 13 Posted by Asif Shakir on 06 Nov, 2013 08:31 PM

    Asif Shakir's Avatar

    Wow. It works absolutely fine with Tortoise 2.4.1.

    Thanks for your time and help.

    I would like to say that you have made an amazing application.

    Just one query is there some way to change the avatars to something which
    the user would like to have - I have a few female employees and they get
    all male avatars :)

    Regards,

    Asif Shakir

    Equitec

    Technical Architect

    +91 22 2503 6125/6/7

    +91 22 9820342338

    www.equitec.in

    www.equitecglobal.com

    Disclaimer :

    This email communication may contain privileged and confidential
    information and is intended for the use of the addressee only.If you are
    not an intended recipient you are requested not to reproduce,copy
    disseminate or in any manner distribute this email communication as the
    same is strictly prohibited. If you have received this email in error,
    Please notify the sender immediately by return e-mail and delete the
    communication sent in error.Email communications cannot be guaranteed to be
    secure & error free and EQUITEC is not liable for any errors in the email
    communication or for the proper, timely and complete transmission thereof.

  14. Support Staff 14 Posted by Anton Gogolev on 06 Nov, 2013 08:40 PM

    Anton Gogolev's Avatar

    Bizzare.

    HgLab has built-in avatar generator (so-called "8-bit icon") which is male only. It also supports standard Gravatars, whereby users can set whatever image they want. All this is managed in Administration - Avatars.

    Thanks for the kind words, Asif!

    On 07.11.2013, at 0:31, "Asif Shakir" <[email blocked]> wrote:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM

 

19 Dec, 2019 06:58 AM
21 Aug, 2019 09:07 AM
30 Jul, 2019 08:59 PM
31 May, 2019 02:29 PM
26 Nov, 2018 01:47 PM
16 Nov, 2018 07:51 PM