Could not connect with Form Server

1. What is the issue? Please be detailed.

Preview a form: got "Could not connect with Form Server"

2. What steps can we take to reproduce this issue?

  1. Start the docker compose locally and wait for all services to be up without any problems
  2. Upload a valid form
  3. Preview the form

3. What have you tried to fix the issue?

Using help from this section: https://docs.getodk.org/central-troubleshooting/#preview-could-not-connect-with-server

But did not help; the problem is still there

4. Upload any forms or screenshots you can share publicly below.

To self-host Central, you must have a fully-qualified domain name (e.g., central.example.com) mapped to your server. If you are using an IP or localhost, you'll have these kinds of problems. What do you have as your DOMAIN and SSL_TYPE in your .env file?

@yanokwa, Thanks for your help. However, I still face the same problem and here are steps I tried

1. Update .env file

# Use fully qualified domain names. Set to DOMAIN=local if SSL_TYPE=selfsign.
DOMAIN=myodk.local.net

# Used for Let's Encrypt expiration emails and Enketo technical support emails
SYSADMIN_EMAIL=a_user@mycompany.com

# Options: letsencrypt, customssl, upstream, selfsign
SSL_TYPE=selfsign

# Do not change if using SSL_TYPE=letsencrypt
HTTP_PORT=8099
HTTPS_PORT=4433

2. Update hosts file

127.0.0.1 myodk.local.net

3. Create Self-Sign Cert for myodk.local.net

4. Install the certificate

Install the cert on step 3 to Trusted Root Certification Authorities

5. Update the deamon.json

5.1 run this command: cat /run/systemd/resolve/resolv.conf
Add : "dns": [
"result from step 5.1"
],

And still have the same problem as before.