Salesforce

Deployer microservice fails with error "Request Entity Too Large"

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentApplicable to SDL Web 8 and later product versions only
Symptoms/Context
- After admin had switched from legacy publishing method, only the first 40 pages are deployed successfully.  Afterwards, transport will fail with error 
Transport failed: Could not transport tcm_0-XXX-XXX.Content.zip using HTTPS, cause: Request Entity Too Large
- Deployer log in debug has event
ERROR com.sdl.delivery.deployer.endpoint.controller.DeployerEndpointController - TransportPackage size limit was exceeded for transaction.
- After restarting Deployer, microservice publishing again works for a while.
- Deployer's cd_deployer_conf.xml file has MaxSize attribute added to the HTTPSReceiver element as described in Deployment packages larger than 30 MB cannot be deployed via HTTPUpload in IIS7

 
Resolution
For Deployer microservice config directory, create a new file application.properties with below lines.  Adjust according to the maximum size of the upload package.
spring.http.multipart.max-file-size=50MB
spring.http.multipart.max-request-size=50MB
Restart Deployer service.

If issue persists, it may be necessary to apply hotfix CD_8.1.1.2886.zip and tweak Deployer configuration as discussed in Publishing multiple items fails with error "Could not process package - capacity exceeded" until Deployer is restarted
Root Cause
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by