File Server Installation Guide

Important

Use of Shared Drive for Remote Deployment has been deprecated. Instead we now use a File Server.

A file server is a computer responsible for central storage of data. A file server works in conjunction with our main server, and it’s the backbone for Remote Deployment. A file server is a must in the following usage scenarios:

  • Deployment of Patches.
  • Deployment of Packages.
  • Self-upgrade of Motadata Agent application.

Shared drive configuration in our product has been deprecated, and the architecture allows delivery of Patch/Packages to Agent/Relay via File Server only.

How File Server Works

figure 1

Installing Motadata File Server

Prerequisite

figure 1.1

Installation Steps

In order to initiate a file server you need to configure in three places (Main Server , Relay server (if required), and File Server).

Download Relay Server: Download Link

Note

We provide a single build for Relay and File Server. You have to install them separately: one as file server and other, relay server.

In File Server

  • Copy release build installer (relay_server_CI) to target machine.

  • Make Sure you have execute permission to build file. If it does not have execute permission then you can change it by following command,

    sudo chmod 777 relay_server_CI

  • Run Installer by following command

    sudo ./relay_server_CI

    figure 1
  • Type in your system pass and hit enter to start the installation process.

  • Once you see the below screen, that means you have successfully installed the relay server.

    figure 2
  • Acquire root access: sudo -i.

  • Change directory: cd/opt/flotomate/relay-server/config

  • Open yaml file using: nano services-conf.yaml

figure 2

Note

Use https instead of http if main server is using a secure connection.

  • change under main-server : URL={your main server url}
figure 3
  • Now restart services: systemctl restart ft-relay-server.service (Do not forgot this)

In Relay Server (If in use)

To install Relay Server:

  • Copy release build installer (relay_server_CI) to target machine.

  • Make Sure you have execute permission to build file. If it does not have execute permission then you can change it by following command,

    sudo chmod 777 relay_server_CI

  • Run Installer by following command

    sudo ./relay_server_CI

    figure 1
  • Type in your system pass and hit enter to start the installation process.

  • Once you see the below screen, that means you have successfully installed the relay server.

    figure 2

Type the following commands in the terminal of the relay server (a separate server altogether) to change Service-conf.yaml file.

  • Get root access: sudo -i
  • Change directory: cd /opt/flotomate/relay-server/config
  • Open: nano services-conf.yaml

Note

Use https instead of http if main server is using a secure connection.

  • Change under main-server : URL={your main server url}
  • Restart services: systemctl restart ft-relay-server.service (Do not forgot this).

In Main Server

Do following step to change Service-conf.yaml file in the Main Server.

Note

Learn how to install server.

  • Get root access: sudo -i
  • Change directory: cd /opt/flotomate/main-server/config
  • Open: nano application-hosted.properties
  • Change the following field: com.flotomate.fileServer.url=http://{file Server Ip}:6060/api (change port if you have changed port of file server)
figure 4
  • Restart services: systemctl restart ft-main-server.service (Do not forgot this)