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:
sudo vi /etc/systemd/system/lyftdata-server.serviceThe file must contain the following:
[Unit]Description=lyftdata ServerAfter=network.target auditd.service
[Service]EnvironmentFile=/etc/default/lyftdata-serverUser=lyftdataGroup=lyftdataExecStart=/usr/sbin/lyftdata run serverRestart=on-failureRestartSec=60
[Install]WantedBy=multi-user.targetCreate an environment file for the EnvironmentFile setting:
sudo vi /etc/default/lyftdata-serverHere, 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:
LYFTDATA_STAGING_DIR=/var/lib/lyftdata-serverLYFTDATA_LICENSE_EULA_ACCEPT=yesLYFTDATA_ADMIN_INIT_PASSWORD=ChangeMeVerySoonWe’ve added 2 additional environment variables:
-
LYFTDATA_LICENSE_EULA_ACCEPT=yesprevents the one-time prompt for accepting the EULA. -
LYFTDATA_ADMIN_INIT_PASSWORDprovides an initialpasswordfor the Serveradminuser.
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-urlsudo -u lyftdata /usr/sbin/lyftdata server create-admin --staging-dir /var/lib/lyftdata-server
Once you have saved the service unit file, reload systemd:
sudo systemctl daemon-reloadTo start the Server at boot, enable the service with:
sudo systemctl enable lyftdata-serverFinally, start the Server:
sudo systemctl start lyftdata-serverVerify that the Server started successfully:
systemctl status lyftdata-serverIt’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:
journalctl -u lyftdata-serverThe 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.