Upgrades, Backups, and Host Migration
Preserve identity and data continuity during upgrades, and stop the old instance before migration. Configuration, keys, database recovery, and FROST signing state have distinct requirements; do not resume signing from an old snapshot.
| Item | Value |
|---|---|
| Preserve | Version, public configuration, miner and reward addresses, key material, data volume, and startup arguments |
| For FROST | Keep the original wrap key, encrypted shares, and latest nonce state together |
| Runtime rule | Only one instance may sign for an identity; keep --resume=true on restart |
Backup inventory
| Material | Purpose and storage |
|---|---|
| Miner address, fixed reward address, version, and image ID | Check recovered identity and registration; record public metadata separately |
| config/runtime and startup arguments | Restore the same chain ID, genesis trust set, endpoint, and directories; record configuration version |
| Node private key and FROST wrap key | Store offline or in an independent trusted key service with restricted access; never upload in logs or support tickets |
| Encrypted miner keystore and passphrase | Back up the keystore offline and store the passphrase separately. Verify that the backup unlocks and derives the same miner address. |
| Complete persistent data volume | Take a consistent copy after writes stop, including local encrypted FROST shares and nonce state |
| Logs and maintenance records | Establish incident timing; remove sensitive data before sharing |
Built-in updates for native Linux nodes
- Run ./dex --help to check for --auto-update. On supported builds, checks run in the background every ten minutes by default. A candidate must come from an official immutable GitHub Release and match the chain, platform, protocol, and database requirements. Verification requires a GitHub CLI with gh release verify-asset. The current version stays running if no compatible release can be verified.
- A node exits on its own for an update only when it verifies that its systemd service restarts after exit code 75 and the node does not use --keystore. A manually started node or a node using a keystore continues running until a clean shutdown. The update takes effect on the next startup, when manual unlock still requires the operator to enter the passphrase in a terminal.
- The new version is confirmed only after listener, chain progress, and persisted state checks pass. If the candidate fails, the next launch through the original entry point returns to the previously confirmed version. --auto-update=false disables new checks while keeping the confirmed cached version available. Follow the mainnet announcement for coordinated protocol upgrades.
Planned upgrade for digest-pinned Docker nodes
- Read the mainnet upgrade instructions and check chain parameters, database compatibility, and migration requirements. Record the current image ID, configuration version, finalized height, and matching block ID.
- Pull the new digest-pinned image from the official release and review its upgrade notes while the current node keeps running. Do not replace the published digest with a locally built candidate tag.
- Stop this node and confirm the process exits before saving a consistent data copy and configuration. Do not stop all miners together.
- After the old container is stopped and backed up,
sudo docker rm frostbit-nodemay release its name, but never add -v. frostbit-node up intentionally rejects an image different from the original deployment and is not an upgrade command. Follow the target release migration procedure, preserving the identity, secrets, named volume, and --resume=true; never delete intent state to bypass the guard. - Verify logs, endpoint reachability, synchronized height, same-height block IDs, miner status, and FROST workers before upgrading another node.
- After a failed upgrade, stop the new instance and preserve errors. Revert the executable only if it supports the current data format; do not overwrite data with the pre-upgrade database.
sudo docker inspect --format '{{.Image}}' frostbit-node
sudo docker inspect --format '{{json .Mounts}}' frostbit-node
sudo docker logs --tail 100 frostbit-nodeHost migration and recovery
- Check the new host against SSD ≥ 1.5 TB and the other requirements, then prepare the same version, configuration, and key access method.
- Stop the old instance and disable its startup path to prevent automatic restart. Copy the latest complete, consistent volume from that stopped instance before starting the replacement.
- The private key must derive the same address used by --expected-address, the data directory, and registration. Do not randomly regenerate an existing FROST wrap key.
- Restore the miner keystore and unlock it with the same passphrase. For FROST, use the original wrap key and a consistent data backup containing the latest shares and nonce state. See Miner Key Encryption and Manual Unlock.
- Keep the registered public endpoint reachable where possible. If it changes, verify the current chain-supported update process first; changing advertise-addr alone does not change registration.
- Repeat the synchronization acceptance checks. Do not register or stake again, and never restart the old host as a second signer for the same identity.
Never roll back FROST nonces
Nonce usage records are local signing safety state. Resuming from an older disk or cloud snapshot can reuse a nonce. Even a verified chain checkpoint cannot replace missing local shares or nonce records. If you cannot prove the copy is the latest consistent state after signing stopped, keep signing disabled and follow the DKG / key-transition maintenance process. Repeatedly restoring old snapshots is not a recovery method. Neither keys alone nor a database alone constitutes a complete FROST backup.
Low disk space
Identify the data mount and database versus log usage, then expand the SSD or use supported history-retention settings. Do not delete StateDB, FROST data, nonce records, or live WAL / SST files; do not run Docker volume prune against node volumes. After expansion, check filesystem capacity, writes, and advancing finalized height.