Restoring Virtual Machine Work

Failure in the virtual machine work that is used by a mobile platform server is characterized by unavailability of authentication of API users and administrator console in the browser.

To restore virtual machine work, use its backup. After executing the operation, restore mobile platform server databases:

  1. Restart a mobile platform server. To do this, use the docker-compose utility and the docker-compose.standalone.yml configuration file:

    1. Delete the running Docker components with data saving:

% docker-compose -f docker-compose.standalone.yml down

    1. Restore the following databases from backup:

    1. Restart the containers:

% docker-compose -f docker-compose.standalone.yml up -d

If centralized logging of mobile platform components is enabled, commands will differ:

% docker-compose -f docker-compose.standalone.yml -f docker-compose.metrics.yml down

% docker-compose -f docker-compose.standalone.yml -f docker-compose.metrics.yml up -d

  1. Check status of Docker containers:

% docker ps -a

After executing the command, a table with information about containers is displayed: identifier, name, status, and so on. If container status in the STATUS column differs from Up, this container is not started. To start a container, execute the command:

% docker start <container identifier>

In the <container identifier> substitution use the container identifier specified in the CONTAINER ID column.

  1. Check mobile platform server availability:

curl "<http or https>://<IP address or DNS name of prepared server>/api/v1/status/"

<http or https>://<IP address or DNS server name>/api/v1/status/

After executing one of the operations, a JSON string is obtained containing mobile platform server availability check result.

The successful result of mobile platform server availability check:

{"message":"Welcome to Foresight Mobile Platform.","time":"2019-03-19T12:35:53.390324"}

NOTE. A mobile platform server can be checked without authentication.

  1. Update data source cache in the Cache Control section if th appropriate project.

After executing the operations the virtual machine work and mobile platform server database is restored.

See. also:

System Error Monitoring