# Install eaxScada

> Install eaxScada as a native binary, a Docker container, a Docker Compose stack or a hardened systemd service, then check that it is healthy.

Product: Platform · Type: How-to guide · Editions: Starter, Pro, Enterprise
Source: https://eaxware.com/docs/platform/how-to/install/
Status: migrated page, not yet verified against the current code.

This guide deploys **eaxScada** on physical servers, virtual machines, edge gateways and containers.

:::note[Downloads]
Downloads open with the early-access release. [Join the early-access list](https://eaxware.com/#early-access) to get the binaries, the container images and the Compose files when they ship. The steps below describe the installation for that release.
:::

---

## 1. Deployment options

eaxScada is a single binary with an embedded NATS messaging core, a web engineering studio and a historian. Every paid edition has **unlimited tags, displays and clients**.

- **Free**: every feature, at no cost, for evaluation and non-production use on a single node. 2D screen design is fully available; 3D digital-twin scenes can be viewed and run, but 3D design (creating or editing scenes, uploading library models, exporting equipment) starts at Pro. **The runtime runs in 60-minute sessions**: when a session ends, the runtime stops (drivers stop polling, writes stop) and your projects, screens and history are kept. A person restarts it with one click for another 60 minutes. Free does not run as a high-availability pair.
- **Starter**: a perpetual licence for production on a single node. It includes the embedded UNS/NATS backbone, all five field drivers, the web screen designer, the 3D digital twin player (view and run scenes with live data), and the columnar historian engine (the embedded database, as in every edition), which also reads Hive-partitioned CSV history (`data/historian/year=YYYY/month=MM/day=DD/tag=.../*.csv`) in place.
- **Pro and Enterprise**: perpetual licences. They add the features built on the historian (part and lot genealogy, Parquet analytics export), the procedural 2D studio, 3D design with the 3D model library, the DVR recorder, the AI assistant, and LDAP/AD and OIDC single sign-on. Enterprise adds hot standby HA, the 21 CFR Part 11 e-signature workflows and historian encryption.
- **The audit trail** (its own database, `data/audit/audit.duckdb`) records in Starter, Pro and Enterprise; Free has none. It has its own [system requirements](#21-prerequisites) for the disk that holds it.

Every edition runs the same server program, `eaxscada` (`eaxscada.exe` on Windows): the licence you activate decides the edition.

See [Editions](/docs/platform/reference/editions/) for the prices and the full feature matrix.

### Activate a licence

To run Starter, Pro or Enterprise in production, activate your licence on the server. See [Activate a licence](/docs/eaxscada/how-to/activate-licence/).

Every edition can be deployed in three forms:

1. **Native binary**: the lowest latency, for industrial PCs that need real-time thread affinity and direct fieldbus access.
2. **Docker container**: no host dependencies and isolated networking, for skid commissioning, edge gateways and CI pipelines.
3. **Linux service (systemd)**: a headless deployment with process supervision, watchdog recovery, OS hardening and real-time thread priority.

---

## 2. Native binary

### 2.1 Prerequisites

- **Operating system:**
  - Linux with systemd and glibc 2.28 or later: Ubuntu 20.04+, Debian 11+, RHEL 8+
  - Windows: Windows 10/11 Enterprise LTSC, Windows Server 2019/2022
- **Architecture:** `amd64` (x86_64).
- **Runtime dependencies:**
  - **Every edition, Starter included**: the server links in the columnar historian engine. On Linux it needs `libstdc++` (installed on these distributions by default). On Windows, install the Microsoft Visual C++ 2015–2022 Redistributable.
- **The audit trail's disk (Starter, Pro, Enterprise).** The audit trail runs on servers and industrial PCs, not on edge devices. Put its folder (`security.audit_data_dir`, `./data/audit` by default) on a local SSD (NVMe or SATA) or a server RAID with a battery- or flash-backed write cache, with 20 GB or more free, and keep the clock synchronised by NTP. The server checks the folder when the trail opens:
  - **refused** (the server starts with the trail down: actions that must be recorded first are refused until it is fixed): a network share, a RAM disk, less than 10 GB free;
  - **warned**: removable media, an SD card or eMMC, less than 20 GB free, sync times that are implausibly fast or slow;
  - **the server does not start**: the audit folder inside or around the historian folder (a Free server, which records nothing, starts).

  While the server runs, the system alarm `ALM-SYS-AUDIT-DISK` warns when the audit folder's volume falls under 10 GB free; System Health's **Audit trail** card shows the trail's state.

  See [Audit trail system requirements](/docs/platform/explanation/security-and-part-11/#25a-audit-trail-system-requirements).

### 2.2 Steps

#### Linux

On Linux, eaxScada and eaxPLC are installed as systemd services from their release archives, with the installer in each archive: see [5. Linux service (systemd)](#5-linux-service-systemd). The archives are for `amd64` (x86_64).

To try the server in a console without installing it, extract the archive and start it with a work directory of your own; it keeps `config/`, `data/` and `logs/` under it:

```bash
tar -xzf eaxscada_<version>_linux_amd64.tar.gz
mkdir -p ~/eaxscada-trial
./eaxscada_<version>_linux_amd64/bin/eaxscada --workdir ~/eaxscada-trial
```

The web port comes from `server.port` in `config.yaml`, or from the `SCADA_PORT` environment variable.

#### Windows

1. Extract `eaxscada_<version>_windows_amd64.zip`. It holds one folder, `eaxscada_<version>_windows_amd64\`, with:
   - `bin\`: the server `eaxscada.exe` and the libraries it loads (`duckdb.dll` and the `historian_ext\` folder; keep them next to `eaxscada.exe`), plus `scada-cli.exe`, `plc-server.exe` and `eaxplc-rt.exe`;
   - `install.ps1`, the installer, and a default `config.yaml`.
2. In that folder, open PowerShell as an administrator and run the installer. The examples on these pages use `C:\eaxware\eaxScada`; without `-InstallDir` the installer uses `C:\Program Files\eaxware\eaxScada`:
   ```powershell
   .\install.ps1 -InstallDir C:\eaxware\eaxScada
   ```
   It copies the programs to `C:\eaxware\eaxScada\bin\`, writes `config\config.yaml`, creates `data\` and `logs\`, and adds `bin\` to your PATH (`-SkipPath` leaves the PATH alone). Add `-RegisterService` to register the eaxScada and eaxPLC Windows services; a service is started with `--workdir` set to the install folder.
3. To run eaxScada in a console instead:
   ```powershell
   C:\eaxware\eaxScada\bin\eaxscada.exe --workdir C:\eaxware\eaxScada
   ```
   The server reads `config\config.yaml` under the work directory.

:::note[Antivirus and the search indexer]
eaxScada saves its configuration and data files by writing a temporary file and renaming it over the old one. On Windows an antivirus scan or the search indexer can hold a file for a moment, and the rename then fails with "Access is denied" or a sharing violation. The server retries such a save for up to 2 seconds; if the file is still held, the save fails with the original error and the temporary file is removed. If "Access is denied" still shows up in the log for files under `data\` or `config\`, exclude the install folder (for example `C:\eaxware\eaxScada`) from real-time scanning and indexing, or check that the server's account may write there.
:::

---

## 3. Docker

### 3.1 Single container

The container exposes port `8080` (web HMI, Studio, REST, WebSocket) and port `4222` (embedded NATS UNS). The container images are published with the [early-access release](https://eaxware.com/#early-access); replace `<eaxscada-image>` with the image for your edition:

```bash
docker run -d \
  --name eaxscada \
  --restart unless-stopped \
  --stop-timeout 120 \
  -p 8080:8080 \
  -p 127.0.0.1:4222:4222 \
  -v eaxscada-data:/var/lib/eaxware/eaxscada/data \
  -v eaxscada-logs:/var/lib/eaxware/eaxscada/logs \
  -e SCADA_PORT=8080 \
  <eaxscada-image>
```

Starter, Pro and Enterprise use the same options. `--stop-timeout 120` gives a stop 2 minutes to close the stores before Docker kills the container (its default is 10 s): see [Stopping without cutting a checkpoint short](#stopping-without-cutting-a-checkpoint-short). The image uses the paths of the Linux installation: the server is `/opt/eaxware/eaxscada/bin/eaxscada`, its configuration `/etc/eaxware/eaxscada/config.yaml` (mount your own read-only to replace it) and its work directory `/var/lib/eaxware/eaxscada`. It runs as user `eaxscada` (uid 10001). The eaxPLC image runs `/opt/eaxware/eaxplc/bin/plc-server` with the work directory `/var/lib/eaxware/eaxplc`.

Publish NATS on loopback (`127.0.0.1:4222`) unless clients on other hosts authenticate with NKeys. See [The Unified Namespace](/docs/platform/explanation/unified-namespace/).

### 3.2 Volumes

- `/var/lib/eaxware/eaxscada/data`: persistent storage:
  - **Every edition**: the columnar historian database file, its spool (`data/historian/spool/`), the nightly snapshots (`data/backup/historian/`), any Hive-partitioned CSV history written before the columnar store (`data/historian/year=YYYY/month=MM/day=DD/tag={tagPath}/data.csv`; no new CSV is written), the ISA-18.2 alarm journal, local users and screen definitions.
  - **Starter, Pro and Enterprise**: the audit trail, `audit/audit.duckdb` and its `.wal` (the volume must be a local disk, not a network share or a RAM disk: [requirements](/docs/platform/explanation/security-and-part-11/#25a-audit-trail-system-requirements)).
  - **Pro and Enterprise**: in addition, Parquet partitions (`hive_export/`) and the daily Parquet export (`historian_export/`).
- `/var/lib/eaxware/eaxscada/logs`: rotating log files.

Images of earlier releases mounted these volumes at `/app/data` and `/app/logs`. The volumes keep their contents: mount the same volumes at the new paths (the Compose files of the release do).

---

## 4. Docker Compose

### 4.1 Starter: eaxScada with an eaxPLC runtime

The early-access release includes a ready-made Compose file. It runs eaxScada and an eaxPLC runtime that connects to it with the NATS identity eaxScada creates.

**Diagram: The Starter Compose file: two containers on one host** (network topology)

The Compose file runs eaxScada and an eaxPLC runtime on one host. Browsers on the network reach eaxScada on port 8080. The NATS broker of eaxScada, the eaxPLC Web Studio and the eaxPLC Modbus TCP server are published on the host's loopback address only. Between the containers, the runtime connects to the NATS broker of eaxScada with the identity eaxScada creates in its data volume, which the runtime mounts read-only; eaxScada calls the PLC API, and the runtime asks eaxScada for sign-in and e-signatures.

**Parts**

- **Browsers** (person or role): on the network
- **Programs on the host** (service or process): through 127.0.0.1
- **eaxScada** (product, inside Host: the Compose project): web, API and MCP gateway: 8080 NATS broker: 4222
- **eaxPLC runtime** (product, inside Host: the Compose project): Web Studio: 8085 Modbus TCP server: 5020
- **Data volume** (data store, inside Host: the Compose project): of eaxScada, with the NATS identity of the PLC

**Connections**

- **Browsers → eaxScada** (data or telemetry): 8080
- **Programs on the host → eaxScada** (data or telemetry): 4222. The NATS broker is published on the loopback address of the host only.
- **Programs on the host → eaxPLC runtime** (data or telemetry): 8085 5020. The eaxPLC Web Studio and the Modbus TCP server are published on the loopback address of the host only. Modbus TCP has no authentication: open port 5020 to an isolated control network only.
- **eaxPLC runtime ↔ eaxScada** (data or telemetry): NATS. The runtime connects to the NATS broker of eaxScada (4222) over the Compose network, with the identity eaxScada created.
- **eaxPLC runtime → eaxScada** (authentication): sign-in, e-signatures
- **eaxScada → eaxPLC runtime** (data or telemetry): PLC API. eaxScada calls the PLC API of the runtime on port 8085 over the Compose network (--plc-url http://plc:8085).
- **eaxScada → Data volume** (data or telemetry): creates it. eaxScada creates the NATS identity of the runtime in its data volume.
- **Data volume → eaxPLC runtime** (configuration or deploy): read-only. The runtime mounts the data volume of eaxScada read-only to read its identity.

Only port 8080 is open to the network. The broker, the eaxPLC Web Studio and Modbus TCP answer on the host itself until you publish them.

From the directory that holds it:

```bash
docker compose up -d
```

Endpoints:

- Web HMI and Dev Studio: `http://localhost:8080`
- Unified Namespace (NATS): `nats://localhost:4222` (loopback only)
- MCP gateway: `http://localhost:8080/api/mcp/rpc`
- eaxPLC Web Studio: `http://localhost:8085` (loopback only)
- eaxPLC Modbus TCP server: `localhost:5020` (loopback only)

The Compose files publish the eaxPLC Web Studio and the Modbus TCP server on the host's loopback address only. To reach the Modbus TCP server from devices or HMIs on the network, replace the port line `"127.0.0.1:5020:5020"` of the `plc` service with `"5020:5020"` (the Compose file has it as a comment).

:::caution[Modbus TCP has no authentication]
Anyone who can reach port 5020 reads and writes the PLC's process image. Open it on an isolated control network only, behind a firewall.
:::

### 4.2 Enterprise: high-availability pair

Enterprise high availability is two eaxScada nodes and a witness, active-passive. One node holds the primary lease and does the work; the standby takes the lease when the primary's lease expires (`ha.lease_ttl`, 3 s by default; the primary renews it every `ha.heartbeat_interval`, 0.5 s by default). There is no load balancing between the nodes. The early-access release includes a Compose file for the pair, `deploy/pro/docker-compose.ha.yml`; the plain `deploy/pro/docker-compose.yml` starts two independent nodes with no high availability. Each node runs with `--ha-role primary` or `--ha-role standby` and a unique `--node-id`; a third, lightweight node started with `--witness` provides the quorum.

**Diagram: An eaxScada pair loses its primary** (failover scenario)

Two eaxScada nodes and a witness share replicated state. One node holds the primary lease and does the work; the standby reads its devices and never writes. When the primary is lost, the standby takes the lease and becomes primary.

**Parts**

- **Operator stations** (person or role)
- **eaxScada node A** (product, primary): holds the primary lease
- **eaxScada node B** (product, standby): ready to take the lease
- **Witness** (service or process): third replica
- **PLCs and devices** (device or controller)

**Connections**

- **Operator stations → eaxScada node A** (data or telemetry): screens, writes
- **eaxScada node A ↔ eaxScada node B** (replication): replicated state
- **eaxScada node A ↔ Witness** (replication)
- **eaxScada node B ↔ Witness** (replication)
- **eaxScada node A → PLCs and devices** (command to equipment): writes
- **PLCs and devices → eaxScada node A** (data or telemetry): reads
- **PLCs and devices → eaxScada node B** (data or telemetry): reads
- **eaxScada node B → PLCs and devices** (command to equipment, not active): never writes

**Step 1 of 3: Normal**

Node A holds the primary lease and does the work: it serves the operator stations and writes to the devices. Node B, the standby, keeps reading its devices and never writes to them.

**Step 2 of 3: Primary lost**

Node A is lost. Nothing writes to the devices. Node B and the witness still hold two of the three replicas, so node B can take the lease.

- **eaxScada node A**: lost, down, not reachable
- **Operator stations → eaxScada node A** (data or telemetry, not active): screens, writes
- **eaxScada node A ↔ eaxScada node B** (replication, not active): replicated state
- **eaxScada node A ↔ Witness** (replication, not active)
- **eaxScada node A → PLCs and devices** (command to equipment, not active): stopped
- **PLCs and devices → eaxScada node A** (data or telemetry, not active): reads
- **eaxScada node B → PLCs and devices** (command to equipment, not active): not yet

**Step 3 of 3: Standby active**

Node B has taken the lease and is primary. It already held the configuration; it reads the whole store again before it accepts changes. For a few seconds the cluster can refuse a save: save again.

- **eaxScada node A**: lost, down, not reachable
- **eaxScada node B**: primary, holds the primary lease
- **Operator stations → eaxScada node B** (data or telemetry): screens, writes
- **eaxScada node A ↔ eaxScada node B** (replication, not active): replicated state
- **eaxScada node A ↔ Witness** (replication, not active)
- **eaxScada node A → PLCs and devices** (command to equipment, not active): stopped
- **PLCs and devices → eaxScada node A** (data or telemetry, not active): reads
- **eaxScada node B → PLCs and devices** (command to equipment): writes

Active-passive: one node works, the other waits. The witness holds the third replica, so one node and the witness can still agree when the other node is lost.

The nodes replicate the primary lease, active alarm states and shelves, running batch state, audit records, e-signature tickets and integration nonces, the integration registry, and eaxTags definitions, scripts, written values and script state. They also replicate the engineering configuration: projects, screens, the display tree, components, deploy manifests, driver configuration, alarm definitions, recipes, the 3D asset library and dashboards. The cluster holds the reference copy. Engineering changes are made on the primary; a standby refuses them and names the primary (set `ha.public_url` on each node to give its address).

Every SCADA node must use the same driver secrets key (`EAX_DRIVER_SECRETS_KEY_FILE`): the key is not replicated, and a node with a different key keeps channels with credentials stopped. The nodes do **not** replicate users, roles and passwords, the historian, the licence or key material: keep these identical on both nodes yourself. See [What HA replicates, and what you must keep identical on every node](/docs/eaxscada/how-to/upgrade-ha-pair/#what-ha-replicates-and-what-you-must-keep-identical-on-every-node).

---

## 5. Linux service (systemd)

For production installations on Debian, Ubuntu or RHEL, eaxScada and eaxPLC run as `systemd` services, installed from their release archives by the installer in each archive. You get automatic recovery on failure, filesystem sandboxing and the console log in journald. Every edition installs the same way: the licence sets the edition.

### 5.1 The release archives

| Archive | Programs (`bin/`) | Service |
|---|---|---|
| `eaxscada_<version>_linux_amd64.tar.gz` | `eaxscada` (the server, the studio embedded), `scada-cli`, `historian_ext/` (historian encryption extension) | `eaxscada` |
| `eaxplc_<version>_linux_amd64.tar.gz` | `plc-server` (PLC runtime and Web Studio), `eaxplc-rt` (edge runtime) | `eaxplc` |

Each archive also holds `install.sh`, the unit (`systemd/`), the default configuration (`config/`), `LICENSE.txt`, `NOTICE.txt` with `licenses/`, and `BUILDINFO.txt`. Check an archive against `SHA256SUMS.txt` before installing it:

```bash
sha256sum --check --ignore-missing SHA256SUMS.txt
```

### 5.2 Layout

The installer and the container images use the same paths:

| What | eaxScada | eaxPLC |
|---|---|---|
| Service (unit) | `eaxscada.service` | `eaxplc.service` |
| System user | `eaxscada` | `eaxplc` |
| Programs (replaced on upgrade) | `/opt/eaxware/eaxscada/bin/` | `/opt/eaxware/eaxplc/bin/` |
| Configuration (never replaced) | `/etc/eaxware/eaxscada/config.yaml`, `eaxscada.env`, `secrets/historian_tde.key` | `/etc/eaxware/eaxplc/eaxplc.env` |
| Work directory: `data/`, `logs/` (never removed) | `/var/lib/eaxware/eaxscada/` | `/var/lib/eaxware/eaxplc/` |
| Console log | `journalctl -u eaxscada` | `journalctl -u eaxplc` |

The PLC's NATS identity, `/etc/eaxware/nkeys/plc-01.nk`, is shared by both services through the group `eaxware` (owner `root`, group `eaxware`, mode `0640`): eaxScada's broker trusts it and eaxPLC connects with it. Each server also keeps a rotating file log in `logs/` under its work directory: eaxScada writes it where `logging.file` in `config.yaml` says (`/var/lib/eaxware/eaxscada/logs/eaxScada.log` in the package's configuration; see [Log file](#log-file)).

The units are hardened: no new privileges, the whole file system read-only except the work directory, a private `/tmp`, devices closed except the serial ports. eaxScada runs without any capability. eaxPLC keeps only `CAP_NET_RAW` (EtherCAT on a raw Ethernet port), `CAP_SYS_NICE` and `CAP_IPC_LOCK` (its real-time scan thread, `--rt-priority` and `--rt-mlock`). `eaxplc.service` starts after `eaxscada.service` but does not stop with it: restarting eaxScada never stops the PLC scan.

### 5.3 Install

On the machine, as root, from the folder where you downloaded the archives. Install eaxScada first: it creates the PLC's NATS identity.

```bash
tar -xzf eaxscada_<version>_linux_amd64.tar.gz
sudo ./eaxscada_<version>_linux_amd64/install.sh

tar -xzf eaxplc_<version>_linux_amd64.tar.gz
sudo ./eaxplc_<version>_linux_amd64/install.sh
```

The installer:

- refuses to run without root, or where systemd is not running (`--no-start` then installs the files only);
- creates the group `eaxware` and the users `eaxscada` / `eaxplc` (added to `dialout` for the serial ports);
- copies the programs, writes the configuration only if there is none, creates the historian encryption key once (`/etc/eaxware/eaxscada/secrets/historian_tde.key`: **back it up**, encrypted history cannot be read without it) and the PLC's NATS identity once;
- installs, enables and starts the service. If a port the service needs is already in use (eaxScada: `server.port` and `nats.port`, by default 8080 and 4222; eaxPLC: 8085 and 5020), it does not start the service, names the port and the program that holds it, and exits with code 3.

Options: `--no-start` installs and enables without starting, `--uninstall` (see below), `--migrate` (see 5.6), `--help`.

Running the installer again is safe: it replaces the programs and the unit, and keeps the configuration, the keys and the data.

### 5.4 Configure

- eaxScada: `server.port`, `nats.port` and the other settings in `/etc/eaxware/eaxscada/config.yaml` (see [Server flags and configuration](/docs/eaxscada/reference/server-configuration/)); extra server flags in `EAXSCADA_ARGS` in `/etc/eaxware/eaxscada/eaxscada.env`.
- eaxPLC: `EAXPLC_ID`, `EAXPLC_NATS`, `EAXPLC_SCADA_URL`, `EAXPLC_HTTP_PORT`, `EAXPLC_MODBUS_PORT` and extra flags in `EAXPLC_ARGS` (for example `--rt-priority 80 --rt-mlock`) in `/etc/eaxware/eaxplc/eaxplc.env`. For a PLC on another machine than eaxScada, copy `/etc/eaxware/nkeys/<plc id>.nk` from the eaxScada server to the PLC machine (owner `root`, group `eaxware`, mode `0640`) and set `EAXPLC_NATS` and `EAXPLC_SCADA_URL` to the eaxScada server.

Never edit the units in `/etc/systemd/system`: an upgrade replaces them. Use the environment files or a drop-in (`sudo systemctl edit eaxscada`); for example, to serve eaxScada on a port below 1024, a drop-in with `CapabilityBoundingSet=CAP_NET_BIND_SERVICE` and `AmbientCapabilities=CAP_NET_BIND_SERVICE`. Restart after a change:

```bash
sudo systemctl restart eaxscada
sudo systemctl status eaxscada eaxplc
journalctl -u eaxscada -f --output=cat
```

#### Log file

eaxScada writes its JSON log file to `logging.file` in `/etc/eaxware/eaxscada/config.yaml` (or `EAX_LOG_FILE` in `eaxscada.env`), `/var/lib/eaxware/eaxscada/logs/eaxScada.log` as installed. `logging.file_enabled: false` (or `EAX_LOG_FILE_ENABLED=false`) writes no log file; the journal keeps the console log.

- The unit lets the server write under `/var/lib/eaxware/eaxscada` only. For a log folder elsewhere, for example `/var/log/eaxscada`, create the folder for the user `eaxscada` and add it in a drop-in (`sudo systemctl edit eaxscada`):

  ```bash
  sudo install -d -o eaxscada -g eaxscada -m 0750 /var/log/eaxscada
  ```

  ```ini
  [Service]
  ReadWritePaths=/var/log/eaxscada
  ```

- **A log file that cannot be written stops the start.** The server does not run without the log the configuration asks for: `journalctl -u eaxscada` shows "cannot write the log file", the path, and the two fixes (a writable `logging.file`, or `logging.file_enabled: false`).

See [Log file](/docs/eaxscada/reference/server-configuration/#log-file-loggingfile-loggingfile_enabled) for every value.

#### Stopping without cutting a checkpoint short

When eaxScada stops, it closes its database stores, and each one writes a checkpoint. A process killed in the middle of a checkpoint can leave a store file that does not open (see [When a checkpoint was cut short](/docs/eaxscada/explanation/historian/#when-a-checkpoint-was-cut-short-repair-the-file)). The packages therefore give a stop time to finish, and every store has a memory cap so that the system does not kill the server for lack of memory:

| Package | Time to stop before the kill | Historian store memory |
|---|---|---|
| Linux archive (`eaxscada.service`) | `TimeoutStopSec=120s` (was 30 s) | `historian.store.memory_limit: 1GB` in the shipped `config.yaml` |
| Appliance image's `eaxscada.service` | `TimeoutStopSec=120s` (was 30 s) | as its configuration sets it |
| Compose files of the release (Starter, the two-node file, the HA pair) | `stop_grace_period: 120s` on every eaxScada service (was Docker's 10 s) | `1GB` in the full-build image's configuration and the HA sample; the standard-build image has no columnar store |

- **The unit is replaced on upgrade**, so an upgraded Linux service gets the 120 s. A drop-in of your own that sets `TimeoutStopSec` still wins: keep it at 120 s or more.
- **As a Windows service, a stop waits for every store to close.** The service reports its progress to Windows while it stops, and reports Stopped only once every store is closed, at most 5 minutes later. At an OS shutdown, Windows applies its own time limit. A script that waits for the service to stop must allow for this time.
- **Every store has a cap, even without the key.** A configured value always wins. Without `historian.store.memory_limit` the historian store takes 25% of the machine's memory, at least 512 MiB and at most 4 GiB (1 GiB when the memory cannot be read; in a container, its memory limit when it is lower); the other stores take fixed caps of 256 MiB to 1 GiB. The Windows package's configuration does not set the key, so there the historian takes this default. [Memory caps of the stores](/docs/eaxscada/explanation/historian/#memory-caps-of-the-stores)
- **Your `config.yaml` is never replaced**: an install made before this release keeps its own file, and its historian store gets the default above. To pin the cap the Linux and Docker packages ship, add it yourself, then restart:

  ```yaml
  historian:
    store:
      memory_limit: 1GB
  ```

- **The start log names each store's cap**: one line `DuckDB store memory cap` per store, with the cap, the threads and where each came from (`config` or `default`).

- **With `docker run`** (no Compose file), give the stop the same time: `docker run --stop-timeout 120 ...`, and `docker stop -t 120` for a stop by hand. A Compose file of your own needs `stop_grace_period: 120s` on the eaxScada service.
- Before this release, a store without a cap could take up to 80% of the machine's memory, each store of the process its own share.

### 5.5 Upgrade and uninstall

To upgrade, extract the new archive and run its `install.sh`: it stops the service, replaces the programs and the unit, and starts it again. eaxPLC's scan stops while the PLC restarts.

To uninstall, `sudo ./install.sh --uninstall` from the archive (or `--uninstall --product eaxscada|eaxplc`). It stops and removes the service and `/opt/eaxware/<product>`; the configuration (`/etc/eaxware/<product>`), the data (`/var/lib/eaxware/<product>`), the NATS identities and the users are kept. Remove them by hand only if you want them gone for good.

### 5.6 Upgrade from the earlier Linux layout

Earlier installs used other names: the units `eaxscada-pro` or `eaxscada-community` (or an `eaxscada` / `eaxplc` unit running from `/opt/eaxscada`), one user `eaxscada` for both products, the programs in `/opt/eaxscada`, the data in `/var/lib/eaxscada` (the eaxPLC data in `/var/lib/eaxscada/plc`) or in `/opt/eaxscada/data`, and the configuration in `/etc/eaxscada` or `/opt/eaxscada/config`.

The installer finds such an installation, lists what it would move, and changes nothing. Run it again with `--migrate`:

```bash
sudo ./eaxscada_<version>_linux_amd64/install.sh --migrate
sudo ./eaxplc_<version>_linux_amd64/install.sh
```

With `--migrate` it:

1. stops and disables the old units (the old eaxPLC unit too: the PLC scan stops until the eaxPLC archive is installed), and keeps the old unit files in `/var/lib/eaxware/migration-<time>/`;
2. moves the data to `/var/lib/eaxware/eaxscada` and `/var/lib/eaxware/eaxplc` (nothing is deleted, nothing is overwritten: if a destination exists, or two old folders would land in the same place, it stops before changing anything) and leaves `/var/lib/eaxscada` as a link to the new folder, so absolute paths in an old configuration keep working;
3. copies the old `config.yaml` to `/etc/eaxware/eaxscada/config.yaml` (if there is none yet) and lists its lines that still name the old paths; change them when you can;
4. keeps the PLC's NATS identity (`data/security/nkeys/plc-01.nk`) as `/etc/eaxware/nkeys/plc-01.nk`, so PLCs that already use it keep connecting;
5. writes what it did to `/var/lib/eaxware/migration-<time>/MIGRATION.txt`.

`/opt/eaxscada` (the old programs) and `/etc/eaxscada` are left as they were: remove them once the new installation runs. Settings of the old `/etc/eaxscada/eaxscada.env` are not read any more: move them to the new environment files. Update scripts, monitoring and backups that name `eaxscada-pro`, `/opt/eaxscada` or `/var/lib/eaxscada`.

---

## 6. Verify the installation

### 6.1 Health endpoint

```bash
curl -i http://localhost:8080/api/health
```

A healthy server answers `200 OK` with a JSON body that reports its status, version and tier.

### 6.2 Embedded NATS

With the `nats` CLI, check that the embedded broker accepts connections:

```bash
nats --server=nats://127.0.0.1:4222 rtt
```

### 6.3 Web UI

Open a browser on the server:

- **Dev Studio**: `http://localhost:8080/`
- **Operator runtime**: `http://localhost:8080/runtime`
- **MCP discovery**: `http://localhost:8080/api/mcp`

### 6.4 First sign-in

A new installation has exactly one account, `admin` (role `Administrator`). There are no sample users and no sample groups, and no published password.

At its first start the server gives `admin` a random password of 25 characters (lower-case letters and digits, in groups of five) and writes it to `data/security/initial_admin_password` under the work directory. The file is readable only by the account the server runs as: mode `0600` on Linux; on Windows, a protected ACL that grants the server's account, `SYSTEM` and `Administrators` and nothing else. The log says once where it is:

```text
WARN first start: the admin password is in data/security/initial_admin_password; you must change it at first sign-in
```

The password is never logged and never sent by any API.

1. Read the file on the server: `sudo cat /var/lib/eaxware/eaxscada/data/security/initial_admin_password` for the Linux service, `docker exec eaxscada cat /var/lib/eaxware/eaxscada/data/security/initial_admin_password` for the container above, or open `C:\eaxware\eaxScada\data\security\initial_admin_password` as an administrator on Windows.
2. Sign in as `admin` with that password. The sign-in page asks you for a new password before it opens a session.
3. Choose the new password, at least 12 characters. The server deletes `initial_admin_password` and logs that it did.

Until the password is changed, it opens no session, even after a restart and even if you delete the file by hand.

#### Automated installs: set the first password

For an unattended install (Docker secrets, configuration management), give the first password to the server instead:

| Variable | Effect |
|---|---|
| `EAX_ADMIN_PASSWORD_FILE` | Path of a file holding `admin`'s first password (one line). Preferred. |
| `EAX_ADMIN_PASSWORD` | `admin`'s first password itself. It can be read in the process environment (`docker inspect`, `/proc`), so prefer the file. The server removes it from its environment once read. |
| `EAX_ADMIN_PASSWORD_CHANGE_REQUIRED` | `true` by default. `false` lets `admin` keep a password given by one of the two variables above, without the change at first sign-in. It has no effect on a generated password. The server logs a warning when it is `false`. |

The password must be at least 12 characters. Setting both variables, or giving a shorter password, stops the server at start-up. No `initial_admin_password` file is written in this case.

These variables act only on a new installation, when the security store has no account. On an existing installation they are ignored (the log says so): no account is ever created, changed or deleted at start-up.

Keep `EAX_ADMIN_PASSWORD_CHANGE_REQUIRED` at `true` unless the password stays in a secret store that you rotate. Otherwise, whoever reads the password from the deployment files can sign in as `admin`.

On an HA pair, each node has its own users. Give every node the same `EAX_ADMIN_PASSWORD_FILE`, or sign in on each node with its own `initial_admin_password`. Create the same accounts on every node, and the same viewer identities for view-only stations, with the same usernames: the stations are replicated between the nodes, but each node binds a station to its own viewer identity of that name. Sign-in lockouts are shared by the nodes, matched by username: a lock set on one node holds on every node, and an unlock on one node clears it on all ([Lockout parameters](/docs/platform/explanation/security-and-part-11/#42-lockout-parameters)).

#### After the first sign-in

Create one account per person under **Security > Users**, with the role they need (`Shift_Operator`, `Process_Supervisor`, `Lead_Engineer`, `Compliance_Auditor`). A local account's password must be at least 12 characters, whenever it is set: created, changed or reset by an administrator, or chosen to replace a default or first password. Passwords set before this rule keep working until they are changed. The `AI_CoPilot` role is for the account of an external AI agent that connects to the MCP gateway. Create that account only if you connect one, and give it its own password.

#### Upgrading from an earlier version

Earlier versions created sample accounts with published passwords: `admin`, `engineer`, `supervisor`, `operator`, `auditor` and `ai_copilot`. An upgrade keeps every existing account as it is. If any of them still has its published password:

- the server logs a warning at every start that names them;
- **Security > Users** shows them in a red banner above the users table;
- outside developer mode, they cannot sign in until their password is changed.

Change their passwords, or disable or delete the accounts you do not use.

---

## 7. Next steps

- [Server flags and configuration](/docs/eaxscada/reference/server-configuration/): every `scada-server` flag, `config.yaml` and the network ports.
- [The Unified Namespace](/docs/platform/explanation/unified-namespace/): ISA-95 topic schemas and streaming buckets.
- [Screen designer](/docs/eaxscada/explanation/screen-designer/): design screens.
- [Historian](/docs/eaxscada/explanation/historian/): Hive CSV and the columnar historian engine.
- [Security and 21 CFR Part 11](/docs/platform/explanation/security-and-part-11/): electronic records and signatures.
