Salesforce

For Tridion Sites 9.0, when publishing large files this fails with error "cause: HTTP/1.1 413 Request Entity Too Large "

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentTridion Sites 9.0, but issue is not product version specific. May occur for any product version that is using Nginx as a load balancer between CM and CD servers.
Symptoms/Context
- When publishing large pages, this fails with error below
BaseHTTPSTransportConnector - Unable to send TransportPackage <TCMID>.Content.zip to url: https://HOSTNAME/httpupload cause: HTTP/1.1 413 Request Entity Too Large

- No errors are seen in the Tridion or Application Windows event logs on CM server.
- No errors seen in the Deployer log file, verified that the package never reaches the Deployer.
- Deployer application.properties file in config folder has large file uploads enabled, as discussed in KB article Deployer microservice fails with error "Request Entity Too Large" just in case.

spring.http.multipart.max-file-size=1000Mb
spring.http.multipart.max-request-size=1000Mb

- Issue is seen in UAT environment, but not in Development environment.
- In UAT environment, customer has a Nginx server acting as load balancer in CM and CD environments.

Resolution
Issue resolved after Nginx default file upload limit was increased, as discussed in below blog post for param Client_max_body_size.
https://www.tecmint.com/limit-file-upload-size-in-nginx/

Only the Deployer endpoint path needed to be increased, such as
https://HOSTNAME/DEPLOYER_SERVICE/httpupload
Root Cause
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by