Waiting for environment to be ready. It can take a few minutes

Sorry

root@kobo:/home/kobo/kobo-install# ./run.py --info
Date: Fri, 05 Feb 2021 15:50:20 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 452
Content-Type: text/html; charset=iso-8859-1

╔════════════════════════════════════════════════════════════════════╗
║ ║
║ KoBoToolbox could not start! ║
║ Please try python3 run.py --logs to see the logs. ║
║ ║
╚════════════════════════════════════════════════════════════════════╝
root@kobo:/home/kobo/kobo-install#

Is koboml.xxxx.com the domain name for KPI?
Your proxy must use the same domains you saved in kobo-install configuration.

1 Like

Yes it the same.

Where do you want to install?
[/home/kobo/kobo-docker]:
Please confirm path [/home/kobo/kobo-docker]
1) Yes
2) No
[1]:
Do you want to see advanced options?
1) Yes
2) No
[2]:
What kind of installation do you need?
1) On your workstation
2) On a server
[2]:
Public domain name? [xxxxxx.com]:
KPI sub domain? [koboml]:
KoBoCat sub domain? [kc]:
Enketo Express sub domain name? [ee]:
Do you want to use HTTPS?
1) Yes
2) No
[1]:
╔════════════════════════════════════════════════════════════════════╗
║ ║
║ Please note that certificates must be installed on a reverse-proxy ║
║ or a load balancer.kobo-install can install one, if needed. ║
║ ║
╚════════════════════════════════════════════════════════════════════╝
Auto-install HTTPS certificates with Let’s Encrypt?
1) Yes
2) No - Use my own reverse-proxy/load-balancer
[2]:
Internal port used by reverse proxy is 8080.

Can you try curl -I -H 'Host: komoml.xxxx.com' -H 'X-Forwarded-Proto: https' http://127.0.0.1/service_health/ ?

What does it say?

1 Like

I had 8080 port because ans NGINX use this port

root@kobo:/home/# curl -I -H ‘Host: koboml.xxxx.com’ -H ‘X-Forwarded-Proto: https’ http://127.0.0.1:8080/service_health/
HTTP/1.1 200 OK
Server: nginx/1.19.6
Date: Fri, 05 Feb 2021 16:19:52 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 331
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Vary: Accept-Language, Cookie, Origin
Content-Language: en

I had ```
ProxyPreserveHost on

After this have:

root@kobo:/home/scoulibaly# curl -I https://koboml.orangemali.com/
HTTP/1.1 302 Found
Date: Fri, 05 Feb 2021 16:48:32 GMT
Server: nginx/1.19.6
Content-Type: text/html; charset=utf-8
Location: /accounts/login/?next=/
X-Frame-Options: SAMEORIGIN
Vary: Accept-Language,Cookie,Origin
Content-Language: en
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache

It seems that everything works as expected…

If you try in your browser: https://koboml.xxxx.com/service_health/

Can you also try the curl command without -I?

curl -H ‘Host: [koboml.xxxx.com](http://koboml.xxxx.com/)’ -H ‘X-Forwarded-Proto: https’ http://127.0.0.1:8080/service_health/

1 Like

OK KPI

Mongo: OK in 0.0204 seconds
Postgres: OK in 0.0126 seconds
Enketo [http://ee.orangemali.internal]: OK in 0.989 seconds
KoBoCAT [http://kc.orangemali.internal]: OK in 0.0246 seconds

----BEGIN KOBOCAT RESPONSE----
OK

Mongo: OK in 0.00214 seconds
Postgres: OK in 0.00547 seconds

---- END KOBOCAT RESPONSE ----

So everything works as expected now.

1 Like

Yes,
Thank you very much.
But if I try to open it doesn’t work

Hello, I’m trying to install using kobo-install but it always get crashed when starting the kobotoolbox. I’m using normal installation with workstation and advanced options for dev mode. I’m trying to make some changes in the kpi but I can’t even install in the normal way.

When I try using workstation without advanced options it remains every time in wait another 600 seconds and the mongo container keeps restarting but not working.

Thank you

Hello @SantiTamariz ,

Can you provide more details please? The logs, the version of docker and compose, the OS where you’ve installed kobo-install and obviously, the version of kobo-install

2 Likes

Hello @nolive ,

Could this problem be due to the new MacOs software update.
I’m using the last kobo-install code from the GitHub

Thank you,

This is what I get when I try to use the advanced options with developer mode for the workstation installation.

[+] Running 1/0
⠿ kobomaintenance Warning: No resource found to remove 0.0s
[+] Running 5/5
⠿ Container kobofe-kobocat-1 Removed 2.9ss
⠿ Container kobofe-nginx-1 Removed 0.3ss
⠿ Container kobofe-kpi-1 Removed 2.5ss
⠿ Container kobofe-enketo_express-1 Removed 10.4ss
⠿ Network kobofe_kobo-fe-network Removed 0.2ss
[+] Running 5/5
⠿ Container kobobe-redis_cache-1 Removed 1.0ss
⠿ Container kobobe-mongo-1 Removed 0.2ss
⠿ Container kobobe-postgres-1 Removed 1.6ss
⠿ Container kobobe-redis_main-1 Removed 1.5ss
⠿ Network kobobe_kobo-be-network Removed 0.1ss
Launching environment
[+] Running 5/5
⠿ Network kobobe_kobo-be-network Created 0.1ss
⠿ Container kobobe-redis_cache-1 Started 3.2ss
⠿ Container kobobe-postgres-1 Started 3.3ss
⠿ Container kobobe-mongo-1 Started 3.2ss
⠿ Container kobobe-redis_main-1 Started 1.8ss
Waiting for PostgreSQL database to be up & running…
WARN[0000] network kobo-be-network: network.external.name is deprecated in favor of network.name
[+] Running 1/1
⠿ Network kobofe_kobo-fe-network Created 0.1ss
[+] Running 0/1
⠿ kpi Error 3.6s5s

Hello @SantiTamariz,

In Docker Desktop, be sure to uncheck “Use Docker compose v2” as kobo-install is not yet compatible with it.

I’m using latest version of macOS (Monterey) and a latest version of Docker Desktop (4.5) and it’s working.

Are you using an Intel chip or an Apple M1 chip?

1 Like

I have just uncheck it, I will say something to you after restarting it
And I’m using intel chip on mi Mac

Hi @nolive @stephenoduor @Kal_Lam

We were using an older version of KoboToolbox from 2019. I upgraded the database step by step using the documentation provided by the KoboToolbox team. After upgrading the code by checking out the latest version, I encountered build errors during the process. DNS uses HTTPS as its protocol.

I attempted to build the latest version of KoboToolbox on my local machine. Before proceeding with the upgrade, I took a dump of the old database and restored it into a new version of the KoboToolbox environment. After the database was restored, I adjusted the environment file as needed.

The task was successfully completed. However, when I ran the run.py file, I encountered a delay of 600 seconds. I have attached a screenshot showing this issue.

If there are any known issues with running KoboToolbox locally without HTTPS, I would greatly appreciate your valuable guidance on resolving this.

Hello @Rejeesh,

You should look at kpi logs first. Maybe you will see errors there.

1 Like