...
Login to the Site Controller terminal (Linux command line), stop Site Controller and especially mosquitto
Code Block sudo "/opt/azeti/SiteController/run_SiteController.py" stop
Execute the below command. It will extract the mosquitto persistence path from the configuration file and rename it with a backup extension
Code Block sudo awkfind '/persistence_location/ { db_file=$2"-name mosquitto.db"; system("mv "db_file" "db_file".bak") }' /etc/mosquitto/mosquitto.conf -exec mv {} {}.bak \;
Restart Site Controller
Code Block sudo "/opt/azeti/SiteController/run_SiteController.py" restart
...