File too large (> 100MB) and Request Entity Too Large (413)

1. What is the issue? Please be detailed.

Getting File too large (> 100MB) on enketo web form and and Request Entity Too Large (413) from odk collect mobile application. See screenshots below

2. What steps can we take to reproduce this issue?

I have installed ODK on digitalocean server. Default configuration is file sizes are limited to 100mb.

3. What have you tried to fix the issue?

I’ve followed the guide here: https://docs.getodk.org/central-troubleshooting/#file-upload-fails-with-413

I’ve stoped docker container, changed the odk.conf.template config and did docker compose build and then did docker compose up -d

Proof of update:

~/central# cat files/nginx/odk.conf.template

To confirm if container did get the updated file, I ran

docker compose exec nginx cat /etc/nginx/conf.d/odk.conf

it has also given updated 600m number.

But I’m still facing the same issue of 100mb limit in eketo webfom. I haven’t tried mobile app submission yet as i dont have android phone with me at the moment.

Please help.

Issue has been resolved.

Need to update these two files:

these files are in

cd central/server/lib...
and
cd central/server/test/unit...

I’ve also increased RAM from 2gb to 4gb to better handle the upload.

Just to be safe and allow the server to accept the updated limit, i changed the client_max_body_size at a bunch of conf.template files.

Need to update the documentation accordingly.

Thanks for sharing the solution. I've updated the docs at https://docs.getodk.org/central-troubleshooting/#file-upload-fails-with-413

1 Like