Error 502 when running local CHT instance

@Esther_Moturi - we were privately chatting about how to restart your containers in case that might help. Here’s what I shared based on the set up in the local-setup docs you’re using:

  1. ctrl + c in the terminal window where you first ran docker. It should have a bunch of upgrade-cht-upgrade-service-1 log entries. Since we don’t start the service detached (-d ), you need stop the upgrade service as a first step
  2. docker kill $(docker ps --all --filter "name=cht_" --quiet) - This forcibly kills all containers that start with cht_, which are all the ones we just started
  3. cd ~/cht-local-setup/upgrade/ - make sure you’re still in the right directory
  4. docker-compose up - restart the services we just stopped

Side note - docker-compose down won’t work to stop all related service. This because of the way CHT Upgrade Service is architected. It is intentionally meant to be autonomous from the CHT instances it is managing upgrades for.