Problem
The system is designed to be running under an UPS. Under some circumstances, an unexpected power failure may corrupt some files that are critical for the system. This is true for any computer system.
Solution
In case you see the following error:
root @Router :/ $/opt/azeti/SiteController/run_SiteController.sh start_mosquitto Start Mosquitto daemon 1431326921: Error: Success. 1431326921: Error: Couldn't open database. |
This means there have been a database corruption and you need to delete the database file of mosquitto. It is ussually found in $SCPATH$/persistent, where $SCPATH$ is the path where you have installed Site Controller. In case it is not there, you will need to read your mosquitto configuration path and see where the database file for mosquitto is stored.
Part of the system information relies on the mosquitto database. In case you have not other persistence module activated (persistor daemon or data store), you might need to do some adjustments after deleting the mosquitto database. Pay special attention to the following use cases:
- If you have an access solution, resend the codes to the location.
- If you use batteries, recalibrate the device.
Related articles