midl-dev / tezos-on-gke

A secure, turn-key public Tezos baking service on Kubernetes
Apache License 2.0
32 stars 15 forks source link

Public nodes crash when restarted #27

Closed marianogadea closed 4 years ago

marianogadea commented 4 years ago

When public nodes pods are restarted (i.e. scale to 0) then the following error happens: Aug 30 00:40:52 - node.main: (chain = TEZOS_ALPHANET_CARTHAGE_2019-11-28T13:02:13Z) Aug 30 00:40:52 - node.main: disabled local peer discovery Aug 30 00:40:52 - node.main: read identity file (peer_id = idrWXra7g5mHLrZk9Jn1JFfHnkc4ff) Aug 30 00:40:52 - main: shell-node initialization: bootstrapping Aug 30 00:40:52 - main: shell-node initialization: p2p_maintain_started Aug 30 00:40:52 - block_validator_process_external: Initialized Aug 30 00:40:52 - block_validator_process_external: Block validator started on pid 29 tezos-node: Error: Cannot switch from history mode 'full' to 'rolling'. In order to change your history mode please refer to the Tezos node documentation.

marianogadea commented 4 years ago

Solved by passing the right snapshot file parameter.