To access the latest bug fixes and new features, update your customer-hosted Looker instance by following these manual steps.
Before proceeding, be aware that rolling back to an earlier version can cause serious problems. Instead, always restore from a backup if you need to revert. If you operate a Looker cluster, update each node completely, one at a time. This process also assumes your instance includes the startup script installed during initial setup.
- Download the most recent release of the Looker JAR files as described on the Downloading the Looker JAR Files documentation page.
Stop the Looker process from shell, as the looker user:
sudo su - looker cd /home/looker/looker ./looker stopIf you are updating a Looker cluster, repeat this process so that Looker is stopped on every node.
Back up your entire Looker directory, including hidden directories (see the Restoring backups documentation page for more detail).
If you have migrated Looker's default in-memory database to an external MySQL database, or if you are updating a Looker cluster, back up the MySQL database.
Rename
looker-x.x.x.jartolooker.jarandlooker-dependencies-x.x.x.jartolooker-dependencies.jar. Copylooker.jarandlooker-dependencies.jarto the server directory (/home/looker/looker/looker.jar). Both files must be in the same directory.Start the Looker process from the shell as the looker user:
If you are updating a Looker cluster, start the Looker process on one node only. Don't start Looker on the other nodes until the first node has completed the update process.
./looker startYou can also use the
java -jarcommand to start Looker. The core JAR will find the dependency JAR as long as it is in the./lookerdirectory along with the core JAR.In addition, if you'd rather use a Looker-provided startup script, you can find a startup script at: https://github.com/looker/customer-scripts.
When you update your Looker version, Looker must also update its internal database. The database update usually takes less than five minutes, but it can sometimes take longer than the Looker startup process. If you try to start Looker while the internal database is still updating, the daemonizing process will time out in six minutes with the message "Timed out waiting for Looker to start."
During an update, the required migrations can take up to an hour, especially if you are skipping several releases. If you receive this error message, wait for the update to finish and for Looker to start. You can confirm whether the update process is still running by using the command:
ps -f $(pgrep -f -- '-jar looker.jar')Stopping and restarting the Looker process while the internal database updates are in progress can corrupt the internal database. If this happens, restore Looker from an existing backup and perform the update again.
If you are updating a Looker cluster, wait until the first node has completed the update process before starting Looker on the other nodes.