Skip to content

Server Installation

The LyftData binary is installed and available on the system, set up the Server as follows:

Use the steps below to register the service account, install the systemd unit, and verify the control plane is reachable.

Need a trial-only setup? Start with the Evaluation Quickstart before committing to service accounts and systemd units.

Create systemd files

Create a systemd service unit file:

Terminal window
sudo vi /etc/systemd/system/lyftdata-server.service

The file must contain the following:

Terminal window
[Unit]
Description=lyftdata Server
After=network.target auditd.service
[Service]
EnvironmentFile=/etc/default/lyftdata-server
User=lyftdata
Group=lyftdata
ExecStart=/usr/sbin/lyftdata run server
Restart=on-failure
RestartSec=60
[Install]
WantedBy=multi-user.target

Create an environment file for the EnvironmentFile setting:

Terminal window
sudo vi /etc/default/lyftdata-server

Here, the Server is configured through either lyftdata run server options or environment variables. In this case, we’ll be using the latter.

At a minimum, the Server needs LYFTDATA_STAGING_DIR and LYFTDATA_LICENSE_EULA_ACCEPT. For unattended service installs, also set LYFTDATA_ADMIN_INIT_PASSWORD:

Terminal window
LYFTDATA_STAGING_DIR=/var/lib/lyftdata-server
LYFTDATA_LICENSE_EULA_ACCEPT=yes
LYFTDATA_ADMIN_INIT_PASSWORD=ChangeMeVerySoon

We’ve added 2 additional environment variables:

  • LYFTDATA_LICENSE_EULA_ACCEPT=yes prevents the one-time prompt for accepting the EULA.

  • LYFTDATA_ADMIN_INIT_PASSWORD provides an initial password for the Server admin user.

If LYFTDATA_ADMIN_INIT_PASSWORD is unset, the server enters Initial Setup Required and writes a one-time setup link to /var/lib/lyftdata-server/bootstrap/initial-admin.url. journalctl shows that setup is required and where the file lives, but it does not print the token itself.

Useful local alternatives when you omit LYFTDATA_ADMIN_INIT_PASSWORD:

  • sudo -u lyftdata /usr/sbin/lyftdata server bootstrap --staging-dir /var/lib/lyftdata-server --bind-address 127.0.0.1:3000 --print-url
  • sudo -u lyftdata /usr/sbin/lyftdata server create-admin --staging-dir /var/lib/lyftdata-server

Once you have saved the service unit file, reload systemd:

Terminal window
sudo systemctl daemon-reload

To start the Server at boot, enable the service with:

Terminal window
sudo systemctl enable lyftdata-server

Finally, start the Server:

Terminal window
sudo systemctl start lyftdata-server

Verify that the Server started successfully:

Terminal window
systemctl status lyftdata-server

It’s a good idea to inspect the startup output so you can confirm the ready splash and, if needed, see the setup URL file path:

Terminal window
journalctl -u lyftdata-server

The Server will be listening on LYFTDATA_BIND_ADDRESS (default 127.0.0.1:3000). HTTPS is enabled by default using a self-signed certificate.

Go to https://localhost:3000/ in a browser. You will see a certificate warning because the default certificate is self-signed; proceed for evaluation. If you used LYFTDATA_ADMIN_INIT_PASSWORD, sign in as admin with that password. Otherwise, retrieve the one-time setup URL from /var/lib/lyftdata-server/bootstrap/initial-admin.url, create the admin password in the setup flow, and then sign in.

At this point, the Server is ready to start serving Workers.