Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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
    sudo "/opt/azeti/SiteController/run_SiteController.py" stop_mosquitto
  2. 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 find / -name mosquitto.db -exec mv {} {}.bak \;
  3. Restart Site Controller

    Code Block
    sudo "/opt/azeti/SiteController/run_SiteController.py" restartstart
Tip

You can always restore the old states file by renaming it. You might have to adjust the paths to your environment.

Code Block
mv /var/lib/mosquitto/mosquitto.db.bak /var/lib/mosquitto/mosquitto.db
sudo "/opt/azeti/SiteController/run_SiteController.py" restart

...