(no problem; interesting to hear the extreme cases for the tool).
As for the transmission process, it has been a while since I've looked at
it; it was intended that a transmission failure would trigger one re-send
of that data, then advance to the next set of attachments. This may or may
not still be the case (ODK Collect tries to bucket attachments in 10MB
chunks for transmission to the server).
Attempting to re-submit these failed transmissions (i.e.., via the Send
Finalized Form screen) will always send all the data to the server all
over again -- the OpenRosa submission protocol does not have a mechanism
to find out what files the server already has and omit re-sending those.
The ability to successfully send media attachments depends upon the
configuration of the server and the speed of your network from the device
to the server.
First, on the server, the JVM configuration must be large enough to
hold the entire contents of your largest media attachment in memory. To be
conservative, I would recommend adding 100MB to that size for the minimum
size of your server JVM.
So if you are sending a 100MB file, you will need a JVM configured for
200MB.
Second, sending all of that data will take time. There are timeouts for
the communications channel between your device and the server that may
trigger if your network is slow. For example, on Google AppEngine, there is
an overall 60-second request timeout -- if the transmission and processing
takes longer than 60 seconds, Google will terminate the interaction in a
very harsh way.
To put this in perspective, if you have a 3Mb/second pathway to the server
(an unusually-fast 3G connection), then a 100MB file (800Mb), would take
~270 seconds to transmit -- and that is just sending it. The server cannot
process the file until it is fully received from the client, and its
processing entails sending the data to other servers for storage. Even at
the very-fast data rates within a computing cluster, this would take
several more seconds.
I suspect the network speed is what is killing you...
Mitch
On Wed, Jul 2, 2014 at 2:49 AM, Christopher Robert <chrislrobert@gmail.com wrote:
Hi Yaw,
Yes, sorry for the trouble. We are working with Bob via our support
system. As he says, he is sending a form from China with over 1,500
multi-megabyte media attachments. This may be a case where sending via the
server is just not going to work as there may be numerous challenges. We're
working to support him, but his is obviously a challenging and very unusual
case. (He also gives us only a few hours to resolve something before coming
to this forum.)
Best,
Chris
On Tue, Jul 1, 2014 at 9:12 PM, Yaw Anokwa yanokwa@nafundi.com wrote:
Bob,
Sounds like you should email the guys at SurveyCTO...
Yaw
Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.
On Tue, Jul 1, 2014 at 6:10 PM, bobachgill@gmail.com wrote:
What would make the sending of a form with media files get stuck in a
loop trying over and over to get past sending that n'th media file in a
form?
What I have tried...
- closing and restarting SurveyCTO and restarting the send
- checked my connection --- I can browse the internet from the device
- waiting enough time --- my phone data usage shows that the app has
sent 4x the data required to send the form
- make sure I am sending only one form
After all this only 650 of the media files have successfully send and
350 remain unsent.
The phone's data traffic monitor shows consistent increase in data
movement. So I can deduce that SurveyCTO is attempting to send the same
n'th file over and over again... but having to resend it because of some
retry logic.
One thought is that one media file is 20 percent larger than the
others and the time stamp has it about 650 down the list of media files to
upload. If the send goes by time stamp order that would put it right
about the time when the process is getting stuck in a loop. Could it be
that that 12MB file size is getting stuck in a loop of trying to upload?
If so... can I test this by removing or replacing that file with one
of the same name but smaller file size and restart the send to see if that
corrects the looping? As long as replace the suspect media file with one
smaller but the same name will that disturb the marked completed form?
Many thanks!
Bob
--
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/d/optout.
--
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/d/optout.
--
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/d/optout.
--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com
--
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/d/optout.