RotorLab logo RotorLabDocs

RotorLab Server: Install

This page is part of RotorLab Server. It covers getting a release, the three ways to install it, first setup, and the one file you must back up.

Each install carries what it needs and fetches nothing while installing, so each works with no internet.

Get a release#

Download a release from Downloads in My Account. A release comes with these files:

FileFor
rotorlab-server-VERSION-linux-x86_64.tar.gz, ...-linux-arm64.tar.gzA Linux host
rotorlab-server-VERSION-linux-x86_64.docker.tar.gz, ...-linux-arm64.docker.tar.gzDocker, at a site with no link
rotorlab-server-VERSION-windows-x86_64.msiWindows
*.cdx.jsonSoftware bills of materials
SHA256SUMSChecksums of every file

Check what you downloaded against SHA256SUMS: sha256sum -c SHA256SUMS --ignore-missing on Linux, or Get-FileHash FILE in PowerShell, compared with the file's line. A signed release also carries a .sig for each file. Check it against your own copy of RotorLab's public key:

ssh-keygen -Y verify -f allowed_signers -I release@rotorlab.app -n rotorlab-release -s FILE.sig < FILE

Linux host#

For a systemd-based Debian or Ubuntu host on x86-64 or arm64. Docker is not needed.

tar -xzf rotorlab-server-VERSION-linux-x86_64.tar.gz
cd rotorlab-server-VERSION-linux-x86_64
sudo ./install.sh

The server runs as its own account with no capabilities, with data in /var/lib/rotorlab-server. The installer prints the first setup code. To upgrade, run the same steps with a newer bundle: if the new release does not come back healthy, it rolls itself back. sudo ./rollback.sh goes back by hand, and sudo ./uninstall.sh removes the program and leaves your data.

The console answers on this machine only. From elsewhere, use an SSH tunnel, or open it to your network over HTTPS with sudo rotorlab-server network on, then restart the server.

Docker#

Needs Docker with Compose.

tar -xzf rotorlab-server-VERSION-linux-x86_64.docker.tar.gz
./install.sh

The image runs as a non-root user with every capability dropped and a read-only root, with data and its key in two named volumes. Never run docker compose down -v, which deletes them. The first setup code is in docker compose logs server. Set ROTORLAB_SERVER_ADDRESS to the address people reach this machine by. The console is published on this machine only, at http://127.0.0.1:5000 (ROTORLAB_SERVER_PORT changes the port). The HTTPS port, 5443, is published too, and answers only once Reachable from my network is on. MAVLink is not published by default: see Aircraft links.

Windows#

Windows 10 or Server 2019 or later, on x86-64. Run the MSI. It installs a service called RotorLab Server, running as LocalService, with data in %ProgramData%\RotorLab Server, which only that service and administrators can read. Uninstalling leaves your data.

The first setup code is in the service log, in %ProgramData%\RotorLab Server\logs. Open http://127.0.0.1:5000/setup. Host commands are in rotorlab-server.cmd in the install folder, from an administrator prompt.

First setup#

  1. Enter the setup code and create the first admin. Sign in and set up the required second factor.
  2. On First setup: License, enter a license key, or use the displayed device id to download and import a signed license file from a connected computer. You can choose Set up without a license and add one later under Settings, License. No role starts until a license verifies, and stored records stay available.
  3. To file to RotorLab.app, add a Device Key under Settings, RotorLab. An organization admin makes the key in RotorLab.app, under Organization, Integrations, Devices: see Devices. When the key is accepted, the page says "Connected as" and the key's device label.
  4. If other machines need the console or ground stations, turn on Reachable from my network under Settings, Network. While it is on, any machine that can reach the server can open the sign-in page and the ground station connection, over HTTPS, so turn it on only on a network you control. The default HTTPS port is 5443, and ROTORLAB_SERVER_HTTPS_PORT changes it.

On the command line, rotorlab-server license device-id, license add (reads a key from standard input), license show, license import FILE, and license fetch --device-id ID --out FILE (on a connected machine, to make a license file) do the same as the License page.

The certificate#

The server makes its own HTTPS certificate. Replace it under Settings, Network with one from your organization if you have one. Clients pin the public key, so a renewal under the same key breaks nothing. The page also shows the certificate pin, for anyone enrolling a ground station by hand, and takes an outbound proxy and your organization's certificate authority if your network inspects TLS. Write the proxy address without a user name or password: this server does not send proxy credentials, and the page refuses an address that has them.

Back up your key file#

Back up the key file apart from your data

The key file is secret.key in the data folder. Without it, sealed recordings and secrets cannot be opened. Daily backups never include it. Set ROTORLAB_SERVER_KEY_FILE to keep it on another volume. The Docker compose file already does: the key is /key/secret.key on its own key volume, made on first start. Back up the key volume apart from the data volume.

Under Settings, Operations, the server backs up its database and settings every day and keeps 14 days. Stored files stay in the store, for its own backup. Back up now runs one at once.

To restore, stop the server, then run rotorlab-server restore FOLDER. It checks the backup against the key file before it writes anything, and applies every later delete, revocation and hold.

Health and monitoring#

Operations shows Healthy or Needs attention from the database, disk, key file and clock. It also says when the server's clock was last compared with RotorLab's and how many seconds apart they were, or that it was not checked: the server compares only when it files to RotorLab, and never changes its own time. /healthz always answers 200, so a box is never restarted over something a restart cannot fix. A Prometheus endpoint at /metrics is read with a bearer token you make on the same page. Download a support bundle collects what support asks for. Alerts can go to a webhook or email for break-glass sign-ins, filings that need a person, and health problems.