Skip to main content
Version: 1.3

License setup

After you install ToBeAlert, the UI opens License setup until a valid license is in place. The screen has two modes:

ModeWhen to useWhat you provide
OnlineThe host can reach the licensing serverYour License Key
OfflineAir-gapped or restricted egressThe offline license file from the customer portal

You can switch modes at any time with the Online / Offline control at the top of the form. You do not need both.

License setup is the first-run screen (before login). You can activate or install without an account only while the UI sends you there: there is no license file yet, or the file does not belong to this machine. After that, License setup is no longer an unauthenticated path.

Later, if a license expires or becomes not active, signed-in users see an in-app overlay instead — see After first run. From then on, activate and install (overlay or any other client) require an admin account. A standard user cannot complete those actions.

Refresh license from cloud (superadmin, About) on an instance that already had a license is not first-run License setup. If the licensing server says the license is expired or not found, the in-session license is invalidated and the same License expired / License not active overlay appears. A timeout or transport error does not invalidate the license.

For the rest of the install, see Docker, Linux, Windows, or Kubernetes.

What you need​

  • A running ToBeAlert stack (open BASE_URL — you should land on License setup, not login)
  • Online: the license key from your subscription
  • Offline: access to the ERP customer portal, plus the offline license file downloaded there (treat it like a secret)

If you cannot find the key or the file, contact your account manager or support@tobealert.com.

Online — activate with a license key​

  1. Open the UI (BASE_URL). You should see License setup.
  2. Leave the mode on Online (default).
  3. Enter your License Key.
  4. Click Activate License.
  5. On success you are redirected to login.

License setup — Online mode with License Key and Activate License

The host must be able to contact the licensing server for this path. If activation fails with a connection error, use Offline instead.

Offline — install a license file​

Use this when the instance cannot reach the licensing server.

Download the file​

  1. Sign in to the ERP customer portal for your ToBeAlert account.
  2. Open your product / licenses and download the offline license file.
  3. Store it securely. Do not commit it to git or paste it into tickets.
  1. Open the UI (BASE_URL). You should see License setup.
  2. Click Offline. The hint changes to explain that this host will not contact the licensing server.
  3. Click Choose the offline key file and select the file from the portal. The file name appears under the drop area.
  4. Click Install offline license.
  5. On success you are redirected to login. You do not need to rename the file to key for this path.

License setup — Offline mode with file picker and Install offline license

If License setup is not reachable, copy the file onto the backend as below.

Place the file by hand (fallback)​

The backend reads a single file at this path inside the container or host:

/tobealert/license/key

That directory is the persistent license volume mounted in Compose and Kubernetes as /tobealert/license.

File name

On disk the file must be named key (no extension). If the portal downloads a different name, rename it to key before or while copying.

Docker Compose​

With the stack from the install guides (container name tobealert-backend):

# From the directory that contains your downloaded file (rename to key if needed)
docker cp ./key tobealert-backend:/tobealert/license/key
docker compose restart tobealert-backend

If you prefer Compose’s copy helper (run from $INSTALL_PATH):

docker compose cp ./key tobealert-backend:/tobealert/license/key
docker compose restart tobealert-backend

To install the file before the first start when using a host bind mount for the license directory (instead of the named volume license_data), put key on the host path you mount at /tobealert/license, then start the stack.

Kubernetes​

Copy into the running backend pod (adjust namespace and pod name), then restart the deployment so license state reloads:

kubectl cp ./key tobealerta-interno/<backend-pod>:/tobealert/license/key
kubectl rollout restart deployment tobealerta-backend -n tobealerta-interno

If you use a host-path PersistentVolume for license data (as in the Kubernetes guide), you can also place key directly on that host directory (for example /tmp/tobealerta-license/key) and restart the backend pod.

Confirm activation​

  1. Open the UI (BASE_URL). You should reach login instead of remaining on License setup.
  2. Sign in as a superadmin.
  3. Open About (sidebar footer) and check License Information:
    • Status should be ACTIVE
    • Offline License shows whether this instance is using an offline file

After first run — expired or inactive license​

Once the instance already had a license and users can sign in, License setup is no longer the path. If the license later expires or is not active, the Web UI shows an overlay after login (same Online / Offline modes as this page). The same overlay appears if a superadmin uses Refresh license from cloud and the licensing server reports the license as expired or not found. The same admin requirement applies if the file is present but unusable (corrupted, invalid, or not active): unauthenticated License setup is not offered.

The server enforces this — not only the overlay. Activate and install after first run are admin only. Signing in as a standard user is not enough.

  • Admin users can reactivate there: Online (license key + Activate License) or Offline (ERP portal file + Install offline license). The host does not contact the licensing server in Offline mode.
  • Users who are not admin see License expired or License not active and must contact their administrator. They do not get a key field or file upload.
  • Superadmin is a different role: About → License Information is for status and maintenance when the license is valid. Overlay reactivation is an admin action. Details: About.

Replace or refresh a license​

SituationWhat to do
License expired or not active (users can still log in)Admin: overlay after login — Online or Offline, same as this page. Non-admin: contact an administrator
Refresh license from cloud and the licensing server says the license is expired or not foundThe in-session license is invalidated. The License expired / License not active overlay appears. An admin reactivates there (Online or Offline). This is not License setup.
Refresh license from cloud fails (timeout or cannot reach the licensing server)Error toast on About. The license is not invalidated.
New offline file (renewal, tier change) while the license is still validSuperadmin → About → Delete License, then install the new file from License setup, or replace /tobealert/license/key and restart the backend
New online key while the license is still validSuperadmin → About → Change License, or Delete License and activate the new key on License setup
Temporary internet access to pull cloud updatesSuperadmin → About → Refresh license from cloud

Refresh license from cloud is the only Offline path that contacts the licensing server. Day-to-day validation of an offline file stays local. When that refresh succeeds, License Information on About updates. When the licensing server reports the license as expired or not found, the in-session license is invalidated and the License expired / License not active overlay appears — not License setup. When the refresh cannot reach the licensing server, the license stays as it is.

Troubleshooting​

SymptomLikely cause
License setup still appearsOnline: key rejected or licensing server unreachable. Offline: file rejected, missing on disk, not named key (manual copy), or not under /tobealert/license
Connection error on Activate LicenseHost cannot reach the licensing server — switch to Offline
Please choose an offline license fileYou clicked Install offline license without selecting a file
Blackbox error pageLocal licensing component not running or not reachable on the backend host
License invalid / corruptedTruncated download, file meant for another product or machine, or file edited by hand
Works after copy but fails after recreateLicense volume not persisted — check Compose volumes / PVC binding

Need help? support@tobealert.com.