[ckan-dev] 413 file too large nginx

Ross Jones ross at servercode.co.uk
Mon Jan 18 16:18:12 UTC 2016


Hi,

> On 18 Jan 2016, at 16:08, Pedro G Silva <pedro.gracio at deimos.com.pt> wrote:
> 
> Hi All
> Im trying to upload a 250MB file to the latest version of ckan (wget http://packaging.ckan.org/python-ckan_2.5-trusty_amd64.deb)
> 
> So after I tried to upload the file and got this error, I adjusted the ckan.max_resource_size  and ckan.max_image_size to suitable values. Restarted nginx, apache. Error persisted, so I went to nginx config (/etc/nginx/nginx.conf) and added client_max_body_size 500M; . Restarted apache and nginx, but the error still persists. Any insight?

Did you set client_max_body size in a location block, server, or http ?

It's probably best if you add to to whatever your file is called in /etc/nginx/sites-enabled/MYCONF.conf inside a location block that routes to CKAN.

Cheers

Ross




More information about the ckan-dev mailing list