【问题】我在node同步中 relaychain的同步忽然報錯 Error importing block / block has an unknown parent / Unable to pin block for import notification / Verification failed for block
【操作复盘】
使用 Solo worker deployment 的步驟進行安裝
version: “3”
services:
node:
image: phalanetwork/phala-node-with-launcher:latest
container_name: node
hostname: node
restart: always
ports:
- “9933:9933”
- “9934:9934”
- “9944:9944”
- “9945:9945”
- “30333:30333”
- “30334:30334”
environment:
- NODE_NAME=PNODE
- NODE_ROLE=MINER
- RELAYCHAIN_DB=rocksdb
- PARACHAIN_DB=rocksdb
- PARACHAIN_EXTRA_ARGS=–max-runtime-instances 32 --runtime-cache-size 8
- RELAYCHAIN_EXTRA_ARGS=–max-runtime-instances 32 --runtime-cache-size 8
volumes:
- /var/phala/node-data:/root/data
phala-pherry:
image: phalanetwork/phala-pherry:latest
container_name: phala-pherry
hostname: phala-pherry
restart: always
entrypoint:
[
“/root/pherry”,
“-r”,
“–parachain”,
“–mnemonic={gas fee memory seed}”,
“–substrate-ws-endpoint=ws://{node ip}:9945”,
“–collator-ws-endpoint=ws://{node ip}:9944”,
“–pruntime-endpoint=http://{pruntime ip}:8000”,
“–operator={owner address}”,
“–fetch-blocks=512”,
“–auto-restart”
]
phala-pruntime:
image: phalanetwork/phala-pruntime-v2-with-handover:latest
container_name: phala-pruntime
hostname: phala-pruntime
ports:
- “8000:8000”
devices:
- /dev/sgx_enclave:/dev/sgx_enclave
- /dev/sgx_provision:/dev/sgx_provision
environment:
- EXTRA_OPTS=–cores={core_num} --checkpoint-interval=3600
- ROCKET_ADDRESS=0.0.0.0
volumes:
- /var/phala/pruntimev2:/opt/pruntime/data
- /var/phala/pruntimev2/backups:/opt/pruntime/backups
【报错信息】
同步到一半卡住 一直停在 best: #15786395 (0x2cbe…e5c9), finalized #15786393 (0x44e9…fb20)
2023-06-02 03:54:11 [Relaychain] Idle (40 peers), best: #15786390 (0xf667…9cca), finalized #15786387 (0x9246…1c21), 209.8kiB/s 92.5kiB/s
2023-06-02 03:54:12 [Parachain] Idle (8 peers), best: #2669203 (0xae06…a980), finalized #2669202 (0x0eaa…a6eb), 1.1kiB/s 0.6kiB/s
2023-06-02 03:54:13 [Relaychain] Imported #15786391 (0xd67e…2030)
2023-06-02 03:54:14 [Parachain] Imported #2669205 (0xc0df…022c)
2023-06-02 03:54:16 [Relaychain] Idle (40 peers), best: #15786391 (0xd67e…2030), finalized #15786389 (0x15e5…1607), 255.3kiB/s 272.1kiB/s
2023-06-02 03:54:17 [Parachain] Idle (8 peers), best: #2669204 (0x0589…4b5b), finalized #2669203 (0xae06…a980), 38.4kiB/s 15.1kiB/s
2023-06-02 03:54:19 [Relaychain] Imported #15786392 (0xf780…9011)
2023-06-02 03:54:21 [Relaychain] Idle (40 peers), best: #15786392 (0xf780…9011), finalized #15786389 (0x15e5…1607), 151.8kiB/s 185.6kiB/s
2023-06-02 03:54:22 [Parachain] Idle (8 peers), best: #2669204 (0x0589…4b5b), finalized #2669203 (0xae06…a980), 1.4kiB/s 0.6kiB/s
2023-06-02 03:54:25 [Relaychain] Imported #15786393 (0x44e9…fb20)
2023-06-02 03:54:26 [Parachain] Imported #2669206 (0xd6dd…5f4f)
2023-06-02 03:54:26 [Relaychain] Idle (40 peers), best: #15786393 (0x44e9…fb20), finalized #15786389 (0x15e5…1607), 119.9kiB/s 72.8kiB/s
2023-06-02 03:54:27 [Parachain] Idle (8 peers), best: #2669205 (0xc0df…022c), finalized #2669203 (0xae06…a980), 27.2kiB/s 3.3kiB/s
2023-06-02 03:54:31 [Relaychain] Imported #15786394 (0xdc04…6ed6)
2023-06-02 03:54:31 [Relaychain] Idle (40 peers), best: #15786394 (0xdc04…6ed6), finalized #15786391 (0xd67e…2030), 112.3kiB/s 76.4kiB/s
2023-06-02 03:54:32 [Parachain] Idle (8 peers), best: #2669205 (0xc0df…022c), finalized #2669204 (0x0589…4b5b), 6.4kiB/s 1.2kiB/s
2023-06-02 03:54:32 [Relaychain] Imported #15786394 (0x1828…a617)
2023-06-02 03:54:36 [Relaychain] Idle (40 peers), best: #15786394 (0xdc04…6ed6), finalized #15786391 (0xd67e…2030), 188.3kiB/s 129.7kiB/s
2023-06-02 03:54:37 [Parachain] Idle (8 peers), best: #2669205 (0xc0df…022c), finalized #2669204 (0x0589…4b5b), 5.6kiB/s 5.7kiB/s
2023-06-02 03:54:41 [Relaychain] Idle (40 peers), best: #15786394 (0xdc04…6ed6), finalized #15786391 (0xd67e…2030), 20.7kiB/s 12.7kiB/s
2023-06-02 03:54:42 [Relaychain] Imported #15786395 (0x6d87…386a)
2023-06-02 03:54:42 [Parachain] Idle (8 peers), best: #2669206 (0xd6dd…5f4f), finalized #2669204 (0x0589…4b5b), 7.5kiB/s 5.6kiB/s
2023-06-02 03:54:43 [Parachain] Imported #2669207 (0xc405…f3db)
2023-06-02 03:54:43 [Relaychain] Reorg on #15786395,0x6d87…386a to #15786395,0x2cbe…e5c9, common ancestor #15786394,0xdc04…6ed6
2023-06-02 03:54:43 [Relaychain] Imported #15786395 (0x2cbe…e5c9)
2023-06-02 03:54:43 [Parachain] Imported #2669207 (0x53d1…1978)
2023-06-02 03:54:44 [Relaychain] Error importing block 0x80ecc5a2405cb36454c5d5d3fa8e79e2d5a7745292fc931b4be810a3cf6ba44e: block has an unknown parent
2023-06-02 03:54:45 [Relaychain] Unable to pin block for import notification. hash: 0x31d0…1077, Error: UnknownBlock: State already discarded for 0x31d039c3f8f3ac31d406844a34a93a262f4b03c7232f8b1f990a6259ed3b1077
2023-06-02 03:54:45 [Relaychain] Imported #15786395 (0x31d0…1077)
2023-06-02 03:54:45 [Parachain] Failed to fetch pending candidates. error=ApiError(UnknownBlock(“State already discarded for 0x31d039c3f8f3ac31d406844a34a93a262f4b03c7232f8b1f990a6259ed3b1077”))
2023-06-02 03:54:45 [Parachain] Failed to fetch session index. error=ApiError(UnknownBlock(“State already discarded for 0x31d039c3f8f3ac31d406844a34a93a262f4b03c7232f8b1f990a6259ed3b1077”))
2023-06-02 03:54:46 [Relaychain] Verification failed for block 0x80ecc5a2405cb36454c5d5d3fa8e79e2d5a7745292fc931b4be810a3cf6ba44e received from peer: 12D3KooWC7wFE8KV1z8YW2QU2uvP2tSyMPd8e9hoNtnG4EdFmobE, “Api called for an unknown Block: State already discarded for 0x31d039c3f8f3ac31d406844a34a93a262f4b03c7232f8b1f990a6259ed3b1077”
2023-06-02 03:54:46 [Relaychain] Idle (39 peers), best: #15786395 (0x2cbe…e5c9), finalized #15786393 (0x44e9…fb20), 195.4kiB/s 132.4kiB/s
2023-06-02 03:54:47 [Parachain] Idle (8 peers), best: #2669206 (0xd6dd…5f4f), finalized #2669205 (0xc0df…022c), 39.5kiB/s 5.3kiB/s
2023-06-02 03:54:51 [Relaychain] Idle (40 peers), best: #15786395 (0x2cbe…e5c9), finalized #15786393 (0x44e9…fb20), 565.6kiB/s 70.3kiB/s
2023-06-02 03:54:52 [Parachain] Idle (8 peers), best: #2669206 (0xd6dd…5f4f), finalized #2669205 (0xc0df…022c), 9.6kiB/s 3.4kiB/s
2023-06-02 03:54:56 [Relaychain] Idle (40 peers), best: #15786395 (0x2cbe…e5c9), finalized #15786393 (0x44e9…fb20), 3.9MiB/s 36.2kiB/s
2023-06-02 03:54:57 [Parachain] Idle (8 peers), best: #2669206 (0xd6dd…5f4f), finalized #2669205 (0xc0df…022c), 7.6kiB/s 2.1kiB/s
2023-06-02 03:54:58 [Relaychain] Verification failed for block 0x80ecc5a2405cb36454c5d5d3fa8e79e2d5a7745292fc931b4be810a3cf6ba44e received from peer: 12D3KooWEanonVxmgrEeuFjZ6k1GvAsES4kZH7v7t7R3RTdsdprf, “Api called for an unknown Block: State already discarded for 0x31d039c3f8f3ac31d406844a34a93a262f4b03c7232f8b1f990a6259ed3b1077”
2023-06-02 03:54:59 [Relaychain] Verification failed for block 0x80ecc5a2405cb36454c5d5d3fa8e79e2d5a7745292fc931b4be810a3cf6ba44e received from peer: 12D3KooWK4ZpaJkxwzqmKyNZumcbqaze6feMj67MmXxk3cQE5SeZ, “Api called for an unknown Block: State already discarded for 0x31d039c3f8f3ac31d406844a34a93a262f4b03c7232f8b1f990a6259ed3b1077”
請先進們提供協助 感謝!