Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Maintenance and upgrades

Plan maintenance for a time when you can watch the node after restarting. Check that your backups are current and read any release instructions before upgrading.

Run commands from ~/nomad with the standard Compose setup.

Routine checks

Review monitoring daily: execution errors, ETH and token balances, outstanding fees, backups, and disk usage.

After OS or firmware maintenance, check AESM and time synchronization. Rotate service credentials when needed, and retain enough container and telemetry logs to investigate an incident.

Stop and restart cleanly

docker compose stop nomad
docker compose ps -a

Wait for exit and check the final logs. The Compose setup allows five minutes before Docker can force-kill the container. Extend stop_grace_period ahead of maintenance if your workload needs longer. Investigate forced termination or exit code 137 before taking a snapshot.

Only one enclave process can use the state at a time. A nomad.lock error means another run, deposit, or withdrawal process may still be active. Find and stop it cleanly; keep the data directory intact.

Restart with:

docker compose up -d nomad
docker compose logs --tail=100 nomad

Upgrade your node

Use ghcr.io/mirageprivacy/nomad:latest in compose.yaml. To update, run:

docker compose pull
docker compose up -d

Compose downloads the updated image and replaces the container while preserving the mounted data directory. If a release needs a configuration change or migration, follow its instructions before restarting; pulling an image does not rewrite your existing config.toml.

Check the node after the update:

docker compose ps
docker compose logs --tail=200 nomad
curl --fail --silent --show-error http://127.0.0.1:8000/
curl --fail --silent --show-error http://127.0.0.1:8000/attest
docker compose run --rm nomad backup list

Check the version and attestation, successful unsealing, peer connectivity, balances, telemetry, and new backup versions. Observe execution and collection before ending maintenance.

Enclave upgrades and rollback

Reverting the container image may not restore a working node. Newer enclave security versions and state formats can prevent an older release from opening the files.

If an upgrade fails, stop the restart loop with docker compose stop nomad, preserve current state and logs, and contact us with the version shown in the logs. Never delete eoa.bin or restore old state to force a downgrade. Transactions sent after a snapshot still exist onchain.

How the shared key changes during an upgrade

The host compares the enclave signature’s security version with the version in key.bin. On an increase, it removes the stale sealed global key and obtains a replacement through the configured key-sharing peers.

Keep approved peers in enclave.nodes. An empty list tells Nomad to generate its own key. The host rejects a security-version downgrade when it finds a newer sealed global key. Account state also depends on SGX and state-format compatibility.

Move or retire a host

Arrange a withdrawal and fresh deployment before replacing the original hardware. Copying the data directory to another SGX machine does not make funded accounts portable.

Keep the original host available until balances, settlement, fees, and backups are reconciled. We can help plan the move.