502 Bad Gateway on preview mode - Running in local instance

deploy-form

#1

Hi everyone,

I am trying to install kobotoolbox on the local machine.
I was using the recently updated kobo-docker project from “https://github.com/kobotoolbox/kobo-docker” and followed the steps for local setup successfully.
I was able to start at “http://172.17.0.1:8000/” and logged in successfully.

While developing a new form i tried to “preview” it by clicking the “eye” button (left corner) but the pop-up window (the one that invokes enketo express viewer) came with the message “502 Bad Gateway”
I’m running under Ubuntu 18.04 and the commit printed in Kobo Homepage is this one “commit: bed6475”

ANy help will be really appreciated.
Thanks in advance and happy new years fellows!

best regards from Guatemala

Neri


#2

Good day!

The most recent version of Kobo Docker shows a floating bug with kobocat. It seems that an old wound with Django/Celery connection drop has opened. This problem can generate errors in different places and with different error codes. So it would be great if you check if that is your case:

envfiles/kobocat.txt
KOBOCAT_DJANGO_DEBUG=True
TEMPLATE_DEBUG=True

And then, try to navigate the kobocat pages (an admin view for example). If you get any errors at kobocat at the same time when you get 502 in preview: paste the traceback. Also you can check log folder for any errors.


#3

Hi morrigan!

Thanks for the reply, i’ve already took a look over that .txt file and the parameters were setted as “False”.

Once switched to “True”, preview and enketo form displays perfectly, it’s running like a charm. :slight_smile:
Trouble solved!

Again thanks and happy new year!