Debugging
In some cases, the adapter system may produce errors due to incorrect configuration, genuine fault with the adapter or issue with the equipment. If the configuration cannot be loaded, LEAF keeps the web interface running and shows the error at the top, so you can fix it in the Configuration tab and Save & Restart. An instance that fails to start is skipped and the others keep running. All of these errors are “AdapterBuildError” errors. These error messages are expanded below.
-
“No equipment class registered for code ’…’”: The adapter named in
adapteris not installed, or its name doesn’t match the adapter’sadapter_id. -
“Class ’…’ not found in …” or “Error executing module …”: The adapter’s code could not be loaded.
-
“Missing instance ID.”: The configuration file provided doesn’t have an instance ID.
-
“Missing required keys for …”: The required parameters for an adapter haven’t been provided in full.
If an error occurs during monitoring (usual running of the adapter), the adapter will continue running and attempt to adapt given the type of error. The types of errors are explained below.
-
InputError: Either the hardware is down, or the input mechanism cannot access the information it should be able to.
-
HardwareStalledError: The hardware appears to have stopped transmitting information.
-
ClientUnreachableError: The client OR output mechanism can’t post information. For example, the MQTT broker can’t be transmitted to.
-
AdapterLogicError: Logic within how the adapter has been built causes an error.
-
InterpreterError: The adapter interpreter has some faults that cannot be identified without knowledge of the adapter’s specifics.