Web Driver Installation

Overview

There are two types of supported Web Drivers: PhantomJS and Chrome Driver.

If you are installing the Web Driver in a Docker container, log in as root and install wget prior to switching to the axibase user

docker exec -it -u root atsd bash
apt-get update && apt-get install wget
su axibase

Option 1: PhantomJS

  • Download and install PhantomJS
cd /home/axibase
wget https://axibase.com/public/phantomjs-2.1.1-linux-x86_64.tar.gz
tar xzf phantomjs-2.1.1-linux-x86_64.tar.gz
  • Ensure that axibase user is allowed to execute the binary
ls -all /home/axibase | grep phantomjs-2.1.1-linux-x86_64
drwxr-xr-x 4 axibase axibase     4096 Jan 25  2016 phantomjs-2.1.1-linux-x86_64
  • Set path to /home/axibase/phantomjs-2.1.1-linux-x86_64/bin/phantomjs in Settings > Server Properties webdriver.phantomjs.path.

  • Open the Alerts > Outgoing Webhooks page. Create and test a webhook such as Telegram or Slack. Verify that screenshot is successfully sent to the chat client by the database.

  • Review Web Driver settings on the Settings > System Information page. Verify that no error is displayed.

Option 2: Chrome Driver

  • Install Chrome from Google Linux Repositories.

Ubuntu:

sudo apt-get update && sudo apt-get install wget
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -f --no-install-recommends

RedHat, CentOS:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo yum install ./google-chrome-stable_current_*.rpm
  • Install chromedriver

Ubuntu:

sudo apt-get install unzip
wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver

RedHat, CentOS:

sudo yum install unzip
wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
  • Set path to /usr/bin/chromedriver and /usr/bin/google-chrome-stable in Settings > Server Properties webdriver.chromedriver.path and webdriver.chromebrowser.path.

  • Open the Alerts > Outgoing Webhooks page. Create and test a webhook such as Telegram or Slack. Verify that screenshot is successfully sent to the chat client.

  • Review Web Driver settings on the Settings > System Information page. Verify that no error is displayed.