Upgrading Travis CI Enterprise
Before upgrading, we strongly recommend taking a snapshot of
One good way to do this is to run
sudo tar -cvzf travis-backup-$(date +%s).tar.gz /var/travis /etc/travis/
See restoring from backups if you have any questions about the steps or want to do a restore.
Encryption key #
Without the encryption key you cannot access the information in your production database. To make sure that you can always recover your database, make a backup of this key.
Without the encryption key the information in the database is not recoverable.
To make a backup, please follow these steps:
- open a ssh connection to the platform machine
travis bash. This will open a bash session with
rootprivileges into the Travis container.
- Then run
grep -A1 encryption: /usr/local/travis/etc/travis/config/travis.yml. Create a backup of the value returned by that command by either writing it down on a piece of paper or storing it on a different computer.
Updating your Travis CI Enterprise Platform #
You can check for new releases by going to the management interface dashboard
https://<your-travis-ci-enterprise-domain>:8800 and clicking on the ‘Check Now’ button. If an update is available you will be able to read the release notes and install the update.
There will be a small amount of downtime while an update is installed. For this reason we recommend that you perform each update during a maintenance window.
Updating Replicated on the Platform #
To update Replicated on the Platform installation you’ll want to run the install script which will download the latest version. Depending on whether you are behind a web proxy you’ll want to run one of these:
curl -sSL -o /tmp/installer.sh https://enterprise.travis-ci.com/install sudo bash /tmp/installer.sh
curl -sSL -x http://: -o /tmp/installer.sh https://enterprise.travis-ci.com/install sudo bash /tmp/installer.sh http-proxy=http://:
Updating your Travis CI Enterprise Worker #
On Ubuntu 16.04 and later #
On Ubuntu 16.04 and later, travis-worker ships inside a Docker container. To update travis-worker, please follow the steps below.
- Configure the new image by editing the Docker tag in
- Reload the configuration and restart the service:
$ sudo systemctl daemon-reload $ sudo systemctl restart travis-worker
On Ubuntu 14.04 #
In order to update the Worker, you can run the following on each worker host:
$ sudo apt-get update $ sudo apt-get install travis-worker
Restoring from Backups #
If the rare event something goes wrong and/or you’d like to restore from a back-up, please use the following steps:
- Boot up a replacement machine with a fresh install of Ubuntu 14.04.
- Follow the directions in the Installation Guide. If you cannot find this, let us know at email@example.com
- Setup your Travis CI instance filling out the settings as needed. Fill in the RabbitMQ password and Travis Encryption Key that you saved. Save the settings and start up the Travis container.
- Stop the Travis CI container in the Replicated dashboard.
- As a superuser (to preserve user permissions), unzip the Travis backup you made and copy the directories to the appropriate places (
- Start Travis CI via the Replicated dashboard
Note, that this does still put you on the latest version of Travis CI Enterprise. Rolling back strategies will need to be coordinated with the Travis CI team as it requires changing licenses back to the legacy release channel.
Contact Enterprise Support #
To get in touch with us, please write a message to firstname.lastname@example.org. If possible, please include as much of the following as you can:
- Description of the problem - what are you observing?
- Which steps did you try already?
- A support bundle (You can get it from
- Log files from all workers (They can be found at
/var/log/upstart/travis-worker.log- please include as many as you can retrieve).
- If a build failed or errored, a text file of the build log
Have you made any customizations to your setup? While we may be able to see some information (such as hostname, IaaS provider, and license expiration), there are many other things we can’t see which could lead to something not working. Therefore , we’d like to ask you to also answer the questions below in your support request (if applicable):
- How many machines are you using?
- Do you use configuration management tools (Chef, Puppet)?
- Which other services do interface with Travis CI Enterprise?
- Do you use Travis CI Enterprise together with github.com or GitHub Enterprise?
- If you’re using GitHub Enterprise, which version of it?
We’re looking forward to helping!