HA icinga2 - config master down, cannot trigger check

I am testing an HA icinga2 in a test environment.
When I stop the icinga2 service on the config master. any attempts to trigger a “check now”
results in

But this only happens on the icingaweb2 on the config master. If I switch over to the second icingaweb2 on the other master triggering “check now” is fine

Any ideas why?

Give as much information as you can, e.g.

  • Version used (icinga2 --version) r2.12.4-1
  • Operating System and version 20.04.1 LTS (Focal Fossa)
  • Enabled features (icinga2 feature list) api checker ido-mysql influxdb mainlog notification
  • Icinga Web 2 version and modules (System - About) 2.8.2
  • Config validation (icinga2 daemon -C) valid
  • If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes
    config master

So my issue seem related to the icingaweb2 commandtransport.ini configuration file

transport = "api"
path = "/var/run/icinga2/cmd/icinga2.cmd"
host = "localhost"
port = "5665"
username = "icingaweb2"
password = "redacted"

So after some more digging and googling including

I realized that the answer is simply to configure two command transports with the second one being used as the failover one.