Skip to content

Updating Watcher or rolling back to previous version

To update Watcher:

apt-get update
apt-get -y install flussonic-watcher
service flussonic restart

During the update, Watcher automatically migrates the database to work with the new version. In rare cases it might be necessary to migrate the database manually. Watcher will show the message about that in the UI.

To update Rolling release

How to install a rolling update

Remove the currently installed version of Flussonic Watcher and its dependencies:

apt remove flussonic-watcher

Change the repository to the one with rolling updates and install Flussonic Watcher:

echo "deb http://apt.flussonic.com/repo master/" > /etc/apt/sources.list.d/flussonic.list;
apt update;
apt install flussonic-watcher;
service flussonic restart

How to return to the major release

Remove the currently installed version of Flussonic Watcher and its dependencies.

apt remove flussonic-watcher

Change the repository to the one with official releases and install Flussonic Watcher:

echo "deb http://apt.flussonic.com binary/" > /etc/apt/sources.list.d/flussonic.list;
apt update;
apt install flussonic-watcher;
service flussonic restart
We strongly recommend that you back up your database every day and before you update Watcher.

Rollback to the previous version of Flussonic Watcher

To rollback to the previous version of Watcher, follow these steps:

  1. Create a backup copy of the database so that if necessary you can quickly restore the service:

    /opt/flussonic/contrib/watcher db backup

  2. Determine dependencies:

    apt-cache show flussonic-watcher=20.06 | egrep 'Depends|Suggests:' Depends: flussonic (>= 19.12), flussonic-python (=20.05.1), postgresql (>= 9.6)

  3. Be sure to rollback the DB version to the corresponding Watcher version:

    ``` /opt/flussonic/contrib/watcher db history

    Use DB variable from flussonic config (postgresql://vsaas:demopass@localhost/vsaas_production) Use CLUSTER variable from flussonic config (mysql://admin:demopass@127.0.0.1:14406/cluster) 73890c17e7b4 -> a1ecd76da5e8 (head), camera_vision_alg 0c650872aea1 -> 73890c17e7b4, add_locale dad763f2dc9a -> 0c650872aea1, Add external id to person v20.07 -> dad763f2dc9a, user_readonly_field 9955e21bb2e6 -> v20.07, v20.07 0f72327f2dc8 -> 9955e21bb2e6, create faces and persons v20.06 -> 0f72327f2dc8, add_folder_maps v20.05 -> v20.06, v20.06 772e49544a48 -> v20.05, v20.05 ```

    If you do not know exactly the required version of the database, then contact technical support at support@flussonic.com. An incorrect version will cause the service to malfunction.

    Watcher v20.06 corresponds to v20.06 of the database. Roll back the database:

    /opt/flussonic/contrib/watcher db downgrade v20.06

  4. Install the required version and its corresponding dependencies:

    apt install flussonic-python=20.05.1 flussonic-watcher=20.06

  5. Restart the service:

    service flussonic restart