Docker and Docker Compose

Full Docker installation instructions for Ubuntu:

Here's a cheat sheet to download and install Docker Engine on Ubuntu 14.04 LTS:

sudo apt-get remove docker docker-engine

sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \
sudo apt-get update
sudo apt-get install docker-ce

To make docker work without requiring sudo:

sudo usermod -aG docker ubuntu
# then log out and log back in

Full Docker Compose installation instructions:

Here's a cheat sheet to install the required version of Docker Compose:

sudo sh -c 'curl -L`uname -s`-`uname -m` > /usr/local/bin/docker-compose'
sudo chmod +x /usr/local/bin/docker-compose

Single host

  1. Download the on-premises distribution .tar.gz file

    • Example: rollbar-enterprise_2016-02-12.tar.gz
  2. Uncompress and unarchive

    tar -xzf rollbar-enterprise_2016-02-12.tar.gz
  3. Install

    cd rollbar-enterprise_2016-02-12 && ./
  4. Configure

    ./ -n --save
  5. Start

    ./ --run-migrations

5b. Likely troubleshooting needed: you may see an error message ERROR: Unable to obtain Jdbc connection from DataSource (jdbc:mysql://mysql/mox) for user 'flyway': Could not connect to mysql:3306: unexpected end of stream, read 0bytes from 4. To resolve this issue, enter the mysql container and run the script /docker-entrypoint-initdb.d/; for example:

# on the host machine
image_id=$(docker ps | grep mysql | awk '{print $1}')
docker exec -it $image_id bash
# now inside the mysql container
cd /docker-entrypoint-initdb.d/

Then, start again:

./ --run-migrations
  1. Initialize ElasticSearch

    ./ --es-init --es-index
  2. Navigate your browser to

Multiple Hosts

Before you read this, take a moment to familiarize yourself with the Rollbar On-Premises architecture and the advanced configuration documentation.

You can install Rollbar on one or more hosts. Before you start, you will need to determine which services you want to run on the extra hosts. Below are some common choices:

  • Run your MySQL database on a separate, dedicated host

    • Run your own managed MySQL database - See the Advanced Configuration instructions.
    • Run the bundled MySQL database that came with the On-Premises distribution
  • Run extra Rollbar data pipeline workers
  • Add capacity to the Rollbar API tier by adding more API servers
  • Add capacity to the Rollbar Web tier by running more Web servers

For a full list of the different services you can install and run, see the configuration documentation.


  • Download and unarchive the .tar.gz file onto your hosts
  • The .settings file from your original Rollbar host copied onto your other hosts in the same directory as the script.


Next, run the script on your new hosts but this time, specify which services you would like to install and run.

Run the bundled MySQL database

./ -f .settings --services mysql --save

Run extra Rollbar workers

./ -f .settings --services worker --save

Add capacity to the Rollbar API/Web tier

./ -f .settings --services api,web --save


Q. Why am I seeing "sudo: unable to resolve host ..." when I run

Depending on your host configuration, it's possible that your hostname cannot be resolved. The quickest fix is to add your hostname to /etc/hosts.


echo " $(hostname)" >> /etc/hosts

Q. My email doesn't seem to be sending. What's up with that?

Take a look at our email page.