Run the validator
Start the signer#
On the main host:
sudo systemctl enable --now sn46-signer
journalctl -u sn46-signer -f
systemctl status sn46-signerAt start, the signer reads its files, logs whether it reaches the ledger, connects to the node and checks your hotkey on netuid 46. Then it ticks every two seconds: at each epoch boundary it closes the epoch, runs the auditor and submits the row.
Logs#
| Line | Meaning |
|---|---|
chain checks mode ... mode=strict | connecting to the node |
epoch closed, weights set | the normal epoch |
burn row restored, dead man row | the burn row went out (a failure, or the watchdog) |
chain unavailable detail=... | a tick failed; the detail names what failed (the node, the ledger, the auditor). It retries by itself |
sn46-signer: ledger_url: ... | the ledger can't be reached at start; the signer keeps running and retries |
Healthy means systemctl is-active sn46-signer answers active, and the journal shows weights set once per epoch.
Exit code 78: a config error#
The unit restarts the signer after a crash or an unreachable node. It does not restart it when the exit status is 78: that means something only you can fix, and the last journal line says what. Fix it, then run sudo systemctl restart sn46-signer. The usual ones:
cannot read the deployment file,key_file ...,hotkey_uri_file ...: a missing file, or wrong permissions (the files must be readable bysn46);hotkey_uri_file holds the hotkey X, but validator_hotkey is Y: the two don't match;is not registered on netuid 46,has no validator permit: register or stake, then restart;runtime is spec N ...: the chain upgraded; update the validator.
The watchdog, on a second host#
The chain keeps paying the last row a validator set until a new one replaces it, so a dead signer would leave its last real row paying. The watchdog guards against that. On a second machine, it watches the chain, and when your signer has written nothing by near the end of an epoch, it writes the burn row with your hotkey. It can only ever write the burn row, and it needs no ledger access.
On the second machine:
- Install with
--system. - Copy
hotkey.uri(ownersn46, mode0600), andsigner.tomlsaved as/etc/sn46/watchdog.toml(root:sn46, mode0640). The ledger, auditor and key fields are read but not used; the hotkey must be the same. - Start it and watch it:
sudo systemctl enable --now sn46-watchdog
journalctl -u sn46-watchdog -fA heartbeat line every few seconds says how many blocks ago it last saw your signer write.
Never run a second signer with the same hotkey: one signer per hotkey, plus its watchdog.