# HTTP 411 Length Required Errors

**URL:** <https://www.ruby-forum.com/t/http-411-length-required-errors/198192>\
**Category:** NGINX\
**Created:** [October 27, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/http-411-length-required-errors/198192 "2010-10-27T20:05:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [October 27, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/http-411-length-required-errors/198192/1 "2010-10-27T20:05:12Z")

</div>

Greetings, we’d like to use nginx to balance for multiple instances of  
core grid services for the Atlanta Clinical & Translational Science  
Biomedical Informatics Grid. We’ve used nginx successfully on several  
other projects, but this time we’re seeing the errors below when  
accessing from grid clients. Note that these registration requests  
succeed when pointed directly to the JBoss container hosting the  
back-end grid services but not when pointed to nginx. These clients are  
based on caGrid (cancer research grid) and Globus grid foundation. This  
is the first time we’ve used nginx in conjunction with these types of  
clients, so we suspect it has something to do with these clients, but we  
noticed this previous nginx thread and wondered if others have had and  
solved this problem recently either with nginx configuration or by  
modifying client behavior. Any help or suggestions would be greatly  
appreciated…thanks!

–Steve

2010/10/27 12:54:40 [notice] 12501#0: nginx/0.8.53  
2010/10/27 12:54:40 [notice] 12501#0: built by gcc 4.4.4 20100630 (Red  
Hat 4.4.4-10) (GCC)  
2010/10/27 12:54:40 [notice] 12501#0: OS: Linux 2.6.32.16-linode28

* * *

## caGrid Dorian Service Error contacting the IndexService balanced by nginx:

13:31:02,796 WARN [ServiceGroupRegistrationClient] Warning: Could not  
register [https://grid.poc.actsi.org:9443/wsrf/services/cagrid/Dorian](https://grid.poc.actsi.org:9443/wsrf/services/cagrid/Dorian) to  
servicegroup at  
[http://index.poc.actsi.org/wsrf/services/DefaultIndexService](http://index.poc.actsi.org/wsrf/services/DefaultIndexService) – check  
the URL and that the remote service is up. Remote exception was  
(411)Length Required  
13:31:02,796 ERROR [AdvertisementClient] Got exception from status  
callback:(411)Length Required  
AxisFault  
faultCode: {[http://xml.apache.org/axis/](http://xml.apache.org/axis/)}HTTP  
faultSubcode:  
faultString: (411)Length Required  
faultActor:  
faultNode:  
faultDetail:  
{}:return code: 411

* * *

## nginx access.log:

74.207.227.154 - - [27/Oct/2010:13:31:02 -0400] “POST  
/wsrf/services/DefaultIndexService HTTP/1.1” 411 181 “-” “Axis/1.2RC2”

* * *

## nginx error.log:

2010/10/27 13:31:02 [info] 12549#0: \*3 client sent “Transfer-Encoding:  
chunked” header while reading client request headers, client:  
74.207.227.154, server: [grid.poc.actsi.org](http://grid.poc.actsi.org), request: “POST  
/wsrf/services/DefaultIndexService HTTP/1.1”, host:  
“[index.poc.actsi.org](http://index.poc.actsi.org)”

Posted at Nginx Forum:

> **[HTTP 411 Length Required Errors](https://forum.nginx.org/read.php?2,145039,145039#msg-145039)**
>
> Greetings, we'd like to use nginx to balance for multiple instances of core grid services for the Atlanta Clinical & Translational Science Biomedical Informatics Grid. We've used nginx successfully on several other projects, but this time we're...
