> For the complete documentation index, see [llms.txt](https://docs.minervachain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minervachain.org/run-a-node/operate.md). Agents can also search and read this documentation through its [MCP server](https://docs.minervachain.org/~gitbook/mcp).

# Operate and upgrade

## Daily checks

```sh
minerva-geth doctor --rpc http://127.0.0.1:8545 --network minerva-mainnet --genesis genesis.json
```

| Check            | Pass                                                        | Fail means                              |
| ---------------- | ----------------------------------------------------------- | --------------------------------------- |
| identity         | chain id and network id 77139                               | wrong genesis or flags                  |
| forks            | all four Minerva rules active                               | wrong binary                            |
| system contracts | code present at `0x…0201`–`0x…0205` and `0x…0301`–`0x…0303` | wrong genesis                           |
| genesis hash     | matches `0xc6c1ed20…7dd07`                                  | wrong file                              |
| head             | recent and not in the future                                | stalled sync, or your clock is ahead    |
| clock            | within a few seconds of NTP                                 | fix NTP before mining                   |
| peers            | at least one (warning if zero)                              | firewall on 30303, or NAT misconfigured |
| disk             | free space                                                  | expand the volume                       |

Expose the node's health to your monitoring through `net_peerCount`, `eth_syncing` and `eth_blockNumber` compared with the public RPC. The Docker image has a built-in health check that runs the doctor every 30 seconds.

## Logs worth knowing

| Log                                                                                | Meaning                                                      |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| `genesis hash … does not match the pinned …; refusing to start`                    | the genesis file is wrong; fetch it again and check the hash |
| `Looking for peers … peercount=0` for minutes                                      | inbound 30303 blocked, or `--nat` wrong                      |
| `Synchronisation failed, dropping peer`                                            | a peer on a different fork; harmless if your doctor passes   |
| `Block sealing failed` / `mined potential block` then no `reached canonical chain` | you are mining behind the head; wait for `syncing: false`    |
| `Future block`                                                                     | your clock is ahead of the network                           |

## Upgrading

1. Read the release note: source commit, Go version, checksums, genesis hashes, and whether a fork block is scheduled.
2. [Verify the release](https://docs.minervachain.org/run-a-node/verify-release.md), or rebuild the image from the tagged commit.
3. Stop the node, replace the binary or image, start it. The data directory is forward compatible within a major version; a release note says explicitly when a resync is required.
4. Run the doctor and compare a recent block hash with the public RPC.

Minerva has no on-chain upgrade mechanism: rule changes are fork blocks in the chain config shipped with a release, announced with the signed checksums well before the block. A node that is not upgraded by the fork block stops following the chain.

## Backups

A node holds nothing that cannot be resynced from peers. Back up the devp2p node key if you want to keep your enode stable (`MINERVA_NODEKEY_CONTAINER_FILE` in Docker, `--nodekey` on bare metal). Do not keep wallet seeds or Recovery Kits on a node or miner host; the etherbase is only an address.

## Archive nodes

Blockscout and some analytics need historical state. Run a second node with `MINERVA_GCMODE=archive` (Docker) or `--gcmode archive` (bare metal) and `--http.api eth,net,web3,minerva,txpool,debug`. The public hosts run exactly this pairing: a pruned public node and a local-only archive node peered with it.

## Getting help

Open an issue on [minerva-network](https://github.com/MinervaQuantum/minerva-network/issues) with the doctor output, the node's version line from `web3_clientVersion`, and the relevant log lines.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.minervachain.org/run-a-node/operate.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
