To better understand what’s going on with your instance, can you please share the logs of the CHT service containers?
To debug, I’d start by looking for errors in API logs, and go from there.
It looks like API is trying to connect to haproxy, but can’t reach it. This can be either caused by haproxy directly, or by CouchDb failing to start. Can you please check haproxy logs to see if anything becomes obvious?
Just to mention as well,
After multiple attempts and failing to set up with the documentation,i started following a video on youtube by medic created 10 months ago, I pulled from the previous commits of cht-core repo .yml before the yml was removed. The local environment worked properly and the application but also faced a block, after creating a user and I try to login with the new user, the application would break showing a connection error and when checking console logs, something about openSSL certificates.
So with your advice, should I continue with this current setup or should I do a previous version and also share the errors I encountered then?
Hi @Arafat,
I am wondering if the issue you are facing can be related to other issue earlier since you mentioned you faced a block after creating a user. If you are using Google Chrome, could you please try Mozilla Firefox and check if the error persists?
I tried Microsoft Edge, and the same problem happened with logging in as a new user. Let me try Mozilla and see.
In the meantime, I am also going to try this Unable to load the application with a CHW user - #2 by binod since it is related to the problem.
I faced a similar problem, the API,Nginx, and logs are similar to what @Esther_Moturi raised in this thread however, my couch db logs read differently as shown below
I have tried docker kill for all cht containers then up again as suggested in that thread, I have also tried using Mozilla firefox all to no avail. Any possible solution?
Then for the local setup, the tutorial on https://docs.communityhealthtoolkit.org/apps/tutorials/local-setup/ didn’t work for me, I failed to create the local environment, I had to build using the docker-compose file that was previously in the cht-core repo (in the previously committed branch) before it was removed. That way my local environment was set up.
The developer set up guide you referenced in the old commit, now lives here. You can references this as it’s a living document that will be kept up to date.
on that same developer set up guide, it’s recommended to use the great nginx-local-ip project instead of ngrok, unless you explicitly need to share your instance with a remote user.
It looks like your credentials stored in the browser cookie somehow expired. Could you try clearing browser cache and logging in again? Or trying a different browser?