MyST Management Scripts

Under the bin directory (eg. /opt/myst-studio/bin) of the MyST Studio home, is a number of utility scripts described below. Updates to the management scripts will be made available in the Release Notes on the MyST Studio website. Typically, they will not change often.


MyST Studio Script Description Pulls the MyST Studio container from the Public MyST Docker Registry using the customer key and tags it as myst-studio.

If internet access is not available from the MyST Studio host this will need to be performed manually by downloading the Docker image from the MyST website and performing the following steps:
docker load -i <MyST Studio Docker Image>
docker tag <Image Name> myst-studio Performs a backup of the database to MyST Studio home under the backup directory with a datetime suffix. The location is printed to the output. For example:
Backed up to /opt/myst-studio/backup/myst-studio-1468979016.sql

Take note of the location as you will require this later if you intend to perform a rollback. Updates/Restores the MyST Studio database from a previous backup as follows:
./ <path to previous backup file>

Before updating the database, the MyST Studio web container will be shutdown and then started up after the database update is complete. Stops the MyST Studio instances Starts the MyST Studio instances.

On boot, the MyST Studio web instance will upgrade the database if was previously run. This displays the MyST Studio start up logs during startup. This can be closed by typing Ctrl+C. Upgrade to a specific version of MyST Studio as follows:
./ <Version>

If the argument is it omitted it will upgrade to the latest version. The version pulled down will be tagged as "myst-studio".
docker tag myst-studio myst-studio:<Version>

If pulling down the latest version, it is a good practise to tag a specific version number to assist with rollback.

The following steps will be performed as part of the upgrade script:
1. Download of the desired MyST Studio version
2. Backup of the database
3. Restart of MyST Studio components

Advanced Scripts

MyST Studio Script Description
** Updating MyST Studio to use a different agent. This may be useful if you want to try out a new agent first, without upgrading MyST Studio.

To use this script, you must have the MyST agent existing at the MyST Studio home under lib/ prior to exection (e.g. /opt/myst-studio/lib/ This script will build the data container which holds the MyST license and SSL Certificate and Key. This is typically a one-off task that is performed after installation.

To update the SSL keys or license re-run this script after placing the new files in the respective locations under the MyST Studio HOME:

If MyST Studio is running while this is executed, a restart will be required to take effect. Dumps all of the MyST Studio logs to a file. Handy for raising support tickets. It will output the location of the logs. For example:
Logs have been output to /opt/myst-studio/logs/myst-studio-1468994415.txt
** This script is similar to however, it allows for pulling down experimental snapshots of MyST Studio.

**Advanced usage only. Ensure you are familiar with the scripts before running these.

results matching ""

    No results matching ""