Phala-Network / phala-blockchain

The Phala Network Blockchain, pRuntime and the bridge.
https://phala.network
Apache License 2.0
332 stars 149 forks source link

Thread 'main' panicked at 'No authority key found' #1573

Closed mariopino closed 2 months ago

mariopino commented 2 months ago

Hi,

I'm getting this error in all workers of my phala pool from 3 days ago:

[2024-04-24T07:49:51.617817Z INFO  pherry] get_block: Got block Some(20442111) hash 0x8f7c…b0d4
[2024-04-24T07:49:51.951731Z INFO  pherry] get_block: Got block Some(20442112) hash 0x24a0…b3ec
thread 'main' panicked at 'No authority key found', /root/phala-blockchain/standalone/pherry/src/lib.rs:388:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The error is causing pherry to restart and loop over again trying to get the same block range.

Even though Node is working correctly:

2024-04-24 07:46:23 [Relaychain] 💤 Idle (9 peers), best: #20480048 (0x8e4f…5c80), finalized #20480045 (0x1a5f…473c), ⬇ 39.4kiB/s ⬆ 71.1kiB/s
2024-04-24 07:46:23 [Parachain] 💤 Idle (8 peers), best: #5000346 (0x26d5…4cf3), finalized #5000345 (0xf996…7e05), ⬇ 6.6kiB/s ⬆ 6.2kiB/s
2024-04-24 07:46:24 [Relaychain] ✨ Imported #20480049 (0xa6f6…aae2)
2024-04-24 07:46:24 [Parachain] ✨ Imported #5000348 (0x2a66…027f)
2024-04-24 07:46:28 [Relaychain] 💤 Idle (8 peers), best: #20480049 (0xa6f6…aae2), finalized #20480047 (0x8beb…49d2), ⬇ 130.4kiB/s ⬆ 205.7kiB/s
2024-04-24 07:46:28 [Parachain] 💤 Idle (8 peers), best: #5000347 (0xa40e…438a), finalized #5000346 (0x26d5…4cf3), ⬇ 19.1kiB/s ⬆ 14.2kiB/s
2024-04-24 07:46:30 [Relaychain] ✨ Imported #20480050 (0x0ef2…c141)
2024-04-24 07:46:33 [Relaychain] 💤 Idle (8 peers), best: #20480050 (0x0ef2…c141), finalized #20480047 (0x8beb…49d2), ⬇ 82.8kiB/s ⬆ 104.3kiB/s
2024-04-24 07:46:33 [Parachain] 💤 Idle (8 peers), best: #5000347 (0xa40e…438a), finalized #5000346 (0x26d5…4cf3), ⬇ 6.8kiB/s ⬆ 7.0kiB/s

Nodes and workers are using latest docker images, any hint about this error?

mariopino commented 2 months ago

Solved by updating docker images to latest versions:

cd phala-deployment
docker stop phala-pherry phala-pruntime
docker rm phala-pherry phala-pruntime
docker rmi phalanetwork/phala-pruntime-v2-with-handover phalanetwork/phala-pherry
docker-compose up -d