# Chunked input module problem with http\_dav

**URL:** <https://www.ruby-forum.com/t/chunked-input-module-problem-with-http-dav/218713>\
**Category:** NGINX\
**Created:** [April 9, 2012, 10:00pm UTC](https://www.ruby-forum.com/t/chunked-input-module-problem-with-http-dav/218713 "2012-04-09T22:00:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [April 9, 2012, 10:00pm UTC](https://www.ruby-forum.com/t/chunked-input-module-problem-with-http-dav/218713/1 "2012-04-09T22:00:59Z")

</div>

Hi all -

I’m running the latest tagged version of the chunked input body module  
as per [Tags · agentzh/chunkin-nginx-module · GitHub](https://github.com/agentzh/chunkin-nginx-module/tags) (0.23rc2)  
and nginx 1.0.14 with the http\_dav module. I’m seeing some failures  
which are, to my eye, stopping chunkin work at /all/ in this  
combination.

I’m using http\_dav to provide an some upload space. After an upload  
completes (I started at 400MB, and still see the following problem  
with 4MB uploads), I get the following in the debug/error logs:

2012/04/09 20:38:02 [crit] 1485#0: \*3 chmod() “/srv/tmp/0000000001”  
failed (2: No such file or directory), client: 10.0.10.183, server:  
upload.server, request: “PUT /external/testing123 HTTP/1.1”, host:  
“upload.server:81”  
2012/04/09 20:38:02 [crit] 1485#0: \*3 unlink() “/srv/tmp/0000000001”  
failed (2: No such file or directory), client: 10.0.10.183, server:  
upload.server, request: “PUT /external/testing123 HTTP/1.1”, host:  
“upload.server:81”

Then the client receives a 500.  
“/srv/tmp” (the client body temp location) _is_ on the same partition  
as the final resting place as the data.  
If I _don’t_ use chunked input, then the upload works fine.

## Here’s the site config:

server {  
listen \*:81;  
server\_name upload.server;  
chunkin on;  
error\_page 411 = @my\_411\_error;  
location @my\_411\_error {  
chunkin\_resume;  
}  
location / {  
root /srv/data/;  
client\_body\_temp\_path /srv/tmp/  
client\_max\_body\_size 500m;  
dav\_methods PUT DELETE MKCOL COPY MOVE;  
create\_full\_put\_path off;  
dav\_access group:rw all:r;  
}  
}

… and here’s the nginx-V output:

nginx version: nginx/1.0.14  
built by gcc 4.4.5 (Debian 4.4.5-8)  
configure arguments: --conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi  
–http-log-path=/var/log/nginx/access.log  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid  
–with-http\_dav\_module --with-http\_realip\_module  
–with-http\_stub\_status\_module --with-http\_sub\_module  
–add-module=/root/src/nginx-modules/agentzh-chunkin-nginx-module-ddc0dd5  
–prefix=/usr

Any ideas what’s causing this and how I can fix it? Or is chunkin just  
not supposed to be run in this way with http\_dav?

## Cheers, Jonathan

Jonathan M.  
London, Oxford, UK  
[http://www.jpluscplusm.com/contact.html](http://www.jpluscplusm.com/contact.html)

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [April 12, 2012, 5:39am UTC](https://www.ruby-forum.com/t/chunked-input-module-problem-with-http-dav/218713/2 "2012-04-12T05:39:06Z")

</div>

On Mon, Apr 9, 2012 at 1:00 PM, Jonathan M.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 2012/04/09 20:38:02 [crit] 1485#0: \*3 chmod() “/srv/tmp/0000000001”  
> as the final resting place as the data.  
> If I _don’t_ use chunked input, then the upload works fine.

Thanks for the report. I’ll look into this when I have some time 🙂

Best regards,  
-agentzh
