[ckan-dev] 413 file too large nginx
Pedro G Silva
pedro.gracio at deimos.com.pt
Tue Jan 19 13:14:13 UTC 2016
Thank you Adria, your suggestion fixed the issue. Serban thank you for your
suggestion aswell.
On Tue, Jan 19, 2016 at 9:24 AM, Adrià Mercader <adria.mercader at okfn.org>
wrote:
> This should be done in the /etc/nginx/sites-available/ckan file. Try and
> set it in the server block, like on this example and remove it from any
> other place that you added it before:
>
>
> https://github.com/ckan/ckan-packaging/blob/master/common/etc/nginx/sites-available/ckan
>
>
> Adrià
>
> On 18 January 2016 at 16:26, Pedro G Silva <pedro.gracio at deimos.com.pt>
> wrote:
>
>> I set it on http. Can't enter on the directories at sites-enabled and
>> sites-available. I dont know where nginx conencts to ckan, since you guys
>> also use apache. This is just a standard install from your packages
>>
>> On Mon, Jan 18, 2016 at 4:18 PM, Ross Jones <ross at servercode.co.uk>
>> wrote:
>>
>>> 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
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>
>>
>>
>> --
>>
>>
>> [image: DEIMOS Engenharia, SA] <http://www.deimos.pt>
>> *Pedro Gracio Silva*
>> Aerospace Systems / Production Center
>>
>> *Av. D. Joao II, Lt 1.17.01, 10 • 1998-023 Lisboa, Portugal*
>> Ph: +351 21 893 3020 • Fax: +351 21 896 9099
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
--
[image: DEIMOS Engenharia, SA] <http://www.deimos.pt>
*Pedro Gracio Silva*
Aerospace Systems / Production Center
*Av. D. Joao II, Lt 1.17.01, 10 • 1998-023 Lisboa, Portugal*
Ph: +351 21 893 3020 • Fax: +351 21 896 9099
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160119/af43a4f7/attachment-0003.html>
More information about the ckan-dev
mailing list