Skip to main content
Skip table of contents

Ubuntu/Debian: Installing, upgrading, and uninstalling the policy console

Important note

See Policy console requirements for virtual machine requirements.

Installing the policy console

This procedure is for first time installation on a virtual machine running Ubuntu. 

Before installing the policy console, make sure you have installed curl. On the virtual machine where you want to run the policy console, run these commands:

BASH
$ sudo apt-get install curl

Note: Use the sudo command to execute commands using permissions of the root user. If you choose to administer the Ubuntu system through a graphical interface to create folders and using drag and drop to move files, you may need to manually adjust ownership and permissions.

On the same VM, create a directory: /usr/local/share/policy-console/deb/ 

BASH
$ sudo mkdir -p /usr/local/share/policy-console/deb

Move the policy console files (available from Blue Cedar Support) to this new directory: 

BASH
sudo mv * /usr/local/share/policy-console/deb/ 
  • policy-console-appcontrol*.deb
  • policy-console-database*.deb
  • policy-console-injection-engine*.deb
  • Packages.gz

Install the policy console database package. This command might fail if you don't have the required packages installed on your system, in which case, proceed to step 5.

BASH
$ sudo dpkg -i /usr/local/share/policy-console/deb/policy-console-database_{version}.deb

Run this update, which also installs any missing packages:

BASH
$ sudo apt-get update && sudo apt-get install -f

Now install the policy console package:

BASH
$ sudo apt-get install policy-console-appcontrol

Verify the installation. The results should list three containers: injection engine, appcontrol, and database.

BASH
$ sudo docker ps

Look for lines in the output containing these containers:

bluecedar/policy-console-appcontrol:3.20.0-51
bluecedar/policy-console-injection-engine:3.20.0-51
bluecedar/policy-console-database:3.20.0-51

Sample output

TEXT
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1b9ce819d0af bluecedar/policy-console-appcontrol:3.20.0-51 "/bin/bash -l -c /co…" 20 seconds ago Up 19 seconds (health: started) 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:32774->8080/tcp, 0.0.0.0:32773->8443/tcp policy_console_appcontrol

a46d567feb36 bluecedar/policy-console-injection-engine:3.20.0-51 "/bin/bash -l -c /co…" 20 seconds ago Up 19 seconds (health: started) 0.0.0.0:32772->8080/tcp policy_console_injection_engine

125929de3c88 bluecedar/policy-console-database:3.20.0-51 "/bin/bash -l -c -x …" 20 seconds ago Up 20 seconds (health: started) 0.0.0.0:32771->3306/tcp

Upgrading the policy console

Important note

To upgrade the policy console, you need required software and files to install the new console. See Policy console requirements for virtual machine requirements.

Procedure overview:

  • To migrate your configured environment, backup the old configuration.
  • Upgrade the console with the new version.
  • Restart the new version with the (optional) saved configuration.

This procedure assumes you are installing the new version of the policy console on an existing policy console (version 3.20+). 

Optional. If you have modified your environment file and want to preserve your configuration, you need to backup the new default configuration before upgrading. If you have not modified your environment file, skip to step 2.

The upgrade process requires you to edit the environment to refer to the old console. Run this command to backup the environment file before updating the new policy console so you can easily restore after upgrading from the old console:

BASH
$ sudo cp /etc/policy-console-{old_version}.env /etc/policy-console-{old_version}.env.bak

Optional. Create a backup of the previous installation directory before copying the policy console files to your VM. To do this, rename the current directory, and then create a new directory for the upgrade files.

BASH
$ sudo mv /usr/local/share/policy-console/deb /usr/local/share/policy-console/debMMDDYYYY
$ sudo mkdir /usr/local/share/policy-console/deb/

Copy the policy console files (available from Blue Cedar Support) to this new directory: /usr/local/share/policy-console/deb/ 

  • policy-console-appcontrol*.deb
  • policy-console-database*.deb
  • policy-console-injection-engine*.deb
  • Packages.gz

    BASH
    $ sudo mv * /usr/local/share/policy-console/deb/

Upgrade to the new version of the policy console:

BASH
$ sudo apt-get update && sudo apt-get install policy-console-database && sudo apt-get install policy-console-appcontrol

Optional. If you created a backup in step 1, restore the configuration from the backup file and reboot:

BASH
$ sudo cp /etc/policy-console-{old_version}.env.bak /etc/policy-console-{new_version}.env
$ sudo service policy-console reboot

Optional. After the policy console is successfully upgraded, you can remove the backup version of the policy console files.

BASH
$ sudo rm -r /usr/local/share/policy-console/debMMDDYYYY

Uninstalling the console files and database

To uninstall policy console files (Ubuntu), run this command on the console host:

BASH
$ sudo apt-get remove policy-console-database

The above step removes the console files, but does not remove console data. If you are sure you want to remove the console database entirely, after running the above step you can run the below. IMPORTANT: The following command removes the entire console database, make sure you understand what you are doing.

BASH
$ sudo docker volume rm policy_console_database_data
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.