Contact
Skip to the page text

Documentation / Guides / Machine administration

Files and folders on the machine

The three places

  • /etc/onprem-ai/ holds what you write: the config files and the certificate authorities. The platform never changes them, and every release reads the control plane's config.env: a setting name of an earlier release keeps working, with a warning that names the new name, and a name the release does not know is skipped with a warning.
  • /opt/onprem-ai/ holds the program and the release. Each install and update replaces it. You edit nothing in it.
  • /var/lib/onprem-ai/ holds the data the platform writes while it runs. It belongs to the release that wrote it: an install takes it up only with that same release, and only an update takes it to another release.

On a Mac the control plane keeps the same three places under /Users/Shared/onprem-ai/, a folder Docker Desktop shares with its containers: settings/control-plane/ for your settings, control-plane/ for the program and var/control-plane/ for the data.

What to back up from each place, and how, is in Backing up and restoring.

The control plane

FolderWhat it holdsWho writes it
/etc/onprem-ai/control-plane/config.env and the files it names; config-help.envA new install writes config.env when there is none; then only you. onprem-ai-ctl writes config-help.env and keeps it current: do not edit it
/etc/onprem-ai/trusted-certificate-authorities/Your own certificate authoritiesYou
/opt/onprem-ai/control-plane/The program bin/onprem-ai-ctl (linked as /usr/local/bin/onprem-ai-ctl, and /usr/bin/onprem-ai-ctl on Linux), the installed release compose.yaml, and the release before it, compose.previous.yaml, to go back toEach install and update
/var/lib/onprem-ai/control-plane/The generated config files, machine-identity.generated.env, secrets/ (written at the first install and kept; an update adds a secret a newer release needs; see Secrets), tls/ (the certificate files given to the install) and state/ (the installed release in state/installed-release/release.json, each update's progress and log in state/updates/)The install, apply and each update
The container engine's volumesThe database, the object storage, the metricsThe platform

The volumes survive every update, a restart and docker compose down. Three of them hold nothing that is lost with them, because the control plane writes them again: edge-certificates (the certificates the control plane presents on its two ports), machine-addresses (this machine's network addresses, detected at start and every 30 seconds) and the trust bundle built from your certificate authorities at each start.

The inference node

FolderWhat it holdsWho writes it
/etc/onprem-ai/inference-node/config.envYou
/etc/onprem-ai/trusted-certificate-authorities/Your own certificate authoritiesYou
/opt/onprem-ai/inference-node/The installed versions of the nodeEach install and update
/var/lib/onprem-ai/inference-node/The node's data: its identity, its records, and by default its model weightsThe platform

What the node's data folder holds, its defaults on each system, and how to keep the model weights on another disk is in Data directories.

Which file to edit for what

You want toEditThen
Change a setting of the control plane: ports, proxy, single sign-on, secure cookies, session time, minimum TLS version, catalogs, object storage/etc/onprem-ai/control-plane/config.env (root, mode 0600)sudo onprem-ai-ctl apply
Change a setting of an inference node, for example its proxy/etc/onprem-ai/inference-node/config.envsudo systemctl restart onprem-ai-inference-node
Trust your own certificate authorityAdd the file to /etc/onprem-ai/trusted-certificate-authorities/As Trusting your own certificate authority shows
Set the control plane's proxyHTTPS_PROXY and NO_PROXY in the control plane's config.envsudo onprem-ai-ctl apply

A reboot and onprem-ai-ctl start do not read config.env. apply and onprem-ai-ctl restart do. sudo onprem-ai-ctl doctor shows the settings in effect and the edits that wait for apply.

config.env holds only the settings you set. A setting that is not in the file has its default. config-help.env in the same folder lists every setting with its explanation and an example line: copy a line from there into config.env, give it your value, and run sudo onprem-ai-ctl apply.

When /etc/onprem-ai/control-plane/config.env does not exist (a machine installed before release 5.7.0), the control plane runs with the settings in effect. When you write the file on such a machine, write every setting into it that is in effect and that you want to keep, because the file is the complete list: sudo onprem-ai-ctl doctor shows the settings in effect. An update does not start on such a machine while a setting is in effect that the file does not name: the Updates page and onprem-ai-ctl update name each setting and the steps to write it into the file. The old path /etc/onprem-ai/inference-node.env of the node is still read too.

Files you never edit

  • A file with .generated in its name (config.generated.env, backend.generated.env, machine-identity.generated.env) is written by the platform. The next apply, restart, install or update replaces the first two. The first install writes machine-identity.generated.env, and nothing writes it again: inference nodes know the machine by it. Never edit any of them.
  • .env and compose.override.yaml in /opt/onprem-ai/control-plane/ are placeholders. Each holds only a comment that points to the config file. Nothing reads them, and anything you write there has no effect.

Found a mistake, or is something missing? Suggest an improvement to this page on GitHub.

Platform release 5.10.4, . Source of this page at v5.10.4. This page as Markdown.