1. What is the problem? Be very detailed.
I've just installed ODK Central in an EC2 instance in AWS. This instance is behind an Application Load Balancer that is doing path forwarding. As I cannot setup Central in a sub-directory and I cannot route trafic from a path to the root Central domain (ODK Central accessible through some concrete URL path), I've opted for setting up Central on different ports:
# Use fully qualified domain names. Set to DOMAIN=local if SSL_TYPE=selfsign. DOMAIN=my.fqdn.org # Used for Let's Encrypt expiration emails and Enketo technical support emails SYSADMIN_EMAILemail@example.com # Options: letsencrypt, customssl, upstream, selfsign SSL_TYPE=upstream # Do not change if using SSL_TYPE=letsencrypt HTTP_PORT=8080 HTTPS_PORT=8443
My Application Load Balancer is listening on those ports and routing traffic accordingly to the EC2 instance. I use SSL until the balancer(in fact, the balancer is configured with our certificate) but not from the balancer to the EC2 instance (internally).
I can successfully access and navigate the web interface either through https://my.fqdn.org:8443/ or http://my.fqdn.org:8080/. I can even list the forms in ODK Collect when using the legacy QR code but I cannot download them. I get the message "Failure".
2. What app or server are you using and on what device and operating system? Include version numbers.
ODK Central versions (clicking on the version link on the login web page):
70ec99f02885a06e37709db6319bfdf96fac84eb client (v1.2.2)
59556ecea91f0a25678cd6da0084adb7e66ca099 server (v1.2.1)
Ubuntu 18.04.5 LTS (bionic) x86_64
3. What you have you tried to fix the problem?
I've tried to preview the form from Central with Enketo and I've got an error as it is requesting to:
So seems like Central is using HTTPS but without my HTTPS 8443 port. Could be that Collect is doing the same when trying to download. If I try to use the Managed QR Code, I get "Nothing available to display. Try getting and filling out a blank form" message and a notification telling "Form update failed".
4. What steps can we take to reproduce the problem?
I've just installed a fresh setup of Central with the previous .env file and upload and upload a basic example form (https://github.com/getodk/sample-forms/blob/master/Basic.xml).
5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.