Problems with https configuration on own server

Hi,

I’m having troubles deploying a kobo instance on my own server using kobo-install. I’m using a reverse proxy that handles the certificates, but whenever I select USE HTTPS true, it just get stuck in:
"Waiting for environment to be ready. It can take a few minutes.

KoBoToolbox has not started yet. This is can be normal with low CPU/RAM computers."

Going to https://kf.ine.gob.hn/service_health/ shows everythiong is ok.

However python3 run.py --info shows that “kobotoolbox could not start”.

I can login to the kf site using https, but the open show button is missing:

And I cannot preview forms either as I get a “Server Error (500)” message

But, if I select use http instead of https, the process does finish, I can access kf, kc and enketo using https, I can submit forms via Enketo and Kobocollect. The only thing that doesn’t work is the preview form, as I get hit with a mixed content error:

I know that I have to use HTTPS in the setup, but by changing only that option, the results are totally different.

Can someone point me in the right direction as to what could be happening here?

Thanks!

Hi,

I’m having troubles deploying a kobo instance on my own server using kobo-install. I’m using a reverse proxy that handles the certificates, but whenever I select USE HTTPS True, it just get stuck in:
"Waiting for environment to be ready. It can take a few minutes.

KoBoToolbox has not started yet. This is can be normal with low CPU/RAM computers."

Going to https://kf.ine.gob.hn/service_health/ shows everything OK

However python3 run.py --info shows “Kobotoolbox could not started”

I can login to my site using https, but the “COPY OPEN” button inside the form shows Link missing. And I cannot preview forms either as it shows “Server Error (500)”.

But, if I select use http instead of https, the process does finish, I can access kf, kc and enketo using https, I can submit forms via Enketo and Kobocollect. The only thing that doesn’t work is the preview form, as I get hit with a mixed content error.So that is not ideal either because I want to be able to preview the forms as I’m building them.

I know that I’m supposed to use HTTPS in the setup, but by changing only that option, the results are totally different.

Can someone point me in the right direction as to what could be happening here?

Thanks!

@jcaceres, this post discussed previously should help you solve your issue:

Hi Kal,

Thank you very much for your reply.

I ahve already looked at that answer and try adding entries in docker-compose.frontend.override.yml for extra hosts as described:
extra_hosts:

  • kf.mydomain:192.168.1.6
  • kc.mydomain:192.168.1.6
  • ee.mydomain:192.168.1.6

But that didn’t do anything. I’m still unable to run the site properly by selecting HTTPS True in the configuration.

As I mentioned, if I choose HTTPS False, then everything works with the exception of form preview, as I get a mixed content error.

Could you prove another idea as to what to look for?

Thanks