Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 3058 days ago | link | parent

It worked fine for me:

  saving multipart data clen is 1591333 SAVED multipart data. Success!!!
What's the specific file you're uploading?

1 point by lark 3058 days ago | link

I misled you, I'm sorry. The example I just provided works for me.

  $ md5sum bzip2_1.0.5.orig.tar.gz 
  3c15a0c8d1d3ee1c46a1634d00617b1a  bzip2_1.0.5.orig.tar.gz

  saving multipart data clen is 841607 SAVED multipart data. Success!!!
Yet the full app I have that uses this logic does not work. I'm not sure I can explain why.


1 point by akkartik 3058 days ago | link

Thanks for the update. If you manage to narrow it down to a new code sample I'd love to see it.


2 points by lark 3057 days ago | link

I verified that the example code I just provided does not work if nginx 0.7.67-3+squeeze2 from Debian is proxying connections to Anarki with the following configuration:

  server {
    listen 80;
    access_log /var/log/nginx/;

    location / {
      proxy_set_header  X-Real-IP  $remote_addr;


1 point by akkartik 3057 days ago | link

That's really useful, thanks. A quick google for 'nginx post length limit' brings up this link: which suggests changing client_max_body_size. Does that help?


1 point by lark 3056 days ago | link

Thanks for the link.

I tried setting the following in /etc/nginx/sites-available/

  server {
  # ... various vars as in plus the following:
  client_max_body_size 10m;
I also tried with client_max_body_size 10000000;

In both cases uploading the bzip2 file hangs.

I also tried setting client_max_body_size in /etc/nginx/nginx.conf but there get a different error:

  Restarting nginx: [emerg]: unknown directive "client_max_body_size" in /etc/nginx/nginx.conf:31
So it doesn't work for me. The documentation at suggests that the default value is 1m. This means that bzip2, which is under 1m, should be uploaded without a problem.

Update: Tried setting "client_max_body_size 32m;" under the "http" section in /etc/nginx/nginx.conf but posting still hangs.


1 point by akkartik 3048 days ago | link

Ok I finally got around to trying to replicate this, and you're right, that setting doesn't seem to make a difference.

Sorry this took so long.


1 point by akkartik 3056 days ago | link

I assume you restarted the nginx service?


1 point by lark 3056 days ago | link

Yes. Does upload in Anarki behind nginx work for you?