Versions Compared

Key

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

...

Section


Column
width50%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn this the page:
Table of Contents



Column


General information

AxxonData is a local version of the AxxonNet cloud service and it is used to work in local networks only. AxxonData is compatible with Axxon One version 1.0.4 and with the Axxon Next archive product.

List of supported Linux OS

AxxonData is available in Linux Ubuntu 20.04 and Debian 11.

Minimum requirements for installing and running AxxonData in Linux OS

To run AxxonData, it is recommended to use we recommend using a computer with a 1.0 GHz processor with two or more cores and 2 GB RAM.

Disk subsystem requirements: 4 GB to install AxxonData and at a rate of 1 MB = 1000 events to store the events from the detection tools in the database.

You can use the following formulas to calculate the required space for storing events in the database:

T = E × 60 × 24 × 0.5 ÷ 1024²

where

  • T is a total number of events in GB per day per camera;
  • is an average number of events per camera per minute;
  • 60minutes;
  • 24hours in a day;
  • 0.5coefficient;
  • 1024²—GB.

Required space for D days in GB = C × T × D

where

  • С is a total number of cameras;
  • is a total number of events in GB per day per camera;
  • is days of data storage.

Docker installation

Info
titleNote

This installation description is relevant for Ubuntu 20.04 and Debian 11. Installation of for other OS versions may can be slightly different.

To install the latest version of Docker from the official repository, do the following:

  1. Update the current package list.:

    Code Block
    sudo apt update


  2. Install the packages that allow APT to use HTTPS.:

    Code Block
    sudo apt install apt-transport-https ca-certificates curl software-properties-common


  3. Add the CFG key of the official Docker repository to the system.:

    Code Block
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -


    Info
    titleNote

    When installing on Debian 11, this command will look like this:

    Code Block
    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -



  4. Add the Docker repository to the list of the APT package sources list.:

    Code Block
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"


    Info
    titleNote

    When installing on Debian 11, this command will look like this:

    Code Block
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"



  5. Update the current package list including the Docker packages from the added repository.:

    Code Block
    sudo apt update


  6. Make sure the installation is performed from the Docker repository.:

    Code Block
    apt-cache policy docker-ce

    Response example:

    Code Block
    docker-ce:.service - Docker Application Container Engine
      Installed Loaded: loaded (none/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      Candidate: 18.03.1~ce~3-0~ubuntu
      Version table: Active: active (running) since Thu 2018-07-05 15:08:39 UTC; 2min 55s ago
         18.03.1~ce~3-0~ubuntu 500Docs: https://docs.docker.com
     Main PID: 10096 (dockerd)
        Tasks: 16
       500CGroup: https:/system.slice/download.docker.com/linux/ubuntu bionic/stable amd64 Packagesservice
               ├─10096 /usr/bin/dockerd -H fd://
               └─10113 docker-containerd --config /var/run/docker/containerd/containerd.toml


  7. Install the Docker.:

    Code Block
    sudo apt install docker-ce


  8. Make sure the Docker is running.:

    Code Block
    sudo systemctl status docker

    The response should must contain the active (running) status:

    Code Block
    docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: active (running) since Thu 2018-07-05 15:08:39 UTC; 2min 55s ago
         Docs: https://docs.docker.com
     Main PID: 10096 (dockerd)
        Tasks: 16
       CGroup: /system.slice/docker.service
               ├─10096 /usr/bin/dockerd -H fd://
               └─10113 docker-containerd --config /var/run/docker/containerd/containerd.toml


...

  1. Download the distribution archive from the AxxonSoft website and unpack it into any folder.

  2. The default access protocol is HTTPS, which requires manual installation of certificates on client AxxonData computers in local cloud. If it is necessary to switch to HTTP, run the following command:

    Code Block
    sudo ./http_https_switcher.sh HTTP

    HTTP is an insecure protocol that does not require a certificate to be installed. To switch back to HTTPS, run the following command:

    Code Block
    sudo ./http_https_switcher.sh HTTPS
  3. In the terminal, execute run the command to command to grant the execution rights permissions to the scripts (load.sh, once.sh, run.sh, stop.sh).

    Code Block
    sudo chmod +x *.sh


  4. Run the once.sh script.

    Code Block
    sudo ./once.sh


  5. Run the load.sh script.

    Code Block
    sudo ./load.sh


  6. Create the Docker services.

    Code Block
    sudo ./run.sh


  7. Check the services status.

    Code Block
    sudo docker service ls

    In the REPLICAS column, all values should must be displayed as 1/1.
    Image Removed

  8. You can change the default Change the name of the vmscloud.local domain alias from in the /etc/hosts file.
  9. Install the root certificate. The certificate should must be in PEM format with a .crt extension.

    Code Block
    sudo mkdir /usr/share/ca-certificates/extra
    sudo cp rootCA.pem /usr/share/ca-certificates/extra/rootCA.crt
    sudo dpkg-reconfigure ca-certificates

    If you use Firefox, then you should must add the rootCA certificate to the Firefox Certificates yourself.

  10. Change the AxxonData address in the Axxon One configuration:

    1. Stop the Server.
    2. In the infra.dictionar file, replace the address of the CLOUD_URL parameter with vmscloud.local. If the Axxon One Server is installed on in Linux OS, the file will be located in the /opt/AxxonSoft/AxxonOne/Dictionary.local directory. If If Axxon One Server is installed on in Windows OS, the file will be located in the C:\Program Files\AxxonSoft\AxxonOne\Dictionary.local directory. 
    3. Start the Server.
  11. On the Axxon One Server, enter the address of the computer on which AxxonData is installed in the hosts file (C:\Windows\System32\drivers\etc or /etc/hosts). For example, 192.168.11.12 vmscloud.local. If AxxonData is installed on the same computer with the Axxon One Server, you can skip this step.

AxxonData will be available at vmscloud.local. By default, 2 two test users are available:

  1. Admin1
  2. /
  3. , the password is admin1password.
  4. Admin2
  5. /
  6. , the password is admin2password.

These users can create other users, including the administrators. Names of users are case insensitive.

Updating the data communication protocol on the previously installed AxxonData

To change the data communication protocol on a previously installed local cloud AxxonData, do the following:

  1. Stop the local cloud AxxonData:

    Code Block
    sudo  ./stop.sh


  2. Change the protocol:

    Code Block
    sudo ./http_https_switcher.sh HTTP #- change https to http
    sudo ./http_https_switcher.sh HTTPS #- change http to https


  3. Load the changes:

    Code Block
    sudo  ./load.sh


  4. Run the local cloud AxxonData:

    Code Block
    sudo  ./run.sh


  5. Check the availability of the cloud AxxonData:

    Code Block
    sudo docker service ls

In the REPLICAS column, all values should must be displayed as 1/1.

Updating AxxonData

To update AxxonDatado the following:

  1. Stop AxxonData:
    Code Block
    sudo  ./stop.sh
  2. Move the uploads folder to the folder with the new version of AxxonData:
    Note
    titleAttention!

    The uploads folder is located in the /opt/AxxonData/uploads/ folder. In AxxonData 3.9 and earlier, the folder is located in the root directory.

  3. In the terminal, run the command to grant the execution permissions to the scripts (load.sh, once.sh, run.sh, stop.sh) in the folder with the new AxxonData version:
    Code Block
    sudo chmod +x *.sh
  4. Load changes:
    Code Block
    sudo  ./load.sh
  5. Start AxxonData:
    Code Block
    sudo  ./run.sh

AxxonData update is complete.

Removing AxxonData 

To remove AxxonData, do the following:

  1. Remove all containers:
    1. Stop AxxonData:
      Code Block
      sudo  ./stop.sh
    2. Stop all Docker containers:
      Code Block
      sudo docker stop $(docker ps -qa)
    3. Remove all Docker containers:
      Code Block
      sudo docker rm $(docker ps -qa)
    4. Remove all images:
      Code Block
      sudo docker rmi -f $(docker images -qa)
    5. Remove all volumes:
      Code Block
      sudo docker volume rm $(docker volume ls -q)
    6. Remove all networks:
      Code Block
      sudo docker network rm $(docker network ls -q)
    7. Press Y to confirm.
      The following commands must not output any items:
      Code Block
      sudo docker ps -a
      Code Block
      sudo docker images -a
      Code Block
      sudo docker volume ls
    8. Remove all unused images:
      Code Block
      sudo docker system prune
    9. Press Y to confirm.
  2. Remove Docker. Enter the commands one by one:
    Code Block
    sudo dpkg -l | grep -i docker
    Code Block
    sudo apt-get purge -y docker-buildx-plugin docker-ce docker-ce-cli docker-ce-rootless-extras docker-compose-plugin
    Code Block
    sudo apt-get autoremove -y --purge docker-buildx-plugin docker-ce docker-ce-cli docker-ce-rootless-extras docker-compose-plugin

    Code Block
    sudo rm -rf /var/lib/docker /etc/docker
    Code Block
    sudo /etc/apparmor.d/docker

    Code Block
    sudo groupdel docker

    Code Block
    sudo -rf /var/run/docker.sock
  3. Remove the uploads folder and the AxxonData folder:
    Code Block
    sudo rm -rf /opt/AxxonData/
    Note
    titleAttention!

    The uploads folder is located in the /opt/AxxonData/uploads/ folder. In AxxonData 3.9 and earlier, the folder is located in the root directory.

Removing AxxonData is complete.