getodk / central

ODK Central is a server that is easy to use, very fast, and stuffed with features that make data collection easier. Contribute and make the world a better place! ✨🗄✨
https://docs.getodk.org/central-intro/
Apache License 2.0
125 stars 151 forks source link

Error: Could not connect to server (public access link) #161

Closed green3g closed 4 years ago

green3g commented 4 years ago

I installed ODK Central on my local linux distro using the docker install steps. I setup the .env file as:

SSL_TYPE=selfsign
DOMAIN=lvh.me
SYSADMIN_EMAIL=me@me.com

Everything seems to work up until the point where I generate a public URL. Enketo loads, but there's a network error going to:

https://lvh.me/-/transform/xform/hwuEO48el0oLrrybRrYWt1yqW9hX0ds?st=mYLJtYV2yuIj6KB6v4HJtJBwhN63UBW3sXaLX!gkl9Fdce%24hRxF4D8xkfCMVzMzD

with the response

{code: 500, message: "Could not connect with Server"}

I feel like this could be SSL related, can anyone confirm or offer suggestions? Thank you.

lognaturel commented 4 years ago

I don't believe that Enketo allows self-signed certificates. There's some related conversation on the forum. What happens if you try to load a preview (which also uses Enketo)?

I know we have some language recommending issues get filed here but we should modify that! In general, first going to the forum gets more of the community involved. Then if there does turn out to be a code change needed, the devs can triage and file as needed.

green3g commented 4 years ago

Thanks @lognaturel - I will visit the forum in the future for stuff like this. I'll review your question and get back to you tomorrow hopefully, but I'm fairly certain I ran into the same issue with preview, and you are correct - in that the preview also does not work.

green3g commented 4 years ago

Just confirming - the preview does not work. I will close this as it is an enketo issue related to self signed certs.