We are trying ODK for our organization. We have installed aggregate 1.5 under Tomcat 7 and apache2 with Postgresql 9.3 and the security is set to REQUIRES_SECURE_CHANNEL so we only connect throught HTTPS. We also set a reverse proxy for redirecting http->https (so we can't use ANY_CHANNEL because Collect can't follow the 302 redirection when submitting).
With this config, all works fine with ODK Collect. We can use sample like BIRDS.
Submitting pictures to aggregate works fine, pictures are stored under binary field in the database and we can extract it manually to check it. So no trouble on this side.
The trouble is on the way back : when we try to get submissions with aggregate's web interface or Briefcase : the download failed.
Under aggregate, we get "Internal server error 500" when we ask the thumbnail or when we use this request :
here is the complete log (from tomcat start)
catalina.out.zip (6.4 KB)
Under Briefcase this is the error we get :
[briefcase-pull-2-thread-1] INFO org.opendatakit.briefcase.util.ServerFetcher - Fetched instanceID=uuid:6539b7fb-06b6-440c-8275-a98b480366a2
[briefcase-pull-2-thread-1] ERROR org.opendatakit.briefcase.util.AggregateUtils - Fetch of /home/yogis/Documents/odk/ODK Briefcase Storage/forms/Birds/instances/uuid6539b7fb-06b6-440c-8275-a98b480366a2/1526444871289.jpg failed. Detailed reason: Internal Server Error (500)
[pool-1-thread-1] ERROR org.opendatakit.briefcase.util.ServerFetcher - failure during submission download
java.util.concurrent.ExecutionException: org.opendatakit.briefcase.model.TransmissionException: Fetch of /home/yogis/Documents/odk/ODK Briefcase Storage/forms/Birds/instances/uuid6539b7fb-06b6-440c-8275-a98b480366a2/1526444871289.jpg failed. Detailed reason: Internal Server Error (500)
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.opendatakit.briefcase.util.ServerFetcher.downloadAllSubmissionsForForm(ServerFetcher.java:345)
at org.opendatakit.briefcase.util.ServerFetcher.downloadFormAndSubmissionFiles(ServerFetcher.java:194)
at org.opendatakit.briefcase.util.TransferFromServer.doAction(TransferFromServer.java:43)
at org.opendatakit.briefcase.util.TransferAction$GatherTransferRunnable.run(TransferAction.java:90)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.opendatakit.briefcase.model.TransmissionException: Fetch of /home/yogis/Documents/odk/ODK Briefcase Storage/forms/Birds/instances/uuid6539b7fb-06b6-440c-8275-a98b480366a2/1526444871289.jpg failed. Detailed reason: Internal Server Error (500)
at org.opendatakit.briefcase.util.AggregateUtils.commonDownloadFile(AggregateUtils.java:137)
at org.opendatakit.briefcase.util.ServerFetcher.downloadMediaFileIfChanged(ServerFetcher.java:610)
at org.opendatakit.briefcase.util.ServerFetcher.downloadSubmission(ServerFetcher.java:517)
at org.opendatakit.briefcase.util.ServerFetcher.access$100(ServerFetcher.java:59)
at org.opendatakit.briefcase.util.ServerFetcher$SubmissionDownload.call(ServerFetcher.java:424)
at org.opendatakit.briefcase.util.ServerFetcher$SubmissionDownload.call(ServerFetcher.java:406)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more
From logs, Catalina.out give no trace of that error. And I don't see any tomcat's stdout.log file
Maybe we don't look where we should.
For now we are staying without any idea of what's happend so if anybody has an idea, it's will be great.
thanks!