Issues in previewing the form once clicking on preview (loading error)

dears,

I am having an issue in previewing the form once clicking on preview this error appears
I need your help please

Are you on a self-hosted server?

Yes I am

here is the error on kpi.error.log

2021/09/02 12:11:28 [error] 45#45: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.6.85, server: kf.mydomainname.com:81 request: “GET / HTTP/1.1”, upstream: “uwsgi://172.31.0.3:8000”, host: “kf.mydomainname,com:81”, referrer: “http://kf.domainname,com:81/”

OK seems like this is an issue on a self hosted server. Could you also try uploading your xlsform on one of the publicly hosted servers (OCHA or HHI) to see if you are able to upload there?

I am not able to download the xls form

Hi @farah did you create the form on the form builder successfully or you had created it using XLS?

1 Like

Hello @stephanealoo yes I created it from the form builder

Dear @Kal_Lam @stephanealoo

we are still facing an issue with installing kobo on the institutions server, is there any support that we could have a 15 min virtual meeting to showcase the issue and maybe solve this problem would be much appreciated

Dear @Kal_Lam

Could you please help us ?

@farah
How did you do the installation? Did you change any env files or nginx settings manually?
Is there any error in the kpi or kobocat docker logs?

1 Like

Dear @farah

To resolve form preview issue you can follow the following:

Resolve DNS lookup of private IP address for external data to work:

go to enketo config.json and execute command with sudo

sudo nano /home/kobos/kobo-env/enketo_express/config.json

under “ip filtering”

modify
“allowPrivateIPAddress”: false,
to
“allowPrivateIPAddress”: true,

python3 run.py --stop

python3 run.py

Best regards

1 Like