[go: up one dir, main page]

"Cannot switch from history mode Rolling mode + 3 extra cycles to Rolling mode + 5 extra cycles" but I did no such thing

  1. launch a granadanet node, v10.2, from a rolling snapshot.
  2. let it sync and run for a while (a few cycles)
  3. restart

Following error appears:

│ Sep 14 15:37:20.347 - node.main: read identity file (peer_id = idtioAHgBpnFnLExaf1QAeXQBeDXCN)                                                                                                                                                             │
│ Sep 14 15:37:20.347 - node.main: starting the Tezos node (chain = TEZOS_GRANADANET_2021-05-21T15:00:00Z)                                                                                                                                                   │
│ Sep 14 15:37:20.347 - node.main: disabled local peer discovery                                                                                                                                                                                             │
│ Sep 14 15:37:20.347 - node.main: disabled P2P server                                                                                                                                                                                                       │
│ Sep 14 15:37:20.389 - node: shell-node initialization: bootstrapping                                                                                                                                                                                       │
│ Sep 14 15:37:20.476 - node: shell-node initialization: p2p_maintain_started                                                                                                                                                                                │
│ Sep 14 15:37:20.476 - external_block_validator: initialized                                                                                                                                                                                                │
│ Sep 14 15:37:20.740 - external_block_validator: block validator process started with pid 30                                                                                                                                                                │
│ Sep 14 15:37:23.308 - node.main: The given history mode Rolling mode + 3 extra cycles does not correspond to                                                                                                                                               │
│ Sep 14 15:37:23.308 - node.main:   the stored history mode Rolling mode + 5 extra cycles. If you wish to force                                                                                                                                             │
│ Sep 14 15:37:23.308 - node.main:   the switch, use the flag '--force-history-mode-switch'.                                                                                                                                                                 │
│ tezos-node: Error:                                                                                                                                                                                                                                         │
│               Cannot switch from history mode Rolling mode + 3 extra cycles to Rolling mode + 5 extra cycles. In order to change your history mode please refer to the Tezos node documentation. If you really want to change your history mode, run this  │
│ command again with the `--force-history-mode-switch` option.                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                            │
│ stream closed                                                                                                                                                                                                                                              │

Note that I did never instruct the node to store extra cycles. It was simple "rolling" mode all along (which I assume is rolling mode + 0 extra cycles). The node seems to be confused as of which mode it is using.

I saw 2 people hitting this problem on the baking slack:

https://tezos-baking.slack.com/archives/CB8K1F7TR/p1629932836186900?thread_ts=1627521899.279100&cid=CB8K1F7TR

https://tezos-baking.slack.com/archives/CC4FD2HUY/p1630023660053500

@vect0r any idea?

My node config:

│ { "data-dir": "/var/run/tezos/node/data",                                                                                                                                                                                                                  │
│   "network": "granadanet",                                                                                                                                                                                                                                 │
│   "rpc": { "listen-addrs": [ ":8732", "0.0.0.0:8732" ],                                                                                                                                                                                                    │
│       "cors-origin":                                                                                                                                                                                                                                       │
│         [ "*" ],                                                                                                                                                                                                                                           │
│       "cors-headers": [ "content-type" ],                                                                                                                                                                                                                  │
│       "acl":                                                                                                                                                                                                                                               │
│         [ { "address": ":8732", "blacklist": [] } ]                                                                                                                                                                                                        │
│     },                                                                                                                                                                                                                                                     │
│   "p2p":                                                                                                                                                                                                                                                   │
│     { "limits":                                                                                                                                                                                                                                            │
│         { "connection-timeout": 10, "min-connections": 25,                                                                                                                                                                                                 │
│           "max-connections": 75, "max_known_points": [ 400, 300 ],                                                                                                                                                                                         │
│           "max_known_peer_ids": [ 400, 300 ] } },                                                                                                                                                                                                          │
│   "shell": { "chain_validator": { "bootstrap_threshold": 1 },                                                                                                                                                                                              │
│              "history_mode": "rolling" } }                                              
Edited by Nicolas Ochem