Summary

The Ubersmith Installer is a command line utility that allows a system administrator to install (or upgrade) Ubersmith on a supported platform without assistance from Ubersmith Support. This can be useful when access to the Ubersmith environment is restricted, or for provisioning development/testing environments. The installer can be used to install both the Ubersmith Core (frontend) software as well as the Ubersmith Appliance.

Installation

Prepare the Host

Ensure that your host has been updated to the latest available packages as well as the latest Linux kernel. If necessary, reboot to ensure that the system is running the latest kernel.

The Ubersmith Installer requires that Docker, as well as some additional dependencies be installed prior to installing Ubersmith. The script located at:

https://get.docker.com/

can be helpful when installing Docker. Ensure that Docker is configured to start on boot; in many cases it may not be. Depending on the operating system used, you may be able to enable the docker service with:

# systemctl enable docker

Ensure that Docker is up and running:

# service docker start

The installation process will fail without these dependencies.

CentOS 
$ sudo yum install gcc libffi-devel python-devel openssl-devel epel-release

Once EPEL is configured, run:

$ sudo yum install python-pip
Debian / Ubuntu LTS
$ sudo apt install build-essential libssl-dev libffi-dev python-dev python-setuptools

Clone the Repository or Download a Release

On the host Ubersmith is to be installed on, clone the ubersmith_installer repository.

$ git clone https://github.com/TeamUbersmith/ubersmith_installer.git

Alternatively, you can download a tarball release of the installer from here.

Install

As root, run ./install_ubersmith.sh to install Ubersmith Core or ./install_appliance.sh to install the Ubersmith Appliance. Ensure the path you choose can be written to by the user running the installation script, and that the user is a member of the docker group.

Follow the prompts to complete the installation.

Checking for pip...
Installing Ansible...
Installing Ubersmith...
Choose an installation directory for Ubersmith [/usr/local/ubersmith]:
Enter the address where you will be hosting Ubersmith [ubersmith.example.com]: 
Enter the email address of the Ubersmith administrator [admin@example.org]:

At this point the installer will begin, and will create the directory structure and supporting files to bring Ubersmith online.

Ubersmith Core and Ubersmith Appliance should not be deployed to the same host.

Configure

Ubersmith is now listening for HTTPS connections; to load the Ubersmith installation wizard go to the address of IP of your Ubersmith host in your web browser, for example:

https://10.0.0.1

Walk through the steps of the Ubersmith Setup Wizard.

The Setup Wizard still has some legacy configuration steps relating to configuring Cron Tasks and Postfix aliases. These steps can be ignored, they are configured automatically during the installation process. These pages will be removed in an upcoming release. You may also encounter an error regarding a missing Zookeeper PHP module, this can also be ignored.

Search

When configuring the Solr search engine, use the values:

License

When prompted for license details, enter the licensing username and password provided to you by Ubersmith Support. If you do not have licensing details, please contact Ubersmith Support for assistance.

At the end of the Setup Wizard, you will be prompted to delete the setup directory. The command provided does not account for the Ubersmith webroot being located in a container, so run the following command instead:

# docker exec ubersmith_web_1 rm -rf /var/www/ubersmith_root/app/www/setup

Upgrade

Before upgrading, be sure to back up your Ubersmith database.

Clone the Repository or Download a Release

On the host Ubersmith is to be installed on, clone the ubersmith_installer repository.

$ git clone https://github.com/TeamUbersmith/ubersmith_installer.git

Alternatively, you can download a tarball release of the installer from here.

If you have never used the Ubersmith installation / upgrade utility before, configuration is necessary. Without running the configuration step, the upgrade utility will fail. 

As root, run configure.sh to configure the location of your existing Ubersmith installation, as well as your Ubersmith URL/address, and an email address associated with the Ubersmith administrator. Follow the steps to configure your environment:

$ ./configure.sh               
Configuring the Ubersmith installer for an existing installation...
Current path in use by Ubersmith / Appliance [/usr/local/ubersmith]:
Enter the address in use by Ubersmith / Appliance [ubersmith.example.com]: ubersmith.mydomain.com
Enter the email address of the Ubersmith administrator [admin@example.org]: jsmith@mydomain.com

[ output follows ]

localhost                  : ok=3    changed=1    unreachable=0    failed=0   

This step creates the file .ubersmith_installer.ini in the home directory of the user running the configuration utility.

If upgrading from a version of Ubersmith prior to 4.2.0, make sure to add volume entries in docker-compose.override.yml to include mount points for the appropriate time zone files in each service (web, mail, php, etc.). For example:

  php:

    volumes:

      - "/etc/localtime:/etc/localtime"

Failing to make this update will cause those containers not updated to default to using UTC as a timezone.

 

To upgrade Ubersmith, run the ./upgrade_ubersmith.sh script. The upgrade process will complete automatically.

 

Troubleshooting