Site Controller can't connect or is marked OFFLINE in the Control Panel

Problem

Walk through the suggested solution here if you face any of these problems.

  1. Your newly installed and configured Site Controller is not shown in Control PanelMy Organization → Locations
  2. Your Site Controller shows OFFLINE for the cloud_connected sensor
  3. You see errors in log/cloudConnector.log file.

 

or

Solution

  • Make sure SIteController runs, check by running SiteController/run_SiteController.py status on your device.
  • Error message on_connect - rc: Connection Refused: not authorised. implies incorrect MQTT credentials. Verify the configured user and pass in config/SiteController.cfg
  • Error message error: [Errno 111] Connection refused implies that Site Controller can't establish an outgoing MQTT TCP connection. Check your firewall settings and test for a successful outgoing connection with telnet (see below).
  • Error message no route to host implies that the broker host cannot be reached, either because the host is offline or you have no network connection to the host. Test if you can reach the MQTT broker as configured in config/SiteController.cfg,