1. What is the issue? Please be detailed.
We are using ODK Central (version details at end of post) on an AWS EC2 t2.large instance (8 gb ram). This server hosts dozens of forms, including a very large form (dozens of repeats, hundreds of fields, and tens of thousands of submissions already on the server).
When we attempt to download a zip file from the ODK Central web application by clicking "Download" -> "All data without media files (.zip)", we experience two kinds of issues:
- Usually, the download begins (ie, the file shows up in the download bar in the bottom left of google chrome), proceeds slowly, and then stalls. The download appears to finish after approximately 8.0 mb
- Once, after approximately a minute, the download had not begun and a 504 Gateway Time-out page showed up
We have also tried to download the submissions via R, using the ruODK package's submission_export
function. This has a similar failed result.
I suspect that this issue is related to RAM, similar to the one described here:
Failed download records .zip folder from project submission page
My suspicion is further affirmed by the fact that provisioning the server with more memory (16 gb) makes exports work.
2. What steps can we take to reproduce this issue?
Reproducing the exact issue is not possible due to the sensitivity of the data. However, I suspect that a similar result would occur for anyone with (a) a very large number of submissions and (b) a low amount of memory.
3. What have you tried to fix the issue?
We have provisioned the server with more memory, which fixes the issue. However, it seems a shame to keep such an overly-provisioned server up and running all the time (given recurring costs) for a task which happens only a few times per day at most. Though the current "fix" (more memory) works, if there are better approaches, knowing them would be useful.
Version details
versions:
24ee74e5f974a518aa1cc8b06e7addb3be6b4690 (v1.3.3-2-g24ee74e)
5cc6fd79d112ce36d6298c61bb8817689c4c323b client (v1.3.2)
1d1a3a59969e61383da74119e405e67778b7a170 server (v1.3.3)