Mercurial client error 255 and HTTP error 404 when attempting to push large files to server

前端 未结 4 1015
不知归路
不知归路 2020-12-23 11:50

Problem:

19/06/10 Update: More evidence problem is server-side. Receiving this error on Windows 7 command line (see below for full traceback):

URLE         


        
4条回答
  •  时光取名叫无心
    2020-12-23 12:42

    Went through the same pain points...

    With the default settings on the IIS server, you will not be able to push large repositories to the server, as IIS has a default maximum request length of only 4 MB, and a timeout for CGI scripts of 15 min, making it impossible to upload large files. To enable the uploading of large files (and this is not easy to find on the web…), do the following:
    1. In IIS Manager, click on the web site node, and click the Limits… link.
    2. Then specify a connection time-out sufficiently large (I chose 1 hour here, or 3600 seconds)
    3. Next, click the node containing hg (as per the installation procedure), then double-click CGI
    4. Specify a sufficiently-long time out for CGI scripts (e.g., 10 hours)

    Now, edit C:\inetpub\wwwroot\hg\web.config, so that it has a new section under , and a specification under :

    
    
      
    […]
        
             
               
          
        
      
      
        
      
    
    

    This specifies an http timeout of a bit more than 6 days, and a maximum upload limit of about 2 GB.

提交回复
热议问题