Graceful restarts?

Hi guys,

Could someone advise on what the process should be for a graceful restart please? Is it okay to just reboot via the Dappnode console or should we pause the Validator and Beacon Chain packages first, etc?

kind regards,
AJ

I’ve been testing different ways to re-start my host PC and so far I haven’t found a way that doesn’t require the Beacon Chain to be deleted and re-synched from scratch. This is obviously a major issue if for whatever reason you need to restart the host or there’s a power outage.

I have tried pausing/exiting the Medalla Validator, Beacon Chain, Goeth chain, Geth chain and then restarting. After a restart all packages auto-start which is fine. Geth & Goeth chains re-sync OK.

The Medalla Beacon Chain logs show the following once I restart the package…

time=“2020-11-23 10:53:38” level=info msg=“Logs will be made persistent” logFileName="/data/beacon-chain.log"
time=“2020-11-23 10:53:38” level=info msg=“File logging initialized”
time=“2020-11-23 10:53:38” level=warning msg=“Running on Medalla Testnet” prefix=flags
time=“2020-11-23 10:53:38” level=info msg=“Using “max_cover” strategy on attestation aggregation” prefix=flags
time=“2020-11-23 10:53:38” level=info msg=“Checking DB” database-path="/data/beaconchaindata" prefix=node
time=“2020-11-23 10:53:45” level=info msg=“Deposit contract: 0x07b39f4fde4a38bace212b546dac87c58dfe3fdc” prefix=node
time=“2020-11-23 10:53:45” level=info msg=“Waiting for state to be initialized” prefix=initial-sync
time=“2020-11-23 10:53:45” level=info msg=“Starting beacon node” prefix=node version=“Prysm/v1.0.0-beta.2/########HASHED OUT BY ME#############. Built at: 2020-11-09 17:40:07+00:00”
time=“2020-11-23 10:53:45” level=info msg=“gRPC server listening on port” address=“0.0.0.0:4000” prefix=rpc
time=“2020-11-23 10:53:45” level=warning msg=“You are using an insecure gRPC server. If you are running your beacon node and validator on the same machines, you can ignore this message. If you want to know how to enable secure connections, see: https://docs.prylabs.network/docs/prysm-usage/secure-grpc” prefix=rpc
time=“2020-11-23 10:53:45” level=info msg=“Starting JSON-HTTP API” address=“0.0.0.0:3500” prefix=gateway
time=“2020-11-23 10:53:45” level=info msg=“Connected to eth1 proof-of-work chain” endpoint=“http://goerli-geth.dappnode:8545” prefix=powchain
time=“2020-11-23 10:53:50” level=info msg=“Blockchain data already exists in DB, initializing…” prefix=blockchain
time=“2020-11-23 10:53:54” level=info msg=“Cleaning up dirty states” count=1
time=“2020-11-23 10:53:54” level=info msg=“Chain genesis time reached” genesisTime=“2020-08-04 13:00:08 +0000 UTC” genesisValidators=20084 prefix=slotutil
time=“2020-11-23 10:53:55” level=info msg=“Loading blocks to fork choice store, this may take a while.” endSlot=758847 prefix=blockchain startSlot=758848
time=“2020-11-23 10:53:55” level=info msg=“Starting initial chain sync…” prefix=initial-sync
time=“2020-11-23 10:53:55” level=info msg=“Waiting for enough suitable peers before syncing” prefix=initial-sync required=3 suitable=0
time=“2020-11-23 10:53:55” level=info msg=“Started discovery v5” ENR=“enr:-##########HASHED OUT BY ME##############” prefix=p2p
time=“2020-11-23 10:53:55” level=info msg=“Node started p2p server” multiAddr="/ip4/172.33.0.2/tcp/13000/p2p/16Uiu2HAmCidYziKBoqzxaCqVsHE39s4dieTSaxTSN7t5QxvV9MbU" prefix=p2p
time=“2020-11-23 10:54:00” level=info msg=“Waiting for enough suitable peers before syncing” prefix=initial-sync required=3 suitable=0
time=“2020-11-23 10:54:02” level=info msg=“Peer connected” activePeers=2 direction=Outbound multiAddr="/ip4/3.132.193.49/tcp/9000/p2p/16Uiu2HAmDozn3ksBmKS83i9KD6QETymzPCTw9ZxszGYvmKxfDmDK" prefix=p2p
time=“2020-11-23 10:54:02” level=info msg=“Peer connected” activePeers=2 direction=Outbound multiAddr="/ip4/62.171.179.98/tcp/9000/p2p/16Uiu2HAmQ9UeqhGfVhQT1irVaxDLYhCXcw3wScacjSt9zheq2Bio" prefix=p2p
time=“2020-11-23 10:54:05” level=info msg=“Peer connected” activePeers=6 direction=Outbound multiAddr="/ip4/173.212.223.172/tcp/9000/p2p/16Uiu2HAkzVmxNZvmhkQRWjRiarBnzeV1uDbW9eSgHWbNSH1dL88n" prefix=p2p

and once enough peers have connected this just repeats in the log

e=“2020-11-23 11:17:49” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:49” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:49” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:52” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:52” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:52” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:52” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:53” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:54” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync
time=“2020-11-23 11:17:54” level=warning msg=“Range is not processed” err=“Range had no valid blocks to process” prefix=initial-sync

Any thoughts?

Hey @AJR

Medalla is kinda deprecated and Pyrmont testnet is the new place for testing.

If you update all DAppNode Packages to the last current version DAppNode should start all the packages for you in case of a power loss as stated in the below How-To

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.