413 Request Entity Too Large

Hi,

Apologies if you get this twice as I had sent when logged in as another
gmail user.

I have 2 Aggregate servers - one on version 1.2.0 and one on version 1.3.
Both have had no issues with uploading various forms, until I started
testing a form with a repeating group and with a number of images.
The form works fine with a couple of images, but then I tried to submit 8
photos and a signature image.

When I try to submit to either server via the device or directly via
Aggregate, I get an error.
The error on Aggregate is:
413 Request Entity Too Large
nginx/0.7.65

The device camera is set to the lowest resolution of 640 x 480.

The upload is as follows:
1 xml form @ 3KB
7 images @ 212KB
1 image @ 34KB
1 image @ 20KB

Total 1541KB

Any ideas as to why this fails at such small file sizes?

Are there guidelines as to how many images one can upload in one submission
and the total size?
Is the number of media files relevant or is it just the total size of the
submission?

Also, what should the server settings be for version 1.3 in terms of moving
from LONGBLOB data formats back to BLOB data format?
Does this affect what media file sizes should be?

Best regards,

Paul.

This is likely a configuration issue with nginx, as the error seems to be
coming from nginx? It is likely that there is some limit there rejecting
requests at somewhere over 500kB in size.

I am unaware of any max-transmission-size restrictions on Tomcat.

When using MySQL, you do need to increase the communications packet sizes
when working with larger images, especially with the ODK Aggregate versions
that use LONGBLOB for storage. Failing to do this will cause a database
error. See
http://code.google.com/p/opendatakit/wiki/AggregateReleaseNotes#MySQL_Usage_Note

The submission protocol on ODK Collect limits the size of a submission HTTP
POST to 1MB, breaking the submission into multiple POSTs as necessary (if
all the attachments can fit within the 1MB limit, it will send them all up
in a single POST). If you have a media attachment larger than 1MB, it is
sent in its own POST request, which will be as large as necessary to send
the request. For the splitting to work, your forms must have a
meta/instanceID field defined (so that the separate posts can be integrated
on the server). See http://opendatakit.org/help/form-design/

Mitch

··· On Wed, May 22, 2013 at 3:51 AM, Paul wrote:

Hi,

Apologies if you get this twice as I had sent when logged in as another
gmail user.

I have 2 Aggregate servers - one on version 1.2.0 and one on version 1.3.
Both have had no issues with uploading various forms, until I started
testing a form with a repeating group and with a number of images.
The form works fine with a couple of images, but then I tried to submit 8
photos and a signature image.

When I try to submit to either server via the device or directly via
Aggregate, I get an error.
The error on Aggregate is:
413 Request Entity Too Large
nginx/0.7.65

The device camera is set to the lowest resolution of 640 x 480.

The upload is as follows:
1 xml form @ 3KB
7 images @ 212KB
1 image @ 34KB
1 image @ 20KB

Total 1541KB

Any ideas as to why this fails at such small file sizes?

Are there guidelines as to how many images one can upload in one
submission and the total size?
Is the number of media files relevant or is it just the total size of the
submission?

Also, what should the server settings be for version 1.3 in terms of
moving from LONGBLOB data formats back to BLOB data format?
Does this affect what media file sizes should be?

Best regards,

Paul.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Mitch,

Many thanks for your comments and help.
I have asked our sys admin chap to look at the settings for nginx - and I
suspect you are right.

I am away for next week but when I return I will do some testing of how
many images I can load etc.

Best regards,

Paul.

··· On Wednesday, May 22, 2013 11:51:48 AM UTC+1, Paul wrote: > > Hi, > > Apologies if you get this twice as I had sent when logged in as another > gmail user. > > I have 2 Aggregate servers - one on version 1.2.0 and one on version 1.3. > Both have had no issues with uploading various forms, until I started > testing a form with a repeating group and with a number of images. > The form works fine with a couple of images, but then I tried to submit 8 > photos and a signature image. > > When I try to submit to either server via the device or directly via > Aggregate, I get an error. > The error on Aggregate is: > 413 Request Entity Too Large > nginx/0.7.65 > > The device camera is set to the lowest resolution of 640 x 480. > > The upload is as follows: > 1 xml form @ 3KB > 7 images @ 212KB > 1 image @ 34KB > 1 image @ 20KB > > Total 1541KB > > Any ideas as to why this fails at such small file sizes? > > Are there guidelines as to how many images one can upload in one > submission and the total size? > Is the number of media files relevant or is it just the total size of the > submission? > > Also, what should the server settings be for version 1.3 in terms of > moving from LONGBLOB data formats back to BLOB data format? > Does this affect what media file sizes should be? > > Best regards, > > Paul. > > > >