search cancel

The request failed with HTTP status 413: Request Entity Too Large.

book

Article ID: 172865

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

The customer is receiving errors in the NS logs or Agent logs referring to:

The request failed with HTTP status 413: Request Entity Too Large.

 

This message can appear during many different processes, such as replication or when a client machine is trying to register to a Task Server:

The request failed with HTTP status 413: Request Entity Too Large.

-OR-

A non-fatal exception occurred during replication. the replication job will be restarted from the last check point, Job ID: {GUID}

The request failed with HTTP status 413: Request Entity Too Large.

Environment

ITMS 7.6, 8.0, 8.1, 8.5

Resolution

Please try the following:

Note: if this is happening during a replication or stand-alone replication, apply the suggested changes on both servers.

  1. Open IIS.

  2. Navigate under Default Web Site>Altiris

  3. Scroll down to Management section in the middle frame and open "Configuration Editor".

  4. Select following section (drop down at the top) "system.webServer" and expand it, then locate serverRuntime.

  5. Find there the current value of "uploadReadAheadSize" value, which you can modify

  6. Change it to 10485760(10MB) for example...if it helped then we can try to decrease it until we find a smaller size (but still larger than the default 49152) that keeps the warning "The request failed with HTTP status 413: Request Entity Too Large." for happening.

  7. After modifications please restart w3wp (from the command prompt, run IISRESET)
     

NOTE:
If the suggestion above did not help then try to increase size of HTTP headers:
MS KB article explains all those settings:
http://support.microsoft.com/kb/820129 

Create the following DWORDs, both with the value 65534

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters\MaxFieldLength 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters\MaxRequestBytes