Phala-Network / phala-blockchain

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

Khala Node get stuck at a block height and Pherry fails to connect to node #1070

Closed jimiflowers closed 1 year ago

jimiflowers commented 1 year ago

I have two nodes, both with same hardware (Intel NUC7PJYH2) and both of them suffer the same behaviour.

Both nodes get stuck at a block height (Khala network, KSM syncs well) and Pherry restarts because it fails to connect to node. It's very random, cos sometimes I restart the processes and all works fine during several hours (12h o 14h) but sometimes I need to restart processes 2, 3 or 4 times until I get all working fine. I have tried reinstalling both nodes from scratch, using databases synced from zero, with and without KSM snapshot and even copying databases from other nodes that are running fine.

NODE1: It has been running smoothly for months, but after a coolingdown period, begins to show the issue. NODE2: It hasn't been running ever, it's a brand new machine installed for the first time.

I have attached a file with logs (from processes start until the fail) and system info from both nodes. Please, don't hesitate to ask for any further info you need.

nodes_info_and_logs.tar.gz

jimiflowers commented 1 year ago

UPDATE

New behaviour: NODE1's Phala processes stop all operations and get freezed all at the same time. No visible errors on Node, PRuntime or Headers Cache, only Pherry says "exited with error: Rpc error: Request timeout" and "Restarting..." but does not restart, all containers keep freezed and also prometheus services (9615 and 9616) stop responding.. Attached logs from all containers for this session (I have had to supress some intermediate lines from PRuntime log to fit the github files max size of 25MB).

Docker status for all containers once they get freezed:

root@khalanuc ~ # docker inspect -f '{{json .State}}' "phala-node"
{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":47521,"ExitCode":0,"Error":"","StartedAt":"2022-12-12T10:31:20.754943891Z","FinishedAt":"0001-01-01T00:00:00Z"}

root@khalanuc ~ # docker inspect -f '{{json .State}}' "phala-pherry"
{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":48161,"ExitCode":0,"Error":"","StartedAt":"2022-12-12T10:32:08.527511555Z","FinishedAt":"2022-12-12T10:32:07.550963243Z"}

root@khalanuc ~ # docker inspect -f '{{json .State}}' "phala-pruntime"
{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":47353,"ExitCode":0,"Error":"","StartedAt":"2022-12-12T10:31:20.481902779Z","FinishedAt":"0001-01-01T00:00:00Z"}

root@khalanuc ~ # docker inspect -f '{{json .State}}' "phala-headers-cache"
{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":47295,"ExitCode":0,"Error":"","StartedAt":"2022-12-12T10:31:20.613639649Z","FinishedAt":"0001-01-01T00:00:00Z"}
root@khalanuc ~ # docker ps -a
CONTAINER ID   IMAGE                              COMMAND                  CREATED        STATUS        PORTS                                                                                                                                                                                                                                                                                 NAMES
a653725461b2   phalanetwork/phala-pherry          "/root/pherry -r --p…"   10 hours ago   Up 10 hours                                                                                                                                                                                                                                                                                         phala-pherry
f9458ca4cb5f   phalanetwork/khala-node            "/usr/bin/tini -- /b…"   10 hours ago   Up 10 hours   0.0.0.0:9615-9616->9615-9616/tcp, :::9615-9616->9615-9616/tcp, 0.0.0.0:9933-9934->9933-9934/tcp, :::9933-9934->9933-9934/tcp, 0.0.0.0:9944-9945->9944-9945/tcp, :::9944-9945->9944-9945/tcp, 0.0.0.0:31333-31334->31333-31334/tcp, :::31333-31334->31333-31334/tcp, 30333-30334/tcp   phala-node
14256f1c8452   phalanetwork/phala-pruntime        "/usr/bin/tini -- /b…"   10 hours ago   Up 10 hours   0.0.0.0:8000->8000/tcp, :::8000->8000/tcp                                                                                                                                                                                                                                             phala-pruntime
3ac76203cc73   phalanetwork/phala-headers-cache   "/opt/headers-cache/…"   10 hours ago   Up 10 hours   0.0.0.0:8002->8002/tcp, :::8002->8002/tcp                                                                                                                                                                                                                                             phala-headers-cache
root@khalanuc ~ #

After restart all processes I have seen this error repeated 64 times in Node logs and these "warnings", KSM chain works normally but the Node cannot import Khala blocks, and Pherry gives Network connection errors again:

phala-node             | 2022-12-12 20:24:41 [Parachain] panicked at 'Bad input data provided to validate_transaction: Codec error', /home/h4x/workspace/khala-parachain/runtime/khala/src/lib.rs:1594:1
phala-node             | 2022-12-12 20:43:52 ⚠️ System declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaStakePool declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaMining declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaRegistry declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`

And Pherry reports:

phala-pherry           | [2022-12-12T20:54:28.659660Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-12T20:54:28.734444Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-12T20:54:28.738270Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-12T20:54:28.772612Z INFO  pherry] Connected to parachain node at: ws://phala-node:9944
phala-pherry           | [2022-12-12T20:54:28.788324Z INFO  pherry] bridge() exited with error: error sending request for url (http://phala-pruntime:8000/prpc/PhactoryAPI.GetInfo): error trying to connect: tcp connect error: Connection refused (os error 111)
phala-pherry           | [2022-12-12T20:54:30.790581Z INFO  pherry] Restarting...

I needed to restart few times (5 times) to get Node working right again, importing KSM blocks and Khala blocks. All is working fine for 3 or 4 minutes, and then all containers get freezed again. No matter how many times I restart the processes, there is no way for the node to import blocks from the khala network continuously.

node1_logs.tar.gz

jasl commented 1 year ago

Sorry for late response, do you using puruned node?

jimiflowers commented 1 year ago

Sorry for late response, do you using puruned node?

Hi. Yes, I'm using PRUNE mode in all my nodes.

jasl commented 1 year ago

Sorry for late response, do you using puruned node?

Hi. Yes, I'm using PRUNE mode in all my nodes.

Unfortunately, Substrate limition, when you're using PRUNE mode with rocksdb, the un-pruned blocks will keep in memory, I do a rough test that you may have to have 32G memory to avoid OOM.

So you have to have 32G memory or switch to paritydb, I'm not sure our solo-script support paritydb right now

jimiflowers commented 1 year ago

Excuse me but, how is this possible? I have had this miner running around 6 month without any issue, I have other Intel NUC (same model) with 8GB RAM (+8GB swap), one Dell Optiplex with 16GB RAM (+8GB swap) and a custom miner with 12GB RAM (+8GB swap) all of them running smoothly with solo mining and Prune mode, and now this needs 32GB RAM? I met a lot of people with this Intel NUC model running solo mining with 8GB RAM. Sorry, maybe I missunderstood your answer.

jasl commented 1 year ago

Sorry I may not explain that well, here's upstream issue

https://github.com/paritytech/substrate/issues/11911 and the PR https://github.com/paritytech/substrate/pull/11980

jimiflowers commented 1 year ago

OK. If I understand well, this is the cause of the "freezing", right? Because even starting from scratch, without databases, the khala network blocks are not incremented, the finished blocks are always at zero, while the KSM database synchronizes correctly, and I don't understand why this happens. Honestly, I want to know the root cause of the node problems to sync blocks (to fix it and get the node running) which is the main issue. That is the reason why I mentioned in the opening of the issue that I have tried everything, from scratch, with snapshot, copying the databases of a node that works... but the finalized blocks of the khala network do not ever increase and pherry finally gives connection error to node.

I have been for almost a year with 5 mining-only nodes in my network, with no problems (beyond one that corrupted the KSM DB and I ended up removing it) and I have never had this problem where one of the nodes is not able to finish Khala blocks. I've checked everything I can (network elements, SSD disk, BIOS and OS configuration) and I can't find the reason for this to happen on a node that has already been running correctly for months in prune mode until 3 weeks ago.

If I reconfigure the node to run in full mode, should it work correctly?

jasl commented 1 year ago

his is the cause of the "freezing", rig

This will cause unexpect memory usage, when exhaust total memory, it will OOM and killed by the OS.

The memory usage depends on how many blocks to keep, for solo-script, we keep --pruning 108000, if you set it lower, it probably consume less, if you don't setl, default is 256

jimiflowers commented 1 year ago

Hi jasl. I have tried with --pruning 1000, but it does not solve the issue (node is still stuck at a block height in khala, it does not finalize khala blocks and Pherry continues restarting cos cannot connect to node).

jimiflowers commented 1 year ago

I have tried from scratch with with FULL mode, and the same issue remains, after 30 minutes syncing, finalized blocks on khala network #0, but KSM finalize blocks fine.

jasl commented 1 year ago

I have tried from scratch with with FULL mode, and the same issue remains, after 30 minutes syncing, finalized blocks on khala network #0, but KSM finalize blocks fine.

https://ksm.polkashots.io/ you can use this snapshot for fast restore Kusama part Khala keeping 0 finialize is normal, because the its finalizing requires Kusama sync to block which including proof of the Khala block, so it should starting finalizing when your Kusama sync more

jimiflowers commented 1 year ago

Ok. I started from scratch again: check BIOS settings again, new SO install (Ubuntu 20.04 with 5.4.0-135-generic), installing phala solo mining tools, and copying databases from a running node. All things looks right at first start, both chains syncing and pherry importing blocks. But after 30 minutes running (more or less) khala chain stops sync, and only KSM chain continues syncing, khala stops sync blocks and Pherry starts to give connection errors:

phala-node             | 2022-12-14 11:43:00 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 225.8kiB/s ⬆ 41.5kiB/s
phala-node             | 2022-12-14 11:43:01 [Relaychain] 💤 Idle (34 peers), best: #15743954 (0xe504…a097), finalized #15743950 (0xb756…1f66), ⬇ 134.2kiB/s ⬆ 211.6kiB/s
phala-node             | 2022-12-14 11:43:05 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 80.8kiB/s ⬆ 109.0kiB/s
phala-node             | 2022-12-14 11:43:06 [Relaychain] 💤 Idle (40 peers), best: #15743954 (0xe504…a097), finalized #15743951 (0x65d5…a890), ⬇ 144.7kiB/s ⬆ 158.0kiB/s
phala-node             | 2022-12-14 11:43:06 [Relaychain] ✨ Imported #15743955 (0xa419…c39e)
phala-node             | 2022-12-14 11:43:10 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 108.6kiB/s ⬆ 20.9kiB/s
phala-node             | 2022-12-14 11:43:11 [Relaychain] 💤 Idle (36 peers), best: #15743955 (0xa419…c39e), finalized #15743951 (0x65d5…a890), ⬇ 113.7kiB/s ⬆ 77.6kiB/s
phala-node             | 2022-12-14 11:43:12 [Relaychain] ✨ Imported #15743956 (0x253b…d0c7)
phala-node             | 2022-12-14 11:43:15 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 47.0kiB/s ⬆ 55.0kiB/s
phala-node             | 2022-12-14 11:43:16 [Relaychain] 💤 Idle (37 peers), best: #15743956 (0x253b…d0c7), finalized #15743952 (0x384f…bc3a), ⬇ 323.9kiB/s ⬆ 180.9kiB/s
phala-node             | 2022-12-14 11:43:18 [Relaychain] ✨ Imported #15743957 (0xfde4…3442)
phala-node             | 2022-12-14 11:43:20 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 41.9kiB/s ⬆ 60.5kiB/s
phala-node             | 2022-12-14 11:43:21 [Relaychain] 💤 Idle (40 peers), best: #15743957 (0xfde4…3442), finalized #15743954 (0xe504…a097), ⬇ 290.9kiB/s ⬆ 165.7kiB/s
phala-node             | 2022-12-14 11:43:24 [Relaychain] ✨ Imported #15743958 (0xe82c…2d39)
phala-node             | 2022-12-14 11:43:25 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 58.0kiB/s ⬆ 74.2kiB/s
phala-node             | 2022-12-14 11:43:26 [Relaychain] 💤 Idle (36 peers), best: #15743958 (0xe82c…2d39), finalized #15743954 (0xe504…a097), ⬇ 218.0kiB/s ⬆ 96.0kiB/s
phala-node             | 2022-12-14 11:43:30 [Relaychain] ✨ Imported #15743959 (0x92bc…b3dd)
phala-node             | 2022-12-14 11:43:30 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 60.6kiB/s ⬆ 22.6kiB/s
phala-node             | 2022-12-14 11:43:31 [Relaychain] 💤 Idle (31 peers), best: #15743959 (0x92bc…b3dd), finalized #15743955 (0xa419…c39e), ⬇ 283.1kiB/s ⬆ 252.5kiB/s
phala-node             | 2022-12-14 11:43:35 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 48.9kiB/s ⬆ 20.4kiB/s
phala-node             | 2022-12-14 11:43:36 [Relaychain] 💤 Idle (36 peers), best: #15743959 (0x92bc…b3dd), finalized #15743955 (0xa419…c39e), ⬇ 60.6kiB/s ⬆ 58.8kiB/s
phala-node             | 2022-12-14 11:43:36 [Relaychain] ✨ Imported #15743960 (0x5888…a8c4)
phala-node             | 2022-12-14 11:43:40 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 27.1kiB/s ⬆ 20.8kiB/s
phala-node             | 2022-12-14 11:43:41 [Relaychain] 💤 Idle (40 peers), best: #15743960 (0x5888…a8c4), finalized #15743956 (0x253b…d0c7), ⬇ 143.5kiB/s ⬆ 81.5kiB/s
phala-node             | 2022-12-14 11:43:42 [Relaychain] ✨ Imported #15743961 (0xebbc…2afa)
phala-node             | 2022-12-14 11:43:44 Accepting new connection 3/100
phala-node             | 2022-12-14 11:43:44 Accepting new connection 9/100
phala-node             | 2022-12-14 11:43:45 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 69.3kiB/s ⬆ 21.1kiB/s
phala-node             | 2022-12-14 11:43:46 [Relaychain] 💤 Idle (38 peers), best: #15743961 (0xebbc…2afa), finalized #15743958 (0xe82c…2d39), ⬇ 178.6kiB/s ⬆ 111.6kiB/s
phala-node             | 2022-12-14 11:43:48 [Relaychain] ✨ Imported #15743962 (0xca5d…940b)
phala-node             | 2022-12-14 11:43:48 [Relaychain] ♻️  Reorg on #15743962,0xca5d…940b to #15743962,0x178c…223c, common ancestor #15743961,0xebbc…2afa

phala-node             | 2022-12-14 11:43:48 [Relaychain] ✨ Imported #15743962 (0x178c…223c)
phala-node             | 2022-12-14 11:43:50 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 47.2kiB/s ⬆ 23.7kiB/s
phala-node             | 2022-12-14 11:43:51 [Relaychain] 💤 Idle (38 peers), best: #15743962 (0x178c…223c), finalized #15743958 (0xe82c…2d39), ⬇ 232.7kiB/s ⬆ 98.2kiB/s
phala-node             | 2022-12-14 11:43:54 [Relaychain] ✨ Imported #15743963 (0xde19…210a)
phala-node             | 2022-12-14 11:43:55 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 39.9kiB/s ⬆ 21.8kiB/s
phala-node             | 2022-12-14 11:43:56 [Relaychain] 💤 Idle (38 peers), best: #15743963 (0xde19…210a), finalized #15743959 (0x92bc…b3dd), ⬇ 754.6kiB/s ⬆ 421.3kiB/s
phala-node             | 2022-12-14 11:44:00 [Relaychain] ✨ Imported #15743964 (0xc210…8928)
phala-node             | 2022-12-14 11:44:00 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 90.1kiB/s ⬆ 19.8kiB/s
phala-node             | 2022-12-14 11:44:00 [Relaychain] ♻️  Reorg on #15743964,0xc210…8928 to #15743964,0x4652…c8ea, common ancestor #15743963,0xde19…210a

phala-node             | 2022-12-14 11:44:00 [Relaychain] ✨ Imported #15743964 (0x4652…c8ea)
phala-node             | 2022-12-14 11:44:01 [Relaychain] 💤 Idle (39 peers), best: #15743964 (0x4652…c8ea), finalized #15743960 (0x5888…a8c4), ⬇ 1.2MiB/s ⬆ 579.6kiB/s
phala-node             | 2022-12-14 11:44:05 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 29.9kiB/s ⬆ 19.5kiB/s
phala-node             | 2022-12-14 11:44:06 [Relaychain] 💤 Idle (50 peers), best: #15743964 (0x4652…c8ea), finalized #15743960 (0x5888…a8c4), ⬇ 1.2MiB/s ⬆ 393.9kiB/s
phala-node             | 2022-12-14 11:44:06 [Relaychain] ✨ Imported #15743965 (0xa777…dd68)
phala-node             | 2022-12-14 11:44:10 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 81.2kiB/s ⬆ 21.3kiB/s
phala-node             | 2022-12-14 11:44:11 [Relaychain] 💤 Idle (50 peers), best: #15743965 (0xa777…dd68), finalized #15743962 (0x178c…223c), ⬇ 736.2kiB/s ⬆ 339.0kiB/s
phala-node             | 2022-12-14 11:44:12 [Relaychain] ✨ Imported #15743966 (0x972f…f051)
phala-node             | 2022-12-14 11:44:15 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 28.6kiB/s ⬆ 19.9kiB/s
phala-node             | 2022-12-14 11:44:16 [Relaychain] 💤 Idle (50 peers), best: #15743966 (0x972f…f051), finalized #15743962 (0x178c…223c), ⬇ 215.4kiB/s ⬆ 128.7kiB/s
phala-node             | 2022-12-14 11:44:18 [Relaychain] ✨ Imported #15743967 (0xd035…8406)
phala-node             | 2022-12-14 11:44:18 [Relaychain] ✨ Imported #15743967 (0x90ce…c60d)
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:41:38.220167Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:41:40.321124Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:41:40.360525Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:41:40.362227Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:42:40.363032Z INFO  pherry] bridge() exited with error: Failed to connect to substrate
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:42:40.366955Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:42:42.364144Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-14T11:42:42.369681Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:42:42.410075Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:42:42.456038Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:43:42.456568Z INFO  pherry] bridge() exited with error: Failed to connect to substrate
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:43:42.456590Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:43:44.458046Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-14T11:43:44.458902Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:43:44.486713Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:43:44.487685Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:44:44.488178Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:44:44.488574Z INFO  pherry] bridge() exited with error: Failed to connect to substrate
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:44:46.489484Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-14T11:44:46.490537Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:44:46.526339Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:44:46.527160Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }

I have another miner syncing pherry, installed at the same time that this (with same OS version, kernel version, phala solo mining tools version, etc.). Both nodes have received a database copy from the same running node. But this one fails to import khala blocks and the other is running fine (importing KSM and Khala blocks normally). Both are behind NAT on different ports (the one running fine on 30333/30334 and this on 31333/31334) and I have another two miners running fine from weeks ago behind NAT (32333/32334 & 33333/33334) as well. I'm trying to understand what happens to this miner that is no able to import khala blocks, stops at a khala block height and pherry disconnects.

I hope I have explained clearly

jasl commented 1 year ago

Ok. I started from scratch again: check BIOS settings again, new SO install (Ubuntu 20.04 with 5.4.0-135-generic), installing phala solo mining tools, and copying databases from a running node. All things looks right at first start, both chains syncing and pherry importing blocks. But after 30 minutes running (more or less) khala chain stops sync, and only KSM chain continues syncing, khala stops sync blocks and Pherry starts to give connection errors:

phala-node             | 2022-12-14 11:43:00 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 225.8kiB/s ⬆ 41.5kiB/s
phala-node             | 2022-12-14 11:43:01 [Relaychain] 💤 Idle (34 peers), best: #15743954 (0xe504…a097), finalized #15743950 (0xb756…1f66), ⬇ 134.2kiB/s ⬆ 211.6kiB/s
phala-node             | 2022-12-14 11:43:05 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 80.8kiB/s ⬆ 109.0kiB/s
phala-node             | 2022-12-14 11:43:06 [Relaychain] 💤 Idle (40 peers), best: #15743954 (0xe504…a097), finalized #15743951 (0x65d5…a890), ⬇ 144.7kiB/s ⬆ 158.0kiB/s
phala-node             | 2022-12-14 11:43:06 [Relaychain] ✨ Imported #15743955 (0xa419…c39e)
phala-node             | 2022-12-14 11:43:10 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 108.6kiB/s ⬆ 20.9kiB/s
phala-node             | 2022-12-14 11:43:11 [Relaychain] 💤 Idle (36 peers), best: #15743955 (0xa419…c39e), finalized #15743951 (0x65d5…a890), ⬇ 113.7kiB/s ⬆ 77.6kiB/s
phala-node             | 2022-12-14 11:43:12 [Relaychain] ✨ Imported #15743956 (0x253b…d0c7)
phala-node             | 2022-12-14 11:43:15 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 47.0kiB/s ⬆ 55.0kiB/s
phala-node             | 2022-12-14 11:43:16 [Relaychain] 💤 Idle (37 peers), best: #15743956 (0x253b…d0c7), finalized #15743952 (0x384f…bc3a), ⬇ 323.9kiB/s ⬆ 180.9kiB/s
phala-node             | 2022-12-14 11:43:18 [Relaychain] ✨ Imported #15743957 (0xfde4…3442)
phala-node             | 2022-12-14 11:43:20 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 41.9kiB/s ⬆ 60.5kiB/s
phala-node             | 2022-12-14 11:43:21 [Relaychain] 💤 Idle (40 peers), best: #15743957 (0xfde4…3442), finalized #15743954 (0xe504…a097), ⬇ 290.9kiB/s ⬆ 165.7kiB/s
phala-node             | 2022-12-14 11:43:24 [Relaychain] ✨ Imported #15743958 (0xe82c…2d39)
phala-node             | 2022-12-14 11:43:25 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 58.0kiB/s ⬆ 74.2kiB/s
phala-node             | 2022-12-14 11:43:26 [Relaychain] 💤 Idle (36 peers), best: #15743958 (0xe82c…2d39), finalized #15743954 (0xe504…a097), ⬇ 218.0kiB/s ⬆ 96.0kiB/s
phala-node             | 2022-12-14 11:43:30 [Relaychain] ✨ Imported #15743959 (0x92bc…b3dd)
phala-node             | 2022-12-14 11:43:30 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 60.6kiB/s ⬆ 22.6kiB/s
phala-node             | 2022-12-14 11:43:31 [Relaychain] 💤 Idle (31 peers), best: #15743959 (0x92bc…b3dd), finalized #15743955 (0xa419…c39e), ⬇ 283.1kiB/s ⬆ 252.5kiB/s
phala-node             | 2022-12-14 11:43:35 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 48.9kiB/s ⬆ 20.4kiB/s
phala-node             | 2022-12-14 11:43:36 [Relaychain] 💤 Idle (36 peers), best: #15743959 (0x92bc…b3dd), finalized #15743955 (0xa419…c39e), ⬇ 60.6kiB/s ⬆ 58.8kiB/s
phala-node             | 2022-12-14 11:43:36 [Relaychain] ✨ Imported #15743960 (0x5888…a8c4)
phala-node             | 2022-12-14 11:43:40 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 27.1kiB/s ⬆ 20.8kiB/s
phala-node             | 2022-12-14 11:43:41 [Relaychain] 💤 Idle (40 peers), best: #15743960 (0x5888…a8c4), finalized #15743956 (0x253b…d0c7), ⬇ 143.5kiB/s ⬆ 81.5kiB/s
phala-node             | 2022-12-14 11:43:42 [Relaychain] ✨ Imported #15743961 (0xebbc…2afa)
phala-node             | 2022-12-14 11:43:44 Accepting new connection 3/100
phala-node             | 2022-12-14 11:43:44 Accepting new connection 9/100
phala-node             | 2022-12-14 11:43:45 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 69.3kiB/s ⬆ 21.1kiB/s
phala-node             | 2022-12-14 11:43:46 [Relaychain] 💤 Idle (38 peers), best: #15743961 (0xebbc…2afa), finalized #15743958 (0xe82c…2d39), ⬇ 178.6kiB/s ⬆ 111.6kiB/s
phala-node             | 2022-12-14 11:43:48 [Relaychain] ✨ Imported #15743962 (0xca5d…940b)
phala-node             | 2022-12-14 11:43:48 [Relaychain] ♻️  Reorg on #15743962,0xca5d…940b to #15743962,0x178c…223c, common ancestor #15743961,0xebbc…2afa

phala-node             | 2022-12-14 11:43:48 [Relaychain] ✨ Imported #15743962 (0x178c…223c)
phala-node             | 2022-12-14 11:43:50 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 47.2kiB/s ⬆ 23.7kiB/s
phala-node             | 2022-12-14 11:43:51 [Relaychain] 💤 Idle (38 peers), best: #15743962 (0x178c…223c), finalized #15743958 (0xe82c…2d39), ⬇ 232.7kiB/s ⬆ 98.2kiB/s
phala-node             | 2022-12-14 11:43:54 [Relaychain] ✨ Imported #15743963 (0xde19…210a)
phala-node             | 2022-12-14 11:43:55 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 39.9kiB/s ⬆ 21.8kiB/s
phala-node             | 2022-12-14 11:43:56 [Relaychain] 💤 Idle (38 peers), best: #15743963 (0xde19…210a), finalized #15743959 (0x92bc…b3dd), ⬇ 754.6kiB/s ⬆ 421.3kiB/s
phala-node             | 2022-12-14 11:44:00 [Relaychain] ✨ Imported #15743964 (0xc210…8928)
phala-node             | 2022-12-14 11:44:00 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 90.1kiB/s ⬆ 19.8kiB/s
phala-node             | 2022-12-14 11:44:00 [Relaychain] ♻️  Reorg on #15743964,0xc210…8928 to #15743964,0x4652…c8ea, common ancestor #15743963,0xde19…210a

phala-node             | 2022-12-14 11:44:00 [Relaychain] ✨ Imported #15743964 (0x4652…c8ea)
phala-node             | 2022-12-14 11:44:01 [Relaychain] 💤 Idle (39 peers), best: #15743964 (0x4652…c8ea), finalized #15743960 (0x5888…a8c4), ⬇ 1.2MiB/s ⬆ 579.6kiB/s
phala-node             | 2022-12-14 11:44:05 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 29.9kiB/s ⬆ 19.5kiB/s
phala-node             | 2022-12-14 11:44:06 [Relaychain] 💤 Idle (50 peers), best: #15743964 (0x4652…c8ea), finalized #15743960 (0x5888…a8c4), ⬇ 1.2MiB/s ⬆ 393.9kiB/s
phala-node             | 2022-12-14 11:44:06 [Relaychain] ✨ Imported #15743965 (0xa777…dd68)
phala-node             | 2022-12-14 11:44:10 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 81.2kiB/s ⬆ 21.3kiB/s
phala-node             | 2022-12-14 11:44:11 [Relaychain] 💤 Idle (50 peers), best: #15743965 (0xa777…dd68), finalized #15743962 (0x178c…223c), ⬇ 736.2kiB/s ⬆ 339.0kiB/s
phala-node             | 2022-12-14 11:44:12 [Relaychain] ✨ Imported #15743966 (0x972f…f051)
phala-node             | 2022-12-14 11:44:15 [Parachain] 💤 Idle (50 peers), best: #2903387 (0xabc3…5f72), finalized #2903387 (0xabc3…5f72), ⬇ 28.6kiB/s ⬆ 19.9kiB/s
phala-node             | 2022-12-14 11:44:16 [Relaychain] 💤 Idle (50 peers), best: #15743966 (0x972f…f051), finalized #15743962 (0x178c…223c), ⬇ 215.4kiB/s ⬆ 128.7kiB/s
phala-node             | 2022-12-14 11:44:18 [Relaychain] ✨ Imported #15743967 (0xd035…8406)
phala-node             | 2022-12-14 11:44:18 [Relaychain] ✨ Imported #15743967 (0x90ce…c60d)
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:41:38.220167Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:41:40.321124Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:41:40.360525Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:41:40.362227Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:42:40.363032Z INFO  pherry] bridge() exited with error: Failed to connect to substrate
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:42:40.366955Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:42:42.364144Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-14T11:42:42.369681Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:42:42.410075Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:42:42.456038Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:43:42.456568Z INFO  pherry] bridge() exited with error: Failed to connect to substrate
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:43:42.456590Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:43:44.458046Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-14T11:43:44.458902Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:43:44.486713Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:43:44.487685Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:44:44.488178Z WARN  jsonrpsee_core::client::async_client] Custom("[backend]: frontend dropped; terminate client")
phala-pherry           | [2022-12-14T11:44:44.488574Z INFO  pherry] bridge() exited with error: Failed to connect to substrate
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         0: Rpc error: Request timeout
phala-pherry           |         1: Request timeout
phala-pherry           | [2022-12-14T11:44:46.489484Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-14T11:44:46.490537Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-14T11:44:46.526339Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-14T11:44:46.527160Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }

I have another miner syncing pherry, installed at the same time that this (with same OS version, kernel version, phala solo mining tools version, etc.). Both nodes have received a database copy from the same running node. But this one fails to import khala blocks and the other is running fine (importing KSM and Khala blocks normally). Both are behind NAT on different ports (the one running fine on 30333/30334 and this on 31333/31334) and I have another two miners running fine from weeks ago behind NAT (32333/32334 & 33333/33334) as well. I'm trying to understand what happens to this miner that is no able to import khala blocks, stops at a khala block height and pherry disconnects.

I hope I have explained clearly

hmmm that's werid... The khala-node log looks really good, I don't see any bad. But I don't understand your pherry can't connect to the node while your khala-node running

jimiflowers commented 1 year ago

Yep, it looks good except that there is no line like this:

phala-node             | 2022-12-14 12:18:53 [Parachain] ✨ Imported #2903616 (0x297d…eef1)

Same time period log from the other node with same hardware and installation:

2022-12-14 11:43:00 [Relaychain] ✨ Imported #15743954 (0xe504…a097)
2022-12-14 11:43:01 [Relaychain] 💤 Idle (50 peers), best: #15743954 (0xe504…a097), finalized #15743950 (0xb756…1f66), ⬇ 645.4kiB/s ⬆ 1.8MiB/s
2022-12-14 11:43:03 [Parachain] 💤 Idle (50 peers), best: #2903459 (0x6abe…e20b), finalized #2903459 (0x6abe…e20b), ⬇ 288.5kiB/s ⬆ 51.6kiB/s
2022-12-14 11:43:06 [Relaychain] ✨ Imported #15743955 (0xa419…c39e)
2022-12-14 11:43:06 [Relaychain] 💤 Idle (50 peers), best: #15743955 (0xa419…c39e), finalized #15743950 (0xb756…1f66), ⬇ 591.7kiB/s ⬆ 1.1MiB/s
2022-12-14 11:43:08 [Parachain] 💤 Idle (50 peers), best: #2903460 (0xa4e4…2edf), finalized #2903459 (0x6abe…e20b), ⬇ 65.1kiB/s ⬆ 51.3kiB/s
**2022-12-14 11:43:09 [Parachain] ✨ Imported #2903461 (0xfbbb…6f2d)**
2022-12-14 11:43:11 [Relaychain] 💤 Idle (50 peers), best: #15743955 (0xa419…c39e), finalized #15743950 (0xb756…1f66), ⬇ 454.9kiB/s ⬆ 615.1kiB/s
2022-12-14 11:43:13 [Relaychain] ✨ Imported #15743956 (0x253b…d0c7)
2022-12-14 11:43:13 [Parachain] 💤 Idle (50 peers), best: #2903460 (0xa4e4…2edf), finalized #2903459 (0x6abe…e20b), ⬇ 96.1kiB/s ⬆ 327.5kiB/s
2022-12-14 11:43:16 [Relaychain] 💤 Idle (50 peers), best: #15743956 (0x253b…d0c7), finalized #15743952 (0x384f…bc3a), ⬇ 621.2kiB/s ⬆ 930.5kiB/s
2022-12-14 11:43:18 [Parachain] 💤 Idle (50 peers), best: #2903460 (0xa4e4…2edf), finalized #2903459 (0x6abe…e20b), ⬇ 35.8kiB/s ⬆ 36.1kiB/s
2022-12-14 11:43:18 [Relaychain] ✨ Imported #15743957 (0xfde4…3442)
**2022-12-14 11:43:20 [Parachain] ✨ Imported #2903462 (0xcc22…33ab)**
2022-12-14 11:43:21 [Relaychain] 💤 Idle (50 peers), best: #15743957 (0xfde4…3442), finalized #15743954 (0xe504…a097), ⬇ 524.2kiB/s ⬆ 2.2MiB/s
2022-12-14 11:43:23 [Parachain] 💤 Idle (50 peers), best: #2903461 (0xfbbb…6f2d), finalized #2903459 (0x6abe…e20b), ⬇ 65.4kiB/s ⬆ 48.7kiB/s
2022-12-14 11:43:24 [Relaychain] ✨ Imported #15743958 (0xe82c…2d39)
2022-12-14 11:43:26 [Relaychain] 💤 Idle (50 peers), best: #15743958 (0xe82c…2d39), finalized #15743954 (0xe504…a097), ⬇ 472.8kiB/s ⬆ 724.8kiB/s
2022-12-14 11:43:28 [Parachain] 💤 Idle (50 peers), best: #2903461 (0xfbbb…6f2d), finalized #2903459 (0x6abe…e20b), ⬇ 17.3kiB/s ⬆ 18.7kiB/s
2022-12-14 11:43:30 [Relaychain] ✨ Imported #15743959 (0x92bc…b3dd)
**2022-12-14 11:43:31 [Parachain] ✨ Imported #2903463 (0xe472…6125)**
2022-12-14 11:43:31 [Relaychain] 💤 Idle (50 peers), best: #15743959 (0x92bc…b3dd), finalized #15743955 (0xa419…c39e), ⬇ 418.7kiB/s ⬆ 1.3MiB/s
2022-12-14 11:43:33 [Parachain] 💤 Idle (50 peers), best: #2903462 (0xcc22…33ab), finalized #2903460 (0xa4e4…2edf), ⬇ 79.7kiB/s ⬆ 67.6kiB/s
2022-12-14 11:43:37 [Relaychain] 💤 Idle (50 peers), best: #15743959 (0x92bc…b3dd), finalized #15743956 (0x253b…d0c7), ⬇ 346.3kiB/s ⬆ 1.2MiB/s
2022-12-14 11:43:37 [Relaychain] ✨ Imported #15743960 (0x5888…a8c4)
2022-12-14 11:43:38 [Parachain] 💤 Idle (50 peers), best: #2903462 (0xcc22…33ab), finalized #2903460 (0xa4e4…2edf), ⬇ 13.6kiB/s ⬆ 14.0kiB/s
2022-12-14 11:43:42 [Relaychain] 💤 Idle (50 peers), best: #15743960 (0x5888…a8c4), finalized #15743956 (0x253b…d0c7), ⬇ 700.8kiB/s ⬆ 1.2MiB/s
2022-12-14 11:43:42 [Relaychain] ✨ Imported #15743961 (0xebbc…2afa)
2022-12-14 11:43:43 [Parachain] 💤 Idle (50 peers), best: #2903463 (0xe472…6125), finalized #2903460 (0xa4e4…2edf), ⬇ 38.2kiB/s ⬆ 86.9kiB/s
**2022-12-14 11:43:43 [Parachain] ✨ Imported #2903464 (0xa8fa…6cba)**
2022-12-14 11:43:47 [Relaychain] 💤 Idle (50 peers), best: #15743961 (0xebbc…2afa), finalized #15743958 (0xe82c…2d39), ⬇ 547.2kiB/s ⬆ 1.3MiB/s
2022-12-14 11:43:48 [Parachain] 💤 Idle (50 peers), best: #2903463 (0xe472…6125), finalized #2903461 (0xfbbb…6f2d), ⬇ 68.5kiB/s ⬆ 148.2kiB/s
2022-12-14 11:43:48 [Relaychain] ✨ Imported #15743962 (0xca5d…940b)
2022-12-14 11:43:48 [Relaychain] ♻️  Reorg on #15743962,0xca5d…940b to #15743962,0x178c…223c, common ancestor #15743961,0xebbc…2afa
2022-12-14 11:43:48 [Relaychain] ✨ Imported #15743962 (0x178c…223c)
2022-12-14 11:43:52 [Relaychain] 💤 Idle (50 peers), best: #15743962 (0x178c…223c), finalized #15743958 (0xe82c…2d39), ⬇ 243.0kiB/s ⬆ 1.0MiB/s
2022-12-14 11:43:53 [Parachain] 💤 Idle (50 peers), best: #2903463 (0xe472…6125), finalized #2903461 (0xfbbb…6f2d), ⬇ 11.6kiB/s ⬆ 98.1kiB/s
2022-12-14 11:43:54 [Relaychain] ✨ Imported #15743963 (0xde19…210a)
**2022-12-14 11:43:56 [Parachain] ✨ Imported #2903465 (0x4608…6b41)**
2022-12-14 11:43:57 [Relaychain] 💤 Idle (50 peers), best: #15743963 (0xde19…210a), finalized #15743959 (0x92bc…b3dd), ⬇ 773.1kiB/s ⬆ 674.3kiB/s
2022-12-14 11:43:58 [Parachain] 💤 Idle (50 peers), best: #2903464 (0xa8fa…6cba), finalized #2903462 (0xcc22…33ab), ⬇ 81.0kiB/s ⬆ 84.4kiB/s
2022-12-14 11:44:00 [Relaychain] ✨ Imported #15743964 (0xc210…8928)
2022-12-14 11:44:01 [Relaychain] ♻️  Reorg on #15743964,0xc210…8928 to #15743964,0x4652…c8ea, common ancestor #15743963,0xde19…210a
2022-12-14 11:44:01 [Relaychain] ✨ Imported #15743964 (0x4652…c8ea)
2022-12-14 11:44:02 [Relaychain] 💤 Idle (43 peers), best: #15743964 (0x4652…c8ea), finalized #15743960 (0x5888…a8c4), ⬇ 481.8kiB/s ⬆ 216.1kiB/s
2022-12-14 11:44:03 [Parachain] 💤 Idle (50 peers), best: #2903464 (0xa8fa…6cba), finalized #2903462 (0xcc22…33ab), ⬇ 43.6kiB/s ⬆ 103.4kiB/s
2022-12-14 11:44:06 [Relaychain] ✨ Imported #15743965 (0xa777…dd68)
2022-12-14 11:44:07 [Relaychain] 💤 Idle (41 peers), best: #15743965 (0xa777…dd68), finalized #15743960 (0x5888…a8c4), ⬇ 351.3kiB/s ⬆ 208.5kiB/s
**2022-12-14 11:44:08 [Parachain] ✨ Imported #2903466 (0x8ba1…f361)**
2022-12-14 11:44:08 [Parachain] 💤 Idle (50 peers), best: #2903465 (0x4608…6b41), finalized #2903462 (0xcc22…33ab), ⬇ 75.0kiB/s ⬆ 90.0kiB/s
2022-12-14 11:44:12 [Relaychain] 💤 Idle (42 peers), best: #15743965 (0xa777…dd68), finalized #15743962 (0x178c…223c), ⬇ 335.2kiB/s ⬆ 343.1kiB/s
2022-12-14 11:44:12 [Relaychain] ✨ Imported #15743966 (0x972f…f051)
2022-12-14 11:44:13 [Parachain] 💤 Idle (50 peers), best: #2903465 (0x4608…6b41), finalized #2903463 (0xe472…6125), ⬇ 37.1kiB/s ⬆ 28.8kiB/s
2022-12-14 11:44:17 [Relaychain] 💤 Idle (47 peers), best: #15743966 (0x972f…f051), finalized #15743962 (0x178c…223c), ⬇ 190.6kiB/s ⬆ 405.8kiB/s
2022-12-14 11:44:18 [Parachain] 💤 Idle (50 peers), best: #2903465 (0x4608…6b41), finalized #2903464 (0xa8fa…6cba), ⬇ 16.5kiB/s ⬆ 31.0kiB/s
2022-12-14 11:44:18 [Relaychain] ✨ Imported #15743967 (0xd035…8406)

I mean, it's not able to import khala blocks. At first I thought it might be a network problem, but both nodes (the two that are the same) are directly connected to the fiber router, and I even changed the network cable and also changed the port on the router just in case, but to no avail.

jasl commented 1 year ago

Yep, it looks good except that there is no line like this:

phala-node             | 2022-12-14 12:18:53 [Parachain] ✨ Imported #2903616 (0x297d…eef1)

I mean, it's not able to import khala blocks

Do you see any error? I found an issue that the node won't import blocks again I submitted the issue to Substrate https://github.com/paritytech/substrate/issues/12613 could you check is this problem?

Recently, I build several khala nodes using internal beta version of Khala-node, I don't see the problem again (I don't know what upstream change fix this or just my luck), I can build a Docker image for the internal beta version, do you wanna try?

jimiflowers commented 1 year ago

Yes mate, for sure, I'll try whatever you think is convenient, no problem.

The only one error I have seen in this node is the one I submited in my first post:

phala-node             | 2022-12-12 20:24:41 [Parachain] panicked at 'Bad input data provided to validate_transaction: Codec error', /home/h4x/workspace/khala-parachain/runtime/khala/src/lib.rs:1594:1
phala-node             | 2022-12-12 20:43:52 ⚠️ System declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaStakePool declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaMining declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaRegistry declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`
jasl commented 1 year ago

Yes mate, for sure, I'll try whatever you think is convenient, no problem.

The only one error I have seen in this node is the one I submited in my first post:

phala-node             | 2022-12-12 20:24:41 [Parachain] panicked at 'Bad input data provided to validate_transaction: Codec error', /home/h4x/workspace/khala-parachain/runtime/khala/src/lib.rs:1594:1
phala-node             | 2022-12-12 20:43:52 ⚠️ System declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaStakePool declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaMining declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-12 20:43:52 ⚠️ PhalaRegistry declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`

Ok I'll make a new version for you, it needs some hours, I'll reply when its ready

those panic are OK, it's runtime error not affect sync

jimiflowers commented 1 year ago

Look at this:

If I restart all Phala processes, it starts running fine again:

phala-node             | 2022-12-14 12:35:26 [Parachain] ✨ Imported #2903685 (0x44f5…1981)
phala-node             | 2022-12-14 12:35:29 [Relaychain] 💤 Idle (48 peers), best: #15744464 (0xcbef…5306), finalized #15744460 (0x8a5b…a66e), ⬇ 400.9kiB/s ⬆ 335.2kiB/s
phala-node             | 2022-12-14 12:35:30 [Relaychain] ✨ Imported #15744465 (0xee02…ac76)
phala-node             | 2022-12-14 12:35:30 [Parachain] 💤 Idle (50 peers), best: #2903684 (0xbca6…ff25), finalized #2903683 (0xfe11…3caa), ⬇ 64.6kiB/s ⬆ 40.4kiB/s
phala-node             | 2022-12-14 12:35:34 [Relaychain] 💤 Idle (47 peers), best: #15744465 (0xee02…ac76), finalized #15744460 (0x8a5b…a66e), ⬇ 233.7kiB/s ⬆ 54.9kiB/s
phala-node             | 2022-12-14 12:35:35 [Parachain] 💤 Idle (50 peers), best: #2903684 (0xbca6…ff25), finalized #2903683 (0xfe11…3caa), ⬇ 49.8kiB/s ⬆ 51.9kiB/s
phala-node             | 2022-12-14 12:35:36 [Relaychain] ✨ Imported #15744466 (0x2c3f…8163)
phala-node             | 2022-12-14 12:35:37 [Parachain] ✨ Imported #2903686 (0x7e7a…bff9)
phala-node             | 2022-12-14 12:35:39 [Relaychain] 💤 Idle (44 peers), best: #15744466 (0x2c3f…8163), finalized #15744462 (0xfbd9…1108), ⬇ 997.3kiB/s ⬆ 552.9kiB/s
phala-node             | 2022-12-14 12:35:40 [Parachain] 💤 Idle (50 peers), best: #2903685 (0x44f5…1981), finalized #2903683 (0xfe11…3caa), ⬇ 30.3kiB/s ⬆ 147.1kiB/s
phala-node             | 2022-12-14 12:35:43 [Relaychain] ✨ Imported #15744467 (0x741c…2d7e)
phala-node             | 2022-12-14 12:35:44 [Relaychain] 💤 Idle (41 peers), best: #15744467 (0x741c…2d7e), finalized #15744463 (0x9679…9763), ⬇ 627.9kiB/s ⬆ 300.9kiB/s
phala-node             | 2022-12-14 12:35:45 [Parachain] 💤 Idle (50 peers), best: #2903685 (0x44f5…1981), finalized #2903683 (0xfe11…3caa), ⬇ 17.2kiB/s ⬆ 20.5kiB/s
phala-node             | 2022-12-14 12:35:48 [Relaychain] ✨ Imported #15744468 (0x9194…d789)
phala-node             | 2022-12-14 12:35:49 [Parachain] ✨ Imported #2903687 (0x8178…cd0c)
phala-node             | 2022-12-14 12:35:49 [Relaychain] 💤 Idle (42 peers), best: #15744468 (0x9194…d789), finalized #15744463 (0x9679…9763), ⬇ 281.6kiB/s ⬆ 144.3kiB/s
phala-node             | 2022-12-14 12:35:50 [Parachain] 💤 Idle (50 peers), best: #2903686 (0x7e7a…bff9), finalized #2903683 (0xfe11…3caa), ⬇ 40.9kiB/s ⬆ 111.9kiB/s
phala-node             | 2022-12-14 12:35:54 [Relaychain] 💤 Idle (47 peers), best: #15744468 (0x9194…d789), finalized #15744463 (0x9679…9763), ⬇ 348.5kiB/s ⬆ 396.4kiB/s
phala-node             | 2022-12-14 12:35:54 [Relaychain] ✨ Imported #15744469 (0x8b1d…d546)
phala-node             | 2022-12-14 12:35:55 [Parachain] 💤 Idle (50 peers), best: #2903686 (0x7e7a…bff9), finalized #2903683 (0xfe11…3caa), ⬇ 39.6kiB/s ⬆ 42.2kiB/s
phala-node             | 2022-12-14 12:35:57 assembling new collators for new session 41 at #72000
phala-node             | 2022-12-14 12:35:59 [Relaychain] 💤 Idle (49 peers), best: #15744469 (0x8b1d…d546), finalized #15744463 (0x9679…9763), ⬇ 195.0kiB/s ⬆ 214.3kiB/s
phala-node             | 2022-12-14 12:36:00 [Relaychain] ✨ Imported #15744470 (0xdd39…f408)
phala-node             | 2022-12-14 12:36:00 [Parachain] 💤 Idle (50 peers), best: #2903687 (0x8178…cd0c), finalized #2903685 (0x44f5…1981), ⬇ 11.0kiB/s ⬆ 16.7kiB/s
phala-node             | 2022-12-14 12:36:01 [Parachain] ✨ Imported #2903688 (0xb5fb…6f07)
phala-node             | 2022-12-14 12:36:04 [Relaychain] 💤 Idle (46 peers), best: #15744470 (0xdd39…f408), finalized #15744466 (0x2c3f…8163), ⬇ 198.7kiB/s ⬆ 465.1kiB/s
phala-node             | 2022-12-14 12:36:05 [Parachain] 💤 Idle (50 peers), best: #2903687 (0x8178…cd0c), finalized #2903685 (0x44f5…1981), ⬇ 54.4kiB/s ⬆ 187.0kiB/s
phala-pherry           | [2022-12-14T12:36:28.950377Z INFO  pherry] fetching parachain header 73796
phala-pherry           | [2022-12-14T12:36:28.952388Z INFO  pherry] fetching parachain header 73797
phala-pherry           | [2022-12-14T12:36:28.953579Z INFO  pherry] fetching parachain header 73798
phala-pherry           | [2022-12-14T12:36:28.954570Z INFO  pherry] fetching parachain header 73799
phala-pherry           | [2022-12-14T12:36:28.955594Z INFO  pherry] fetching parachain header 73800
phala-pherry           | [2022-12-14T12:36:28.956366Z INFO  pherry] fetching parachain header 73801
phala-pherry           | [2022-12-14T12:36:28.957464Z INFO  pherry] fetching parachain header 73802
phala-pherry           | [2022-12-14T12:36:28.958154Z INFO  pherry] fetching parachain header 73803
phala-pherry           | [2022-12-14T12:36:28.959266Z INFO  pherry] fetching parachain header 73804
phala-pherry           | [2022-12-14T12:36:28.960275Z INFO  pherry] fetching parachain header 73805
phala-pherry           | [2022-12-14T12:36:28.965095Z INFO  pherry] fetching parachain header 73806
phala-pherry           | [2022-12-14T12:36:28.966231Z INFO  pherry] fetching parachain header 73807
phala-pherry           | [2022-12-14T12:36:28.967277Z INFO  pherry] fetching parachain header 73808
phala-pherry           | [2022-12-14T12:36:28.968268Z INFO  pherry] fetching parachain header 73809
phala-pherry           | [2022-12-14T12:36:28.968874Z INFO  pherry] fetching parachain header 73810
phala-pherry           | [2022-12-14T12:36:28.969787Z INFO  pherry] fetching parachain header 73811
phala-pherry           | [2022-12-14T12:36:28.970704Z INFO  pherry] fetching parachain header 73812
phala-pherry           | [2022-12-14T12:36:29.053332Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.053575Z INFO  pherry] ..req_sync_para_header: SyncedTo { synced_to: 73812 }
phala-pherry           | [2022-12-14T12:36:29.053587Z INFO  pherry] batch syncing from 73349 to 73812 (464 blocks)
phala-pherry           | [2022-12-14T12:36:29.053592Z INFO  pherry] fetch_storage_changes (73349-73352)
phala-pherry           | [2022-12-14T12:36:29.064028Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73349/4 (404)
phala-pherry           | [2022-12-14T12:36:29.076388Z INFO  pherry::prefetcher] prefetching (73353-73356)
phala-pherry           | [2022-12-14T12:36:29.076414Z INFO  pherry] fetch_storage_changes (73353-73356)
phala-pherry           | [2022-12-14T12:36:29.090794Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73353/4 (404)
phala-pherry           | [2022-12-14T12:36:29.151708Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.151744Z INFO  pherry::prefetcher] use prefetched storage changes (73353-73356)
phala-pherry           | [2022-12-14T12:36:29.151792Z INFO  pherry::prefetcher] prefetching (73357-73360)
phala-pherry           | [2022-12-14T12:36:29.151804Z INFO  pherry] fetch_storage_changes (73357-73360)
phala-pherry           | [2022-12-14T12:36:29.163352Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73357/4 (404)
phala-pherry           | [2022-12-14T12:36:29.231757Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.231790Z INFO  pherry::prefetcher] use prefetched storage changes (73357-73360)
phala-pherry           | [2022-12-14T12:36:29.231832Z INFO  pherry::prefetcher] prefetching (73361-73364)
phala-pherry           | [2022-12-14T12:36:29.231849Z INFO  pherry] fetch_storage_changes (73361-73364)
phala-pherry           | [2022-12-14T12:36:29.242733Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73361/4 (404)
phala-pherry           | [2022-12-14T12:36:29.313188Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.313226Z INFO  pherry::prefetcher] use prefetched storage changes (73361-73364)
phala-pherry           | [2022-12-14T12:36:29.313307Z INFO  pherry::prefetcher] prefetching (73365-73368)
phala-pherry           | [2022-12-14T12:36:29.313334Z INFO  pherry] fetch_storage_changes (73365-73368)
phala-pherry           | [2022-12-14T12:36:29.325043Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73365/4 (404)
phala-pherry           | [2022-12-14T12:36:29.392850Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.392887Z INFO  pherry::prefetcher] use prefetched storage changes (73365-73368)
phala-pherry           | [2022-12-14T12:36:29.392932Z INFO  pherry::prefetcher] prefetching (73369-73372)
phala-pherry           | [2022-12-14T12:36:29.392943Z INFO  pherry] fetch_storage_changes (73369-73372)
phala-pherry           | [2022-12-14T12:36:29.406086Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73369/4 (404)
phala-pherry           | [2022-12-14T12:36:29.471668Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.471710Z INFO  pherry::prefetcher] use prefetched storage changes (73369-73372)
phala-pherry           | [2022-12-14T12:36:29.471741Z INFO  pherry::prefetcher] prefetching (73373-73376)
phala-pherry           | [2022-12-14T12:36:29.471756Z INFO  pherry] fetch_storage_changes (73373-73376)
phala-pherry           | [2022-12-14T12:36:29.483762Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73373/4 (404)

But I guess, as usual, it will stop working properly in a little less than 1 hour.

jasl commented 1 year ago

Look at this:

If I restart all Phala processes, it starts running fine again:

phala-node             | 2022-12-14 12:35:26 [Parachain] ✨ Imported #2903685 (0x44f5…1981)
phala-node             | 2022-12-14 12:35:29 [Relaychain] 💤 Idle (48 peers), best: #15744464 (0xcbef…5306), finalized #15744460 (0x8a5b…a66e), ⬇ 400.9kiB/s ⬆ 335.2kiB/s
phala-node             | 2022-12-14 12:35:30 [Relaychain] ✨ Imported #15744465 (0xee02…ac76)
phala-node             | 2022-12-14 12:35:30 [Parachain] 💤 Idle (50 peers), best: #2903684 (0xbca6…ff25), finalized #2903683 (0xfe11…3caa), ⬇ 64.6kiB/s ⬆ 40.4kiB/s
phala-node             | 2022-12-14 12:35:34 [Relaychain] 💤 Idle (47 peers), best: #15744465 (0xee02…ac76), finalized #15744460 (0x8a5b…a66e), ⬇ 233.7kiB/s ⬆ 54.9kiB/s
phala-node             | 2022-12-14 12:35:35 [Parachain] 💤 Idle (50 peers), best: #2903684 (0xbca6…ff25), finalized #2903683 (0xfe11…3caa), ⬇ 49.8kiB/s ⬆ 51.9kiB/s
phala-node             | 2022-12-14 12:35:36 [Relaychain] ✨ Imported #15744466 (0x2c3f…8163)
phala-node             | 2022-12-14 12:35:37 [Parachain] ✨ Imported #2903686 (0x7e7a…bff9)
phala-node             | 2022-12-14 12:35:39 [Relaychain] 💤 Idle (44 peers), best: #15744466 (0x2c3f…8163), finalized #15744462 (0xfbd9…1108), ⬇ 997.3kiB/s ⬆ 552.9kiB/s
phala-node             | 2022-12-14 12:35:40 [Parachain] 💤 Idle (50 peers), best: #2903685 (0x44f5…1981), finalized #2903683 (0xfe11…3caa), ⬇ 30.3kiB/s ⬆ 147.1kiB/s
phala-node             | 2022-12-14 12:35:43 [Relaychain] ✨ Imported #15744467 (0x741c…2d7e)
phala-node             | 2022-12-14 12:35:44 [Relaychain] 💤 Idle (41 peers), best: #15744467 (0x741c…2d7e), finalized #15744463 (0x9679…9763), ⬇ 627.9kiB/s ⬆ 300.9kiB/s
phala-node             | 2022-12-14 12:35:45 [Parachain] 💤 Idle (50 peers), best: #2903685 (0x44f5…1981), finalized #2903683 (0xfe11…3caa), ⬇ 17.2kiB/s ⬆ 20.5kiB/s
phala-node             | 2022-12-14 12:35:48 [Relaychain] ✨ Imported #15744468 (0x9194…d789)
phala-node             | 2022-12-14 12:35:49 [Parachain] ✨ Imported #2903687 (0x8178…cd0c)
phala-node             | 2022-12-14 12:35:49 [Relaychain] 💤 Idle (42 peers), best: #15744468 (0x9194…d789), finalized #15744463 (0x9679…9763), ⬇ 281.6kiB/s ⬆ 144.3kiB/s
phala-node             | 2022-12-14 12:35:50 [Parachain] 💤 Idle (50 peers), best: #2903686 (0x7e7a…bff9), finalized #2903683 (0xfe11…3caa), ⬇ 40.9kiB/s ⬆ 111.9kiB/s
phala-node             | 2022-12-14 12:35:54 [Relaychain] 💤 Idle (47 peers), best: #15744468 (0x9194…d789), finalized #15744463 (0x9679…9763), ⬇ 348.5kiB/s ⬆ 396.4kiB/s
phala-node             | 2022-12-14 12:35:54 [Relaychain] ✨ Imported #15744469 (0x8b1d…d546)
phala-node             | 2022-12-14 12:35:55 [Parachain] 💤 Idle (50 peers), best: #2903686 (0x7e7a…bff9), finalized #2903683 (0xfe11…3caa), ⬇ 39.6kiB/s ⬆ 42.2kiB/s
phala-node             | 2022-12-14 12:35:57 assembling new collators for new session 41 at #72000
phala-node             | 2022-12-14 12:35:59 [Relaychain] 💤 Idle (49 peers), best: #15744469 (0x8b1d…d546), finalized #15744463 (0x9679…9763), ⬇ 195.0kiB/s ⬆ 214.3kiB/s
phala-node             | 2022-12-14 12:36:00 [Relaychain] ✨ Imported #15744470 (0xdd39…f408)
phala-node             | 2022-12-14 12:36:00 [Parachain] 💤 Idle (50 peers), best: #2903687 (0x8178…cd0c), finalized #2903685 (0x44f5…1981), ⬇ 11.0kiB/s ⬆ 16.7kiB/s
phala-node             | 2022-12-14 12:36:01 [Parachain] ✨ Imported #2903688 (0xb5fb…6f07)
phala-node             | 2022-12-14 12:36:04 [Relaychain] 💤 Idle (46 peers), best: #15744470 (0xdd39…f408), finalized #15744466 (0x2c3f…8163), ⬇ 198.7kiB/s ⬆ 465.1kiB/s
phala-node             | 2022-12-14 12:36:05 [Parachain] 💤 Idle (50 peers), best: #2903687 (0x8178…cd0c), finalized #2903685 (0x44f5…1981), ⬇ 54.4kiB/s ⬆ 187.0kiB/s
phala-pherry           | [2022-12-14T12:36:28.950377Z INFO  pherry] fetching parachain header 73796
phala-pherry           | [2022-12-14T12:36:28.952388Z INFO  pherry] fetching parachain header 73797
phala-pherry           | [2022-12-14T12:36:28.953579Z INFO  pherry] fetching parachain header 73798
phala-pherry           | [2022-12-14T12:36:28.954570Z INFO  pherry] fetching parachain header 73799
phala-pherry           | [2022-12-14T12:36:28.955594Z INFO  pherry] fetching parachain header 73800
phala-pherry           | [2022-12-14T12:36:28.956366Z INFO  pherry] fetching parachain header 73801
phala-pherry           | [2022-12-14T12:36:28.957464Z INFO  pherry] fetching parachain header 73802
phala-pherry           | [2022-12-14T12:36:28.958154Z INFO  pherry] fetching parachain header 73803
phala-pherry           | [2022-12-14T12:36:28.959266Z INFO  pherry] fetching parachain header 73804
phala-pherry           | [2022-12-14T12:36:28.960275Z INFO  pherry] fetching parachain header 73805
phala-pherry           | [2022-12-14T12:36:28.965095Z INFO  pherry] fetching parachain header 73806
phala-pherry           | [2022-12-14T12:36:28.966231Z INFO  pherry] fetching parachain header 73807
phala-pherry           | [2022-12-14T12:36:28.967277Z INFO  pherry] fetching parachain header 73808
phala-pherry           | [2022-12-14T12:36:28.968268Z INFO  pherry] fetching parachain header 73809
phala-pherry           | [2022-12-14T12:36:28.968874Z INFO  pherry] fetching parachain header 73810
phala-pherry           | [2022-12-14T12:36:28.969787Z INFO  pherry] fetching parachain header 73811
phala-pherry           | [2022-12-14T12:36:28.970704Z INFO  pherry] fetching parachain header 73812
phala-pherry           | [2022-12-14T12:36:29.053332Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.053575Z INFO  pherry] ..req_sync_para_header: SyncedTo { synced_to: 73812 }
phala-pherry           | [2022-12-14T12:36:29.053587Z INFO  pherry] batch syncing from 73349 to 73812 (464 blocks)
phala-pherry           | [2022-12-14T12:36:29.053592Z INFO  pherry] fetch_storage_changes (73349-73352)
phala-pherry           | [2022-12-14T12:36:29.064028Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73349/4 (404)
phala-pherry           | [2022-12-14T12:36:29.076388Z INFO  pherry::prefetcher] prefetching (73353-73356)
phala-pherry           | [2022-12-14T12:36:29.076414Z INFO  pherry] fetch_storage_changes (73353-73356)
phala-pherry           | [2022-12-14T12:36:29.090794Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73353/4 (404)
phala-pherry           | [2022-12-14T12:36:29.151708Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.151744Z INFO  pherry::prefetcher] use prefetched storage changes (73353-73356)
phala-pherry           | [2022-12-14T12:36:29.151792Z INFO  pherry::prefetcher] prefetching (73357-73360)
phala-pherry           | [2022-12-14T12:36:29.151804Z INFO  pherry] fetch_storage_changes (73357-73360)
phala-pherry           | [2022-12-14T12:36:29.163352Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73357/4 (404)
phala-pherry           | [2022-12-14T12:36:29.231757Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.231790Z INFO  pherry::prefetcher] use prefetched storage changes (73357-73360)
phala-pherry           | [2022-12-14T12:36:29.231832Z INFO  pherry::prefetcher] prefetching (73361-73364)
phala-pherry           | [2022-12-14T12:36:29.231849Z INFO  pherry] fetch_storage_changes (73361-73364)
phala-pherry           | [2022-12-14T12:36:29.242733Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73361/4 (404)
phala-pherry           | [2022-12-14T12:36:29.313188Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.313226Z INFO  pherry::prefetcher] use prefetched storage changes (73361-73364)
phala-pherry           | [2022-12-14T12:36:29.313307Z INFO  pherry::prefetcher] prefetching (73365-73368)
phala-pherry           | [2022-12-14T12:36:29.313334Z INFO  pherry] fetch_storage_changes (73365-73368)
phala-pherry           | [2022-12-14T12:36:29.325043Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73365/4 (404)
phala-pherry           | [2022-12-14T12:36:29.392850Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.392887Z INFO  pherry::prefetcher] use prefetched storage changes (73365-73368)
phala-pherry           | [2022-12-14T12:36:29.392932Z INFO  pherry::prefetcher] prefetching (73369-73372)
phala-pherry           | [2022-12-14T12:36:29.392943Z INFO  pherry] fetch_storage_changes (73369-73372)
phala-pherry           | [2022-12-14T12:36:29.406086Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73369/4 (404)
phala-pherry           | [2022-12-14T12:36:29.471668Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-14T12:36:29.471710Z INFO  pherry::prefetcher] use prefetched storage changes (73369-73372)
phala-pherry           | [2022-12-14T12:36:29.471741Z INFO  pherry::prefetcher] prefetching (73373-73376)
phala-pherry           | [2022-12-14T12:36:29.471756Z INFO  pherry] fetch_storage_changes (73373-73376)
phala-pherry           | [2022-12-14T12:36:29.483762Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/73373/4 (404)

But I guess, as usual, it will stop working properly in a little less than 1 hour.

This is weird to me, I can't imagine what happen or which part may have trouble, sorry

jimiflowers commented 1 year ago

No worries mate, I can image it's a weird issue, cos I have installed dozens of nodes and I have never seen a behaviour like this. Well, the node has failed again to import khala blocks and pherry was again disconnected. I have restarted the processes and all is working fine again. So at least I've managed to keep the containers from freezing XD

jasl commented 1 year ago

Try

jasl123/khala-node:v0.1.20-dev
DIGEST:sha256:10f3cc00f184d8adb505b895b7f8a5e49faa52b54b1e8b37d7bffc3d02b583e1
jimiflowers commented 1 year ago

Try

jasl123/khala-node:v0.1.20-dev
DIGEST:sha256:10f3cc00f184d8adb505b895b7f8a5e49faa52b54b1e8b37d7bffc3d02b583e1

ok I'll try when I get home

jimiflowers commented 1 year ago

Well, it runs right now with your compiled image. It's running fine at the moment (it has reported some errors, you can see the log) but I going to wait a couple of hours and will let you know, cos it usually works fine the first 30 or 40 minutes after the restart.

Attaching to phala-node
phala-node             | Starting Khala node as role 'ARCHIVE' with extra parachain args '--rpc-max-request-size 30 --rpc-max-response-size 32 --rpc-methods Unsafe --max-runtime-instances 16' extra relaychain args '--rpc-max-request-size 30 --rpc-max-response-size 32 --rpc-external --rpc-methods Unsafe --pruning 108000 --max-runtime-instances 16'
phala-node             | 2022-12-14 18:39:00 Khala Node    
phala-node             | 2022-12-14 18:39:00 ✌️  version 0.1.20-dev-12a37ceeee1    
phala-node             | 2022-12-14 18:39:00 ❤️  by Phala Network, 2018-2022    
phala-node             | 2022-12-14 18:39:00 📋 Chain specification: Khala    
phala-node             | 2022-12-14 18:39:00 🏷  Node name: khalanuc1    
phala-node             | 2022-12-14 18:39:00 👤 Role: FULL    
phala-node             | 2022-12-14 18:39:00 💾 Database: RocksDb at /root/data/chains/khala/db/full    
phala-node             | 2022-12-14 18:39:00 ⛓  Native runtime: khala-1196 (khala-0.tx6.au1)    
phala-node             | 2022-12-14 18:39:00 It isn't safe to expose RPC publicly without a proxy server that filters available set of RPC methods.    
phala-node             | 2022-12-14 18:39:00 It isn't safe to expose RPC publicly without a proxy server that filters available set of RPC methods.    
phala-node             | 2022-12-14 18:39:00 Parachain id: Id(2004)    
phala-node             | 2022-12-14 18:39:00 Parachain Account: 5Ec4AhPVjsshXjh8ynp6MwaJTJBnen3pkHiiyDhHfie5VWkN    
phala-node             | 2022-12-14 18:39:00 Parachain genesis state: 0x000000000000000000000000000000000000000000000000000000000000000000fd2e3e07ed2d610c6c0c6c3cd6858fff733fe53c03bd75d46f25e7c69dec490b03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400    
phala-node             | 2022-12-14 18:39:00 Is collating: no    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 🏷  Local node identity is: 12D3KooWQsedJNg6MjuiiAfWo8BfR3mYGJqMRPue5rMp1zZpbtdy    
phala-node             | 2022-12-14 18:42:43 [Relaychain] Migrating parachains db from version 1 to version 2 ...
phala-node             | 2022-12-14 18:42:43 [Relaychain] Migration complete! 
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 Operating system: linux    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 CPU architecture: x86_64    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 Target environment: gnu    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 CPU: Intel(R) Pentium(R) Silver J5040 CPU @ 2.00GHz    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 CPU cores: 4    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 Memory: 7541MB    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 Kernel: 5.4.0-135-generic    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 Linux distribution: Ubuntu 22.04.1 LTS    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 💻 Virtual machine: no    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 📦 Highest known block at #15747985    
phala-node             | 2022-12-14 18:42:43 [Relaychain] 〽️ Prometheus exporter started at 0.0.0.0:9616    
phala-node             | 2022-12-14 18:42:43 [Relaychain] Running JSON-RPC HTTP server: addr=0.0.0.0:9934, allowed origins=None    
phala-node             | 2022-12-14 18:42:43 [Relaychain] Running JSON-RPC WS server: addr=0.0.0.0:9945, allowed origins=None    
phala-node             | 2022-12-14 18:42:43 [Parachain] 🏷  Local node identity is: 12D3KooWNAYEixybsEkyGNjrq1Y7cDPtFysaxRAjkvFu4KfEr9F1    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 Operating system: linux    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 CPU architecture: x86_64    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 Target environment: gnu    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 CPU: Intel(R) Pentium(R) Silver J5040 CPU @ 2.00GHz    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 CPU cores: 4    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 Memory: 7541MB    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 Kernel: 5.4.0-135-generic    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 Linux distribution: Ubuntu 22.04.1 LTS    
phala-node             | 2022-12-14 18:42:43 [Parachain] 💻 Virtual machine: no    
phala-node             | 2022-12-14 18:42:43 [Parachain] 📦 Highest known block at #2905240    
phala-node             | 2022-12-14 18:42:43 [Parachain] 〽️ Prometheus exporter started at 0.0.0.0:9615    
phala-node             | 2022-12-14 18:42:43 [Parachain] Running JSON-RPC HTTP server: addr=0.0.0.0:9933, allowed origins=None    
phala-node             | 2022-12-14 18:42:43 [Parachain] Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=None    
phala-node             | 2022-12-14 18:42:43 [Parachain] discovered: 12D3KooWQsedJNg6MjuiiAfWo8BfR3mYGJqMRPue5rMp1zZpbtdy /ip4/172.18.0.4/tcp/31334/ws    
phala-node             | 2022-12-14 18:42:43 [Relaychain] discovered: 12D3KooWNAYEixybsEkyGNjrq1Y7cDPtFysaxRAjkvFu4KfEr9F1 /ip4/172.18.0.4/tcp/31333/ws    
phala-node             | 2022-12-14 18:42:43 Accepting new connection 1/100
phala-node             | 2022-12-14 18:42:43 Accepting new connection 1/100
phala-node             | 2022-12-14 18:42:44 [Relaychain] 🔍 Discovered new external address for our node: /ip4/X.X.X.X/tcp/31334/ws/p2p/12D3KooWQsedJNg6MjuiiAfWo8BfR3mYGJqMRPue5rMp1zZpbtdy    
phala-node             | 2022-12-14 18:42:45 [Parachain] 🔍 Discovered new external address for our node: /ip4/X.X.X.X/tcp/31333/ws/p2p/12D3KooWNAYEixybsEkyGNjrq1Y7cDPtFysaxRAjkvFu4KfEr9F1    
phala-node             | 2022-12-14 18:42:48 [Relaychain] ⚙️  Preparing, target=#15748042 (16 peers), best: #15747985 (0xc6eb…0022), finalized #15747981 (0x2aa1…0927), ⬇ 526.6kiB/s ⬆ 85.8kiB/s    
phala-node             | 2022-12-14 18:42:48 [Parachain] ⚙️  Syncing, target=#2905265 (16 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 66.1kiB/s ⬆ 14.8kiB/s    
phala-node             | 2022-12-14 18:42:54 [Relaychain] ⚙️  Preparing  1.0 bps, target=#15748042 (22 peers), best: #15747992 (0xf259…2293), finalized #15747981 (0x2aa1…0927), ⬇ 107.3kiB/s ⬆ 45.0kiB/s    
phala-node             | 2022-12-14 18:42:54 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905265 (30 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 64.0kiB/s ⬆ 10.8kiB/s    
phala-node             | 2022-12-14 18:43:00 [Relaychain] ⚙️  Preparing  0.5 bps, target=#15748043 (38 peers), best: #15747995 (0xd544…a8e0), finalized #15747981 (0x2aa1…0927), ⬇ 301.2kiB/s ⬆ 137.7kiB/s    
phala-node             | 2022-12-14 18:43:00 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905266 (40 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 92.6kiB/s ⬆ 20.9kiB/s    
phala-node             | 2022-12-14 18:43:05 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905266 (40 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 44.2kiB/s ⬆ 10.6kiB/s    
phala-node             | 2022-12-14 18:43:05 [Relaychain] ⚙️  Preparing  0.7 bps, target=#15748043 (40 peers), best: #15747999 (0x7a02…ccfe), finalized #15747981 (0x2aa1…0927), ⬇ 274.5kiB/s ⬆ 87.0kiB/s    
phala-node             | 2022-12-14 18:43:07 [Relaychain] 💔 The bootnode you want to connect to at `/ip4/51.159.112.31/tcp/30333/p2p/12D3KooWMBF6DXADrNLg6kNt1A1zmKzw478gJw79NmTQhSDxuZvR` provided a different peer ID `12D3KooWS6vAe2FCCJookn6eT1aWB91r4ZoTgGBvprzxrP1PqXR4` than the one you expect `12D3KooWMBF6DXADrNLg6kNt1A1zmKzw478gJw79NmTQhSDxuZvR`.    
phala-node             | 2022-12-14 18:43:10 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905266 (40 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 35.0kiB/s ⬆ 180.1kiB/s    
phala-node             | 2022-12-14 18:43:10 [Relaychain] ⚙️  Preparing  0.7 bps, target=#15748043 (40 peers), best: #15748003 (0x52b4…4394), finalized #15747981 (0x2aa1…0927), ⬇ 368.0kiB/s ⬆ 109.5kiB/s    
phala-node             | 2022-12-14 18:43:15 [Relaychain] ⚙️  Preparing  0.3 bps, target=#15748043 (40 peers), best: #15748005 (0x1152…96e1), finalized #15747981 (0x2aa1…0927), ⬇ 235.6kiB/s ⬆ 54.8kiB/s    
phala-node             | 2022-12-14 18:43:16 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905266 (40 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 44.2kiB/s ⬆ 285.4kiB/s    
phala-node             | 2022-12-14 18:43:20 [Relaychain] ⚙️  Preparing  1.1 bps, target=#15748043 (40 peers), best: #15748011 (0x6376…e252), finalized #15747981 (0x2aa1…0927), ⬇ 443.1kiB/s ⬆ 87.1kiB/s    
phala-node             | 2022-12-14 18:43:21 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905266 (40 peers), best: #2905240 (0x0d9c…1309), finalized #2905238 (0x646b…2c7f), ⬇ 33.4kiB/s ⬆ 259.8kiB/s    
phala-node             | 2022-12-14 18:43:25 [Parachain] ✨ Imported #2905242 (0xfeca…807e)    
phala-node             | 2022-12-14 18:43:25 [Relaychain] ⚙️  Preparing  2.1 bps, target=#15748043 (40 peers), best: #15748022 (0x97cf…edbf), finalized #15747981 (0x2aa1…0927), ⬇ 427.3kiB/s ⬆ 87.9kiB/s    
phala-node             | 2022-12-14 18:43:26 [Parachain] ⚙️  Preparing  0.3 bps, target=#2905266 (40 peers), best: #2905242 (0xfeca…807e), finalized #2905238 (0x646b…2c7f), ⬇ 61.1kiB/s ⬆ 246.1kiB/s    
phala-node             | 2022-12-14 18:43:28 [Relaychain] Failed to write to trie: Database missing expected key: 0xd4d18852d1ac3b7e95af2060c7fa759503dbc1aa8efadb791ce555b401656d0b    
phala-node             | 2022-12-14 18:43:28 [Relaychain] panicked at 'Storage root must match that calculated.', /home/builder/cargo/git/checkouts/substrate-7e08433d4c370a21/1cc97dd/frame/executive/src/lib.rs:534:9    
phala-node             | 2022-12-14 18:43:28 [Relaychain] Block prepare storage changes error: Error at calling runtime api: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
phala-node             | WASM backtrace:
phala-node             | 
phala-node             |     0: 0x54429c - <unknown>!rust_begin_unwind
phala-node             |     1: 0x584a - <unknown>!core::panicking::panic_fmt::h9e229748e3ae9f9d
phala-node             |     2: 0x11bdf0 - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::execute_block::h503e82078b51a3a1
phala-node             |     3: 0xf45c0 - <unknown>!Core_execute_block
phala-node             |     
phala-node             | 2022-12-14 18:43:28 [Relaychain] 💔 Error importing block 0xa8707a23082683c5158ce90da32337db0df462e62e39b5f058850254972f4292: consensus error: Import failed: Import failed: Error at calling runtime api: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
phala-node             | WASM backtrace:
phala-node             | 
phala-node             |     0: 0x54429c - <unknown>!rust_begin_unwind
phala-node             |     1: 0x584a - <unknown>!core::panicking::panic_fmt::h9e229748e3ae9f9d
phala-node             |     2: 0x11bdf0 - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::execute_block::h503e82078b51a3a1
phala-node             |     3: 0xf45c0 - <unknown>!Core_execute_block
phala-node             |     
phala-node             | 2022-12-14 18:43:29 [Relaychain] ✨ Imported #15748049 (0xa870…4292)    
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0xbb5c457312bea3ef2132aa9a096e907e5b89d697f015af5d00dffa7e18aebe2d traceID=249044735126067013719906495632245690494
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0x2cbfe7406fdf0779b50e4b643d10e515a19d057a6d9522f70c032f4ee1386615 traceID=59482450856359756783213599258290742549
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0x010b22f3d5d23565992c4096286fd15acee2bf28d844d98bfa9650780f492b8c traceID=1387052181773247773493675058999054682
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0x6bc3b702affc322f8dbcc0cb5028f33e3fabf17123ab798be2867b315ca9d1ce traceID=143243605330278846093299698328165479230
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0x5d7b4df1e7db9bd9055f665a6b8013c68eec3aa9ec56cd5b5d4d30252a3dd8f2 traceID=124258437032880135088053075723186869190
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0x08589b7d23a0d8a68b36c8663473d310eb029b4e0d125b589ff3f63c15b72fdb traceID=11093899777865698684735710889935885072
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0xbb2dc3098545dfd0385ba4a67453360998f43940aef7508df30e1b1b70ebca08 traceID=248803244394585489296909272002883433993
phala-node             | 2022-12-14 18:43:29 [Relaychain] Candidate included without being backed? candidate_hash=0x9b008962782fa1ff2615dfc76c90e28725cc71a544b3949799fae6615aa52792 traceID=206033125838333372676594381506751816327
phala-node             | 2022-12-14 18:43:30 [Relaychain] 💤 Idle (34 peers), best: #15748049 (0xa870…4292), finalized #15748045 (0x999d…b085), ⬇ 587.9kiB/s ⬆ 120.9kiB/s    
phala-node             | 2022-12-14 18:43:31 [Parachain] ⚙️  Preparing  1.5 bps, target=#2905266 (40 peers), best: #2905250 (0x1058…30ee), finalized #2905238 (0x646b…2c7f), ⬇ 73.3kiB/s ⬆ 738.6kiB/s    
phala-node             | 2022-12-14 18:43:31 [Relaychain] ✨ Imported #15748050 (0x42a7…0075)    
phala-node             | 2022-12-14 18:43:35 [Relaychain] 💤 Idle (40 peers), best: #15748050 (0x42a7…0075), finalized #15748045 (0x999d…b085), ⬇ 648.9kiB/s ⬆ 123.5kiB/s    
phala-node             | 2022-12-14 18:43:36 [Parachain] 💤 Idle (40 peers), best: #2905265 (0xc275…4851), finalized #2905238 (0x646b…2c7f), ⬇ 61.9kiB/s ⬆ 646.5kiB/s    
phala-node             | 2022-12-14 18:43:36 [Relaychain] ✨ Imported #15748051 (0x7a21…d33a)    
phala-node             | 2022-12-14 18:43:40 [Relaychain] 💤 Idle (40 peers), best: #15748051 (0x7a21…d33a), finalized #15748047 (0x7076…d334), ⬇ 581.6kiB/s ⬆ 259.1kiB/s    
phala-node             | 2022-12-14 18:43:41 [Parachain] 💤 Idle (40 peers), best: #2905270 (0x7d97…8ef8), finalized #2905267 (0x3b3c…922c), ⬇ 36.3kiB/s ⬆ 895.8kiB/s    
phala-node             | 2022-12-14 18:43:42 [Relaychain] ✨ Imported #15748052 (0xc57b…3530)    
phala-node             | 2022-12-14 18:43:44 [Parachain] ✨ Imported #2905271 (0xd4f6…5527)    
phala-node             | 2022-12-14 18:43:45 [Relaychain] 💤 Idle (40 peers), best: #15748052 (0xc57b…3530), finalized #15748047 (0x7076…d334), ⬇ 312.5kiB/s ⬆ 234.7kiB/s    
phala-node             | 2022-12-14 18:43:46 [Parachain] 💤 Idle (40 peers), best: #2905270 (0x7d97…8ef8), finalized #2905267 (0x3b3c…922c), ⬇ 61.2kiB/s ⬆ 811.8kiB/s    
phala-node             | 2022-12-14 18:43:49 [Relaychain] ✨ Imported #15748053 (0xbc40…bf9f)    
phala-node             | 2022-12-14 18:43:50 [Relaychain] 💤 Idle (40 peers), best: #15748053 (0xbc40…bf9f), finalized #15748050 (0x42a7…0075), ⬇ 677.5kiB/s ⬆ 812.1kiB/s    
phala-node             | 2022-12-14 18:43:51 [Parachain] 💤 Idle (40 peers), best: #2905270 (0x7d97…8ef8), finalized #2905269 (0x7767…f7d9), ⬇ 46.0kiB/s ⬆ 448.5kiB/s    
phala-node             | 2022-12-14 18:43:54 [Relaychain] ✨ Imported #15748054 (0xc762…7553)    
phala-node             | 2022-12-14 18:43:55 [Relaychain] ♻️  Reorg on #15748054,0xc762…7553 to #15748054,0x59f9…1ce2, common ancestor #15748053,0xbc40…bf9f    
phala-node             | 2022-12-14 18:43:55 [Relaychain] ✨ Imported #15748054 (0x59f9…1ce2)    
phala-node             | 2022-12-14 18:43:55 [Relaychain] 💤 Idle (40 peers), best: #15748054 (0x59f9…1ce2), finalized #15748050 (0x42a7…0075), ⬇ 718.9kiB/s ⬆ 1.0MiB/s    
phala-node             | 2022-12-14 18:43:56 [Parachain] 💤 Idle (40 peers), best: #2905271 (0xd4f6…5527), finalized #2905269 (0x7767…f7d9), ⬇ 72.6kiB/s ⬆ 211.1kiB/s    
phala-node             | 2022-12-14 18:43:57 [Relaychain] 🔍 Discovered new external address for our node: /ip4/51.159.112.31/tcp/31334/ws/p2p/12D3KooWQsedJNg6MjuiiAfWo8BfR3mYGJqMRPue5rMp1zZpbtdy    
phala-node             | 2022-12-14 18:43:59 [Parachain] ✨ Imported #2905272 (0xb9cf…19c7)    
phala-node             | 2022-12-14 18:44:00 [Relaychain] 💤 Idle (40 peers), best: #15748054 (0x59f9…1ce2), finalized #15748051 (0x7a21…d33a), ⬇ 799.1kiB/s ⬆ 1015.3kiB/s    
phala-node             | 2022-12-14 18:44:01 [Parachain] 💤 Idle (40 peers), best: #2905271 (0xd4f6…5527), finalized #2905269 (0x7767…f7d9), ⬇ 124.2kiB/s ⬆ 159.7kiB/s    
phala-node             | 2022-12-14 18:44:01 [Relaychain] ✨ Imported #15748055 (0xf950…1f11)    
phala-node             | 2022-12-14 18:44:05 [Relaychain] 💤 Idle (40 peers), best: #15748055 (0xf950…1f11), finalized #15748051 (0x7a21…d33a), ⬇ 855.4kiB/s ⬆ 791.1kiB/s    
phala-node             | 2022-12-14 18:44:06 [Parachain] 💤 Idle (40 peers), best: #2905271 (0xd4f6…5527), finalized #2905269 (0x7767…f7d9), ⬇ 46.2kiB/s ⬆ 204.3kiB/s    
phala-node             | 2022-12-14 18:44:06 [Relaychain] ✨ Imported #15748056 (0xf273…efd3)    
phala-node             | 2022-12-14 18:44:10 [Relaychain] 💤 Idle (40 peers), best: #15748056 (0xf273…efd3), finalized #15748051 (0x7a21…d33a), ⬇ 752.0kiB/s ⬆ 1.2MiB/s    
phala-node             | 2022-12-14 18:44:11 [Parachain] 💤 Idle (40 peers), best: #2905271 (0xd4f6…5527), finalized #2905269 (0x7767…f7d9), ⬇ 34.0kiB/s ⬆ 162.0kiB/s    
phala-node             | 2022-12-14 18:44:12 [Relaychain] ✨ Imported #15748057 (0x9a7e…bb01)    
phala-node             | 2022-12-14 18:44:15 [Parachain] ✨ Imported #2905272 (0x4983…a4fd)    
phala-node             | 2022-12-14 18:44:15 [Relaychain] 💤 Idle (40 peers), best: #15748057 (0x9a7e…bb01), finalized #15748052 (0xc57b…3530), ⬇ 439.5kiB/s ⬆ 1.8MiB/s    
phala-node             | 2022-12-14 18:44:16 [Parachain] 💤 Idle (40 peers), best: #2905271 (0xd4f6…5527), finalized #2905270 (0x7d97…8ef8), ⬇ 41.0kiB/s ⬆ 380.1kiB/s    
phala-node             | 2022-12-14 18:44:18 [Relaychain] ✨ Imported #15748058 (0xaa7d…80cb)    
phala-node             | 2022-12-14 18:44:20 [Relaychain] 💤 Idle (40 peers), best: #15748058 (0xaa7d…80cb), finalized #15748054 (0x59f9…1ce2), ⬇ 258.3kiB/s ⬆ 2.1MiB/s    
phala-node             | 2022-12-14 18:44:21 [Parachain] 💤 Idle (40 peers), best: #2905271 (0xd4f6…5527), finalized #2905271 (0xd4f6…5527), ⬇ 33.0kiB/s ⬆ 644.3kiB/s    
phala-node             | 2022-12-14 18:44:25 [Relaychain] ✨ Imported #15748059 (0xd5a6…a24c)    
phala-node             | 2022-12-14 18:44:25 [Relaychain] 💤 Idle (40 peers), best: #15748059 (0xd5a6…a24c), finalized #15748054 (0x59f9…1ce2), ⬇ 259.6kiB/s ⬆ 1.7MiB/s    
phala-node             | 2022-12-14 18:44:26 [Parachain] 💤 Idle (38 peers), best: #2905272 (0x4983…a4fd), finalized #2905271 (0xd4f6…5527), ⬇ 44.1kiB/s ⬆ 292.4kiB/s    
phala-node             | 2022-12-14 18:44:30 [Relaychain] 💤 Idle (40 peers), best: #15748059 (0xd5a6…a24c), finalized #15748055 (0xf950…1f11), ⬇ 148.4kiB/s ⬆ 919.0kiB/s    
phala-node             | 2022-12-14 18:44:31 [Parachain] 💤 Idle (39 peers), best: #2905272 (0x4983…a4fd), finalized #2905271 (0xd4f6…5527), ⬇ 58.2kiB/s ⬆ 243.9kiB/s    
phala-node             | 2022-12-14 18:44:33 [Relaychain] ✨ Imported #15748060 (0x2fc3…2bf9)    
phala-node             | 2022-12-14 18:44:35 [Relaychain] 💤 Idle (40 peers), best: #15748060 (0x2fc3…2bf9), finalized #15748055 (0xf950…1f11), ⬇ 63.8kiB/s ⬆ 475.5kiB/s    
phala-node             | 2022-12-14 18:44:37 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905271 (0xd4f6…5527), ⬇ 21.0kiB/s ⬆ 26.6kiB/s    
phala-node             | 2022-12-14 18:44:37 [Relaychain] ✨ Imported #15748061 (0xd160…d671)    
phala-node             | 2022-12-14 18:44:42 [Relaychain] 💤 Idle (30 peers), best: #15748061 (0xd160…d671), finalized #15748055 (0xf950…1f11), ⬇ 74.4kiB/s ⬆ 195.4kiB/s    
phala-node             | 2022-12-14 18:44:42 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905271 (0xd4f6…5527), ⬇ 100.3kiB/s ⬆ 108.9kiB/s    
phala-node             | 2022-12-14 18:44:43 [Relaychain] ✨ Imported #15748062 (0x40d8…9475)    
phala-node             | 2022-12-14 18:44:47 [Relaychain] 💤 Idle (25 peers), best: #15748062 (0x40d8…9475), finalized #15748058 (0xaa7d…80cb), ⬇ 115.0kiB/s ⬆ 1.6MiB/s    
phala-node             | 2022-12-14 18:44:47 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905271 (0xd4f6…5527), ⬇ 21.9kiB/s ⬆ 460.0kiB/s    
phala-node             | 2022-12-14 18:44:48 [Relaychain] ✨ Imported #15748063 (0xb41c…e2d9)    
phala-node             | 2022-12-14 18:44:52 [Relaychain] 💤 Idle (22 peers), best: #15748063 (0xb41c…e2d9), finalized #15748058 (0xaa7d…80cb), ⬇ 157.4kiB/s ⬆ 1.8MiB/s    
phala-node             | 2022-12-14 18:44:52 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905271 (0xd4f6…5527), ⬇ 55.7kiB/s ⬆ 203.4kiB/s    
phala-node             | 2022-12-14 18:44:56 [Relaychain] ✨ Imported #15748064 (0x9a0c…a21f)    
phala-node             | 2022-12-14 18:44:56 [Relaychain] ✨ Imported #15748064 (0x96bf…63b1)    
phala-node             | 2022-12-14 18:44:57 ⚠️ System declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-14 18:44:57 ⚠️ PhalaStakePool declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-14 18:44:57 == migrate_fix487: Pre-Migration ==    
phala-node             | 2022-12-14 18:44:57 [Relaychain] 💤 Idle (23 peers), best: #15748064 (0x9a0c…a21f), finalized #15748060 (0x2fc3…2bf9), ⬇ 373.9kiB/s ⬆ 1.3MiB/s    
phala-node             | 2022-12-14 18:44:57 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905272 (0x4983…a4fd), ⬇ 12.3kiB/s ⬆ 155.8kiB/s    
phala-node             | 2022-12-14 18:45:01 [Relaychain] ✨ Imported #15748065 (0x03f3…efbe)    
phala-node             | 2022-12-14 18:45:03 [Relaychain] 💤 Idle (24 peers), best: #15748065 (0x03f3…efbe), finalized #15748060 (0x2fc3…2bf9), ⬇ 518.2kiB/s ⬆ 1.1MiB/s    
phala-node             | 2022-12-14 18:45:03 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905272 (0x4983…a4fd), ⬇ 41.1kiB/s ⬆ 121.7kiB/s    
phala-node             | 2022-12-14 18:45:03 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  5    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  2    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:04 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  2    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:05 dust stake removed:  2    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  2    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:06 dust stake removed:  2    
phala-node             | 2022-12-14 18:45:07 dust stake removed:  1    
phala-node             | 2022-12-14 18:45:07 share_dust_removed: {
phala-node             |     0: 7,
phala-node             |     45: 1,
phala-node             |     119: 3,
phala-node             |     144: 1,
phala-node             |     219: 1,
phala-node             |     223: 3,
phala-node             |     228: 2,
phala-node             |     252: 1,
phala-node             |     259: 1,
phala-node             |     264: 3,
phala-node             |     341: 2,
phala-node             |     415: 2,
phala-node             |     564: 4,
phala-node             |     591: 1,
phala-node             |     594: 1,
phala-node             |     706: 1,
phala-node             |     709: 1,
phala-node             |     761: 1,
phala-node             |     771: 1,
phala-node             |     884: 1,
phala-node             |     897: 2,
phala-node             |     978: 1,
phala-node             |     988: 1,
phala-node             |     1239: 1,
phala-node             |     1345: 3,
phala-node             | }    
phala-node             | 2022-12-14 18:45:07 [Relaychain] ✨ Imported #15748066 (0x7919…78d1)    
phala-node             | 2022-12-14 18:45:07 [Relaychain] ✨ Imported #15748066 (0x64a8…9617)    
phala-node             | 2022-12-14 18:45:08 [Relaychain] 💤 Idle (22 peers), best: #15748066 (0x7919…78d1), finalized #15748062 (0x40d8…9475), ⬇ 793.3kiB/s ⬆ 918.7kiB/s    
phala-node             | 2022-12-14 18:45:08 [Parachain] 💤 Idle (40 peers), best: #2905272 (0x4983…a4fd), finalized #2905272 (0x4983…a4fd), ⬇ 27.7kiB/s ⬆ 266.4kiB/s    
phala-node             | 2022-12-14 18:45:08 [Parachain] ✨ Imported #2905273 (0x8473…ec3e)    
phala-node             | 2022-12-14 18:45:08 [Parachain] ✨ Imported #2905274 (0xf19e…f9cd)    
phala-node             | 2022-12-14 18:45:08 [Parachain] ✨ Imported #2905275 (0x697a…abe4)    
phala-node             | 2022-12-14 18:45:08 [Parachain] ✨ Imported #2905276 (0xe988…85c9)    
phala-node             | 2022-12-14 18:45:10 == migrate_fix487: Post-Migration ==    
phala-node             | 2022-12-14 18:45:10 == migrate_fix487: Ok(427000000000) ==    
phala-node             | 2022-12-14 18:45:10 ⚠️ PhalaMining declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-14 18:45:10 ⚠️ PhalaRegistry declares internal migrations (which *might* execute). On-chain `<wasm:stripped>` vs current storage version `<wasm:stripped>`    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for PhalaMq    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for BridgeTransfer    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for ChainBridge    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Tips    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for PhragmenElection    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for TechnicalMembership    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for TechnicalCommittee    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Lottery    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Bounties    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Treasury    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Council    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Democracy    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Identity    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for AuraExt    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Aura    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Session    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for CollatorSelection    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Authorship    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for TransactionPayment    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Balances    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for ParachainSystem    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for ParachainInfo    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Scheduler    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Vesting    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Proxy    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Multisig    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Utility    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for RandomnessCollectiveFlip    
phala-node             | 2022-12-14 18:45:10 ✅ no migration for Timestamp    
phala-node             | 2022-12-14 18:45:13 [Relaychain] ✨ Imported #15748067 (0x353b…b8ca)    
phala-node             | 2022-12-14 18:45:13 [Relaychain] 💤 Idle (23 peers), best: #15748067 (0x353b…b8ca), finalized #15748063 (0xb41c…e2d9), ⬇ 763.6kiB/s ⬆ 1.1MiB/s    
phala-node             | 2022-12-14 18:45:13 [Parachain] 💤 Idle (40 peers), best: #2905276 (0xe988…85c9), finalized #2905274 (0xf19e…f9cd), ⬇ 33.7kiB/s ⬆ 444.4kiB/s    
phala-node             | 2022-12-14 18:45:19 [Parachain] 💤 Idle (40 peers), best: #2905276 (0xe988…85c9), finalized #2905274 (0xf19e…f9cd), ⬇ 32.1kiB/s ⬆ 56.2kiB/s    
phala-node             | 2022-12-14 18:45:19 [Relaychain] 💤 Idle (27 peers), best: #15748067 (0x353b…b8ca), finalized #15748063 (0xb41c…e2d9), ⬇ 645.0kiB/s ⬆ 1.0MiB/s    
phala-node             | 2022-12-14 18:45:19 [Relaychain] ✨ Imported #15748068 (0x02e5…9419)    
phala-node             | 2022-12-14 18:45:24 [Parachain] 💤 Idle (40 peers), best: #2905276 (0xe988…85c9), finalized #2905275 (0x697a…abe4), ⬇ 53.6kiB/s ⬆ 390.2kiB/s    
phala-node             | 2022-12-14 18:45:26 [Relaychain] 💤 Idle (28 peers), best: #15748068 (0x02e5…9419), finalized #15748065 (0x03f3…efbe), ⬇ 511.8kiB/s ⬆ 1.1MiB/s    
phala-node             | 2022-12-14 18:45:27 [Relaychain] ✨ Imported #15748069 (0xa939…1e84)    
phala-node             | 2022-12-14 18:45:29 [Parachain] ✨ Imported #2905277 (0x49a9…ec12)    
phala-node             | 2022-12-14 18:45:29 [Parachain] 💤 Idle (39 peers), best: #2905277 (0x49a9…ec12), finalized #2905275 (0x697a…abe4), ⬇ 171.9kiB/s ⬆ 19.2kiB/s    
phala-node             | 2022-12-14 18:45:31 [Relaychain] ✨ Imported #15748070 (0x652a…12e9)    
phala-node             | 2022-12-14 18:45:31 [Relaychain] ♻️  Reorg on #15748070,0x652a…12e9 to #15748070,0xd462…a1a7, common ancestor #15748069,0xa939…1e84    
phala-node             | 2022-12-14 18:45:31 [Relaychain] ✨ Imported #15748070 (0xd462…a1a7)    
phala-node             | 2022-12-14 18:45:31 [Relaychain] 💤 Idle (21 peers), best: #15748070 (0xd462…a1a7), finalized #15748065 (0x03f3…efbe), ⬇ 204.1kiB/s ⬆ 1.3MiB/s    
phala-node             | 2022-12-14 18:45:34 [Parachain] 💤 Idle (40 peers), best: #2905277 (0x49a9…ec12), finalized #2905275 (0x697a…abe4), ⬇ 42.1kiB/s ⬆ 187.3kiB/s
jimiflowers commented 1 year ago

Bad luck mate, It has failed a few minutes after the start :sweat:. Here you are the session logs.

phala_logs.zip

jimiflowers commented 1 year ago

After having failed, I can't start the node anymore, every time I try to start it, it panics.

phala-node             | 2022-12-14 19:16:32 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905409 (40 peers), best: #2905282 (0x25a1…c8ba), finalized #2905282 (0x25a1…c8ba), ⬇ 53.0kiB/s ⬆ 392.0kiB/s    
phala-node             | 
phala-node             | ====================
phala-node             | 
phala-node             | Version: 0.1.20-dev-12a37ceeee1
phala-node             | 
phala-node             |    0: sp_panic_handler::set::{{closure}}
phala-node             |    1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:2001:9
phala-node             |       std::panicking::rust_panic_with_hook
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:692:13
phala-node             |    2: std::panicking::begin_panic_handler::{{closure}}
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:579:13
phala-node             |    3: std::sys_common::backtrace::__rust_end_short_backtrace
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys_common/backtrace.rs:137:18
phala-node             |    4: rust_begin_unwind
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:575:5
phala-node             |    5: core::panicking::panic_fmt
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/panicking.rs:65:14
phala-node             |    6: core::result::unwrap_failed
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/result.rs:1791:5
phala-node             |    7: <sp_state_machine::ext::Ext<H,B> as sp_externalities::Externalities>::storage
phala-node             |    8: sp_io::storage::get_version_1
phala-node             |    9: sp_io::storage::ExtStorageGetVersion1::call
phala-node             |   10: <F as wasmtime::func::IntoFunc<T,(wasmtime::func::Caller<T>,A1),R>>::into_func::wasm_to_host_shim
phala-node             |   11: <unknown>
phala-node             |   12: <unknown>
phala-node             |   13: <unknown>
phala-node             |   14: <unknown>
phala-node             |   15: <unknown>
phala-node             |   16: <unknown>
phala-node             |   17: <unknown>
phala-node             |   18: wasmtime_runtime::traphandlers::catch_traps::call_closure
phala-node             |   19: wasmtime_setjmp
phala-node             |   20: sc_executor_wasmtime::runtime::perform_call
phala-node             |   21: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call_with_allocation_stats
phala-node             |   22: sc_executor_common::wasm_runtime::WasmInstance::call_export
phala-node             |   23: sc_executor::native_executor::WasmExecutor<H>::with_instance::{{closure}}
phala-node             |   24: <sc_executor::native_executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
phala-node             |   25: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_aux
phala-node             |   26: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_using_consensus_failure_handler
phala-node             |   27: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
phala-node             |   28: <polkadot_runtime::RuntimeApiImpl<__SR_API_BLOCK__,RuntimeApiImplCall> as sp_api::Core<__SR_API_BLOCK__>>::__runtime_api_internal_call_api_at
phala-node             |   29: sc_transaction_pool::api::validate_transaction_blocking
phala-node             |   30: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   31: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   32: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
phala-node             |   33: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
phala-node             |   34: tokio::runtime::task::raw::poll
phala-node             |   35: std::sys_common::backtrace::__rust_begin_short_backtrace
phala-node             |   36: core::ops::function::FnOnce::call_once{{vtable.shim}}
phala-node             |   37: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       std::sys::unix::thread::Thread::new::thread_start
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys/unix/thread.rs:108:17
phala-node             |   38: <unknown>
phala-node             |   39: __clone
phala-node             | 
phala-node             | 
phala-node             | Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0xb3f16c885ea7745fc3b9d95cf0f25bcd0cc059b62153f6091d5fad9e6de6fdd9"', /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/2dff067/primitives/state-machine/src/ext.rs:189
phala-node             | 
phala-node             | This is a bug. Please report it at:
phala-node             | 
phala-node             |    https://github.com/Phala-Network/khala-parachain/issues/new
phala-node             | 
phala-node             | 
phala-node             | ====================
phala-node             | 
phala-node             | Version: 0.1.20-dev-12a37ceeee1
phala-node             | 
phala-node             |    0: sp_panic_handler::set::{{closure}}
phala-node             |    1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:2001:9
phala-node             |       std::panicking::rust_panic_with_hook
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:692:13
phala-node             |    2: std::panicking::begin_panic_handler::{{closure}}
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:579:13
phala-node             |    3: std::sys_common::backtrace::__rust_end_short_backtrace
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys_common/backtrace.rs:137:18
phala-node             |    4: rust_begin_unwind
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:575:5
phala-node             |    5: core::panicking::panic_fmt
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/panicking.rs:65:14
phala-node             |    6: core::result::unwrap_failed
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/result.rs:1791:5
phala-node             |    7: <sp_state_machine::ext::Ext<H,B> as sp_externalities::Externalities>::storage
phala-node             |    8: sp_io::storage::get_version_1
phala-node             |    9: sp_io::storage::ExtStorageGetVersion1::call
phala-node             |   10: <F as wasmtime::func::IntoFunc<T,(wasmtime::func::Caller<T>,A1),R>>::into_func::wasm_to_host_shim
phala-node             |   11: <unknown>
phala-node             |   12: <unknown>
phala-node             |   13: <unknown>
phala-node             |   14: <unknown>
phala-node             |   15: <unknown>
phala-node             |   16: wasmtime_runtime::traphandlers::catch_traps::call_closure
phala-node             |   17: wasmtime_setjmp
phala-node             |   18: sc_executor_wasmtime::runtime::perform_call
phala-node             |   19: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call_with_allocation_stats
phala-node             |   20: sc_executor_common::wasm_runtime::WasmInstance::call_export
phala-node             |   21: sc_executor::native_executor::WasmExecutor<H>::with_instance::{{closure}}
phala-node             |   22: <sc_executor::native_executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
phala-node             |   23: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_aux
phala-node             |   24: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_using_consensus_failure_handler
phala-node             |   25: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
phala-node             |   26: <polkadot_runtime::RuntimeApiImpl<__SR_API_BLOCK__,RuntimeApiImplCall> as sp_api::Core<__SR_API_BLOCK__>>::__runtime_api_internal_call_api_at
phala-node             |   27: sc_transaction_pool::api::validate_transaction_blocking
phala-node             |   28: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   29: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   30: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
phala-node             |   31: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
phala-node             |   32: tokio::runtime::task::raw::poll
phala-node             |   33: std::sys_common::backtrace::__rust_begin_short_backtrace
phala-node             |   34: core::ops::function::FnOnce::call_once{{vtable.shim}}
phala-node             |   35: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       std::sys::unix::thread::Thread::new::thread_start
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys/unix/thread.rs:108:17
phala-node             |   36: <unknown>
phala-node             |   37: __clone
phala-node             | 
phala-node             | 
phala-node             | Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0xe3c129456626f4e2e3a942af883fff3143ae0102d5d420ff2c2923b38d2db12a"', /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/2dff067/primitives/state-machine/src/ext.rs:189
phala-node             | 
phala-node             | This is a bug. Please report it at:
phala-node             | 
phala-node             |    https://github.com/Phala-Network/khala-parachain/issues/new
phala-node             | 
phala-node             | ./start_node.sh: line 75:     7 Segmentation fault      (core dumped) /usr/local/bin/khala-node --chain $PARACHAIN --base-path $DATA_PATH --database $PARACHAIN_DB --name $NODE_NAME --port $PARACHAIN_PORT --prometheus-port 9615 --rpc-port 9933 --ws-port 9944 --prometheus-external --ws-external --rpc-cors all --no-hardware-benchmarks $PARACHAIN_ROLE_ARGS $PARACHAIN_EXTRA_ARGS -- --chain $RELAYCHAIN --database $RELAYCHAIN_DB --port $RELAYCHAIN_PORT --prometheus-port 9616 --rpc-port 9934 --ws-port 9945 --prometheus-external --ws-external --rpc-cors all --no-hardware-benchmarks $RELAYCHAIN_ROLE_ARGS $RELAYCHAIN_EXTRA_ARGS
phala-node exited with code 139
jasl commented 1 year ago

After having failed, I can't start the node anymore, every time I try to start it, it panics.

phala-node             | 2022-12-14 19:16:32 [Parachain] ⚙️  Preparing  0.0 bps, target=#2905409 (40 peers), best: #2905282 (0x25a1…c8ba), finalized #2905282 (0x25a1…c8ba), ⬇ 53.0kiB/s ⬆ 392.0kiB/s    
phala-node             | 
phala-node             | ====================
phala-node             | 
phala-node             | Version: 0.1.20-dev-12a37ceeee1
phala-node             | 
phala-node             |    0: sp_panic_handler::set::{{closure}}
phala-node             |    1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:2001:9
phala-node             |       std::panicking::rust_panic_with_hook
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:692:13
phala-node             |    2: std::panicking::begin_panic_handler::{{closure}}
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:579:13
phala-node             |    3: std::sys_common::backtrace::__rust_end_short_backtrace
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys_common/backtrace.rs:137:18
phala-node             |    4: rust_begin_unwind
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:575:5
phala-node             |    5: core::panicking::panic_fmt
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/panicking.rs:65:14
phala-node             |    6: core::result::unwrap_failed
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/result.rs:1791:5
phala-node             |    7: <sp_state_machine::ext::Ext<H,B> as sp_externalities::Externalities>::storage
phala-node             |    8: sp_io::storage::get_version_1
phala-node             |    9: sp_io::storage::ExtStorageGetVersion1::call
phala-node             |   10: <F as wasmtime::func::IntoFunc<T,(wasmtime::func::Caller<T>,A1),R>>::into_func::wasm_to_host_shim
phala-node             |   11: <unknown>
phala-node             |   12: <unknown>
phala-node             |   13: <unknown>
phala-node             |   14: <unknown>
phala-node             |   15: <unknown>
phala-node             |   16: <unknown>
phala-node             |   17: <unknown>
phala-node             |   18: wasmtime_runtime::traphandlers::catch_traps::call_closure
phala-node             |   19: wasmtime_setjmp
phala-node             |   20: sc_executor_wasmtime::runtime::perform_call
phala-node             |   21: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call_with_allocation_stats
phala-node             |   22: sc_executor_common::wasm_runtime::WasmInstance::call_export
phala-node             |   23: sc_executor::native_executor::WasmExecutor<H>::with_instance::{{closure}}
phala-node             |   24: <sc_executor::native_executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
phala-node             |   25: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_aux
phala-node             |   26: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_using_consensus_failure_handler
phala-node             |   27: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
phala-node             |   28: <polkadot_runtime::RuntimeApiImpl<__SR_API_BLOCK__,RuntimeApiImplCall> as sp_api::Core<__SR_API_BLOCK__>>::__runtime_api_internal_call_api_at
phala-node             |   29: sc_transaction_pool::api::validate_transaction_blocking
phala-node             |   30: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   31: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   32: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
phala-node             |   33: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
phala-node             |   34: tokio::runtime::task::raw::poll
phala-node             |   35: std::sys_common::backtrace::__rust_begin_short_backtrace
phala-node             |   36: core::ops::function::FnOnce::call_once{{vtable.shim}}
phala-node             |   37: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       std::sys::unix::thread::Thread::new::thread_start
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys/unix/thread.rs:108:17
phala-node             |   38: <unknown>
phala-node             |   39: __clone
phala-node             | 
phala-node             | 
phala-node             | Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0xb3f16c885ea7745fc3b9d95cf0f25bcd0cc059b62153f6091d5fad9e6de6fdd9"', /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/2dff067/primitives/state-machine/src/ext.rs:189
phala-node             | 
phala-node             | This is a bug. Please report it at:
phala-node             | 
phala-node             |  https://github.com/Phala-Network/khala-parachain/issues/new
phala-node             | 
phala-node             | 
phala-node             | ====================
phala-node             | 
phala-node             | Version: 0.1.20-dev-12a37ceeee1
phala-node             | 
phala-node             |    0: sp_panic_handler::set::{{closure}}
phala-node             |    1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:2001:9
phala-node             |       std::panicking::rust_panic_with_hook
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:692:13
phala-node             |    2: std::panicking::begin_panic_handler::{{closure}}
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:579:13
phala-node             |    3: std::sys_common::backtrace::__rust_end_short_backtrace
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys_common/backtrace.rs:137:18
phala-node             |    4: rust_begin_unwind
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/panicking.rs:575:5
phala-node             |    5: core::panicking::panic_fmt
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/panicking.rs:65:14
phala-node             |    6: core::result::unwrap_failed
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/core/src/result.rs:1791:5
phala-node             |    7: <sp_state_machine::ext::Ext<H,B> as sp_externalities::Externalities>::storage
phala-node             |    8: sp_io::storage::get_version_1
phala-node             |    9: sp_io::storage::ExtStorageGetVersion1::call
phala-node             |   10: <F as wasmtime::func::IntoFunc<T,(wasmtime::func::Caller<T>,A1),R>>::into_func::wasm_to_host_shim
phala-node             |   11: <unknown>
phala-node             |   12: <unknown>
phala-node             |   13: <unknown>
phala-node             |   14: <unknown>
phala-node             |   15: <unknown>
phala-node             |   16: wasmtime_runtime::traphandlers::catch_traps::call_closure
phala-node             |   17: wasmtime_setjmp
phala-node             |   18: sc_executor_wasmtime::runtime::perform_call
phala-node             |   19: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call_with_allocation_stats
phala-node             |   20: sc_executor_common::wasm_runtime::WasmInstance::call_export
phala-node             |   21: sc_executor::native_executor::WasmExecutor<H>::with_instance::{{closure}}
phala-node             |   22: <sc_executor::native_executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
phala-node             |   23: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_aux
phala-node             |   24: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_using_consensus_failure_handler
phala-node             |   25: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
phala-node             |   26: <polkadot_runtime::RuntimeApiImpl<__SR_API_BLOCK__,RuntimeApiImplCall> as sp_api::Core<__SR_API_BLOCK__>>::__runtime_api_internal_call_api_at
phala-node             |   27: sc_transaction_pool::api::validate_transaction_blocking
phala-node             |   28: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   29: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
phala-node             |   30: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
phala-node             |   31: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
phala-node             |   32: tokio::runtime::task::raw::poll
phala-node             |   33: std::sys_common::backtrace::__rust_begin_short_backtrace
phala-node             |   34: core::ops::function::FnOnce::call_once{{vtable.shim}}
phala-node             |   35: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/alloc/src/boxed.rs:1987:9
phala-node             |       std::sys::unix::thread::Thread::new::thread_start
phala-node             |              at /rustc/758f19645b8ebce61ea52d1f6672fd057bc8dbee/library/std/src/sys/unix/thread.rs:108:17
phala-node             |   36: <unknown>
phala-node             |   37: __clone
phala-node             | 
phala-node             | 
phala-node             | Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0xe3c129456626f4e2e3a942af883fff3143ae0102d5d420ff2c2923b38d2db12a"', /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/2dff067/primitives/state-machine/src/ext.rs:189
phala-node             | 
phala-node             | This is a bug. Please report it at:
phala-node             | 
phala-node             |  https://github.com/Phala-Network/khala-parachain/issues/new
phala-node             | 
phala-node             | ./start_node.sh: line 75:     7 Segmentation fault      (core dumped) /usr/local/bin/khala-node --chain $PARACHAIN --base-path $DATA_PATH --database $PARACHAIN_DB --name $NODE_NAME --port $PARACHAIN_PORT --prometheus-port 9615 --rpc-port 9933 --ws-port 9944 --prometheus-external --ws-external --rpc-cors all --no-hardware-benchmarks $PARACHAIN_ROLE_ARGS $PARACHAIN_EXTRA_ARGS -- --chain $RELAYCHAIN --database $RELAYCHAIN_DB --port $RELAYCHAIN_PORT --prometheus-port 9616 --rpc-port 9934 --ws-port 9945 --prometheus-external --ws-external --rpc-cors all --no-hardware-benchmarks $RELAYCHAIN_ROLE_ARGS $RELAYCHAIN_EXTRA_ARGS
phala-node exited with code 139

hmmmm.... Really bad luck, you may meet this one https://github.com/paritytech/polkadot/issues/6377

I think I need to make a patch tomorrow

So your node can't work even you restart few times?

jimiflowers commented 1 year ago

Yes, after 6 or 7 restarts It works again. I have set Up a crontab every 15 minutes to check if Pherry is connected to node and restarts processes if not, and It writes a log to know how many times the processes need to be restarted tonight

jimiflowers commented 1 year ago

Hi. 3 restarts during the night, fairly close together:

[2022-12-14 22:00:01] Phala running OK
[2022-12-14 22:15:01] Phala running OK
[2022-12-14 22:30:01] Phala running OK
[2022-12-14 22:45:01] Phala running OK
[2022-12-14 23:00:01] Phala running OK
[2022-12-14 23:15:01] Phala running OK
[2022-12-14 23:30:01] Phala running OK
[2022-12-14 23:45:01] Phala running OK
[2022-12-15 00:00:01] Phala running OK
[2022-12-15 00:15:01] Phala running OK
[2022-12-15 00:30:01] Phala running OK
[2022-12-15 00:45:01] Phala running OK
[2022-12-15 01:00:01] Phala running OK
[2022-12-15 01:15:01] Phala running OK
[2022-12-15 01:30:01] Phala running OK
[2022-12-15 01:45:01] Phala running OK
[2022-12-15 02:00:01] Phala running OK
[2022-12-15 02:15:01] Phala running OK
[2022-12-15 02:30:01] Phala running OK
[2022-12-15 02:45:01] Phala running OK
[2022-12-15 03:00:01] Phala running OK
[2022-12-15 03:15:01] Phala running OK
[2022-12-15 03:30:01] Phala running OK
[2022-12-15 03:45:01] Phala running OK
[2022-12-15 04:00:01] Phala running OK
[2022-12-15 04:15:01] Phala running OK
[2022-12-15 04:30:01] Phala running OK
[2022-12-15 04:45:01] Phala running OK
[2022-12-15 05:00:01] Restarting Phala Processes
Going to remove phala-pherry, phala-headers-cache, phala-pruntime, phala-node
[2022-12-15 05:15:02] Restarting Phala Processes
Going to remove phala-pherry, phala-node, phala-headers-cache, phala-pruntime
[2022-12-15 05:30:01] Phala running OK
[2022-12-15 05:45:01] Phala running OK
[2022-12-15 06:00:01] Restarting Phala Processes
Going to remove phala-pherry, phala-node, phala-pruntime, phala-headers-cache
[2022-12-15 06:15:01] Phala running OK
[2022-12-15 06:30:01] Phala running OK
[2022-12-15 06:45:01] Phala running OK
[2022-12-15 07:00:01] Phala running OK
[2022-12-15 07:15:01] Phala running OK
[2022-12-15 07:30:01] Phala running OK
[2022-12-15 07:45:01] Phala running OK
[2022-12-15 08:00:01] Phala running OK
[2022-12-15 08:15:01] Phala running OK
jasl commented 1 year ago

Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0xb3f16c885ea7745fc3b9d95cf0f25bcd0cc059b62153f6091d5fad9e6de6fdd9"' is a sign of upstream critical bug, I'll patch khala-node later

jimiflowers commented 1 year ago

Hi jasl.

In case it helps you to find the cause of this strange behavior: I see that as Pherry has more blocks synchronized, the connection to the node fails less and less. In addition, the restarts that have been triggered in the last few hours have all been in a short period of time, and the node has been able to work for 7 or 8 hours straight, then having to be restarted 3 or 4 times in one hour (with the cron task every 15 minutes) and then spend another 5 or 6 hours working correctly. However, at the beginning of the Pherry sync (first 200k or 300k blocks) it needed to be restarted at least 1 time every hour or more.

jasl commented 1 year ago

Can you try

jasl123/khala-node:v0.1.20-dev.2
DIGEST:sha256:56d6edd97b9dfd055f9036523059dd4a93c0bb68ec7758d1d9742a513d831011

this one should fix Trie lookup error

jimiflowers commented 1 year ago

jasl123/khala-node:v0.1.20-dev.2 DIGEST:sha256:56d6edd97b9dfd055f9036523059dd4a93c0bb68ec7758d1d9742a513d831011

Ok mate, the node is running with this image. I will let you know any change in the node behaviour.

The first thing I can observe is that the number of peers on the KSM network is very unstable, constantly changing from 10 to 40, but not stabilizing at 40 (as would be normal after several minutes of operation). I guess it is something specific to this compilation you have passed me, isn't it?

jimiflowers commented 1 year ago

Sorry for this offtopic question, have you planned a SGX SDK upgrade in the next pruntime image release to solve the INTEL-SA-00657?

jasl commented 1 year ago

Sorry for this offtopic question, have you planned a SGX SDK upgrade in the next pruntime image release to solve the INTEL-SA-00657?

Unfortunately no, actually we have a new SDK version, but it will break seal decryption which means you will lost your workers info that have to rebuild them. so we decide to stick on old SGX SDK for PRuntime v0

We have considered this situation before, so in our next major PRuntime (release early next year) we have a new handover process. but this feature is hard to backport to V0

jasl commented 1 year ago

The first thing I can observe is that the number of peers on the KSM network is very unstable, constantly changing from 10 to 40, but not stabilizing at 40 (as would be normal after several minutes of operation). I guess it is something specific to this compilation you have passed me, isn't it?

I'm sorry I can't answer you this... it mixing many possible issues, peers count is a block box for me, and even Parity's developers

jimiflowers commented 1 year ago

Sorry for this offtopic question, have you planned a SGX SDK upgrade in the next pruntime image release to solve the INTEL-SA-00657?

Unfortunately no, actually we have a new SDK version, but it will break seal decryption which means you will lost your workers info that have to rebuild them. so we decide to stick on old SGX SDK for PRuntime v0

We have considered this situation before, so in our next major PRuntime (release early next year) we have a new handover process. but this feature is hard to backport to V0

Ok, I can understand this decission.

BTW, the Pherry service keeps disconnecting and still needs a processes restart to work. Occurs every 3 or 4 hours approx.

jasl commented 1 year ago

Sorry for this offtopic question, have you planned a SGX SDK upgrade in the next pruntime image release to solve the INTEL-SA-00657?

Unfortunately no, actually we have a new SDK version, but it will break seal decryption which means you will lost your workers info that have to rebuild them. so we decide to stick on old SGX SDK for PRuntime v0 We have considered this situation before, so in our next major PRuntime (release early next year) we have a new handover process. but this feature is hard to backport to V0

Ok, I can understand this decission.

BTW, the Pherry service keeps disconnecting and still needs a processes restart to work. Occurs every 3 or 4 hours approx.

then I have no idea now...

jimiflowers commented 1 year ago

Hi jasl. I have a new error on Pherry process:

phala-pherry           |     
phala-pherry           |     Caused by:
phala-pherry           |         The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: message too large: len >= 11157135, maximum = 10485760; restart required
phala-pherry           | [2022-12-18T20:31:59.054212Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-18T20:31:59.060183Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-18T20:31:59.133535Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-18T20:31:59.135355Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-18T20:31:59.162828Z INFO  pherry] Connected to parachain node at: ws://phala-node:9944
phala-pherry           | [2022-12-18T20:31:59.263085Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-18T20:31:59.263328Z INFO  pherry] pRuntime already initialized.
phala-pherry           | [2022-12-18T20:31:59.350905Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-18T20:31:59.350940Z INFO  pherry] pRuntime get_info response: PhactoryInfo {
phala-pherry           |         initialized: true,
phala-pherry           |         registered: false,
phala-pherry           |         genesis_block_hash: Some(
phala-pherry           |             "ff93a4a903207ad45af110a3e15f8b66c903a0045f886c528c23fe7064532b08",
phala-pherry           |         ),
phala-pherry           |         public_key: Some(
phala-pherry           |             "565a4dee6aaa1b574ce2292f51ff1c1c7f4dc82b2a5f83da3a57ba0db7e84f46",
phala-pherry           |         ),
phala-pherry           |         ecdh_public_key: Some(
phala-pherry           |             "565a4dee6aaa1b574ce2292f51ff1c1c7f4dc82b2a5f83da3a57ba0db7e84f46",
phala-pherry           |         ),
phala-pherry           |         headernum: 15773204,
phala-pherry           |         para_headernum: 2916912,
phala-pherry           |         blocknum: 2916864,
phala-pherry           |         state_root: "6203ba82e36eb62b6bd21f5aee44c39c707f90bf39ab5db0e379e367c346b2fe",
phala-pherry           |         dev_mode: false,
phala-pherry           |         pending_messages: 0,
phala-pherry           |         score: 0,
phala-pherry           |         gatekeeper: Some(
phala-pherry           |             GatekeeperStatus {
phala-pherry           |                 role: None,
phala-pherry           |                 master_public_key: "",
phala-pherry           |             },
phala-pherry           |         ),
phala-pherry           |         version: "0.2.4",
phala-pherry           |         git_revision: "848b954d581c2fa60b1024cc7f3a1322b4ca027f",
phala-pherry           |         running_side_tasks: 0,
phala-pherry           |         memory_usage: Some(
phala-pherry           |             MemoryUsage {
phala-pherry           |                 rust_used: 127156151,
phala-pherry           |                 rust_peak_used: 201484964,
phala-pherry           |                 total_peak_used: 302870528,
phala-pherry           |             },
phala-pherry           |         ),
phala-pherry           |         number_of_clusters: 0,
phala-pherry           |         number_of_contracts: 0,
phala-pherry           |         waiting_for_paraheaders: false,
phala-pherry           |     }
phala-pherry           | [2022-12-18T20:31:59.351021Z INFO  pherry] blocks fall behind
phala-pherry           | [2022-12-18T20:31:59.351025Z INFO  pherry] batch syncing from 2916864 to 2916911 (48 blocks)
phala-pherry           | [2022-12-18T20:31:59.351030Z INFO  pherry] fetch_storage_changes (2916864-2916867)
phala-pherry           | [2022-12-18T20:31:59.367807Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/2916864/4 (404)
phala-pherry           | [2022-12-18T20:32:02.200442Z WARN  soketto::connection] cbab757d: accumulated message length exceeds maximum
phala-pherry           | [2022-12-18T20:32:02.293665Z ERROR jsonrpsee_core::client::async_client] Error: Connection(MessageTooLarge { current: 11157135, maximum: 10485760 }) terminating client
phala-pherry           | [2022-12-18T20:32:02.293696Z WARN  jsonrpsee_core::client::async_client] Transport(WebSocket connection error: message too large: len >= 11157135, maximum = 10485760
phala-pherry           |     
phala-pherry           |     Caused by:
phala-pherry           |         message too large: len >= 11157135, maximum = 10485760)
phala-pherry           | Runtime update failed with result=Ok(())
phala-pherry           | [2022-12-18T20:32:02.333643Z INFO  pherry] bridge() exited with error: Rpc error: The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: message too large: len >= 11157135, maximum = 10485760; restart required
phala-pherry           |     
phala-pherry           |     Caused by:
phala-pherry           |         The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: message too large: len >= 11157135, maximum = 10485760; restart required

now Pherry sync process is stuck at this point and cannot continue even though I restart it

jimiflowers commented 1 year ago

Hi. Yesterday I had above error on one node, and the other finished pherry sync fine, but now the same error is in both nodes.

jasl commented 1 year ago

Hi jasl. I have a new error on Pherry process:

phala-pherry           |     
phala-pherry           |     Caused by:
phala-pherry           |         The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: message too large: len >= 11157135, maximum = 10485760; restart required
phala-pherry           | [2022-12-18T20:31:59.054212Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-18T20:31:59.060183Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-18T20:31:59.133535Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-18T20:31:59.135355Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-18T20:31:59.162828Z INFO  pherry] Connected to parachain node at: ws://phala-node:9944
phala-pherry           | [2022-12-18T20:31:59.263085Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-18T20:31:59.263328Z INFO  pherry] pRuntime already initialized.
phala-pherry           | [2022-12-18T20:31:59.350905Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-18T20:31:59.350940Z INFO  pherry] pRuntime get_info response: PhactoryInfo {
phala-pherry           |         initialized: true,
phala-pherry           |         registered: false,
phala-pherry           |         genesis_block_hash: Some(
phala-pherry           |             "ff93a4a903207ad45af110a3e15f8b66c903a0045f886c528c23fe7064532b08",
phala-pherry           |         ),
phala-pherry           |         public_key: Some(
phala-pherry           |             "565a4dee6aaa1b574ce2292f51ff1c1c7f4dc82b2a5f83da3a57ba0db7e84f46",
phala-pherry           |         ),
phala-pherry           |         ecdh_public_key: Some(
phala-pherry           |             "565a4dee6aaa1b574ce2292f51ff1c1c7f4dc82b2a5f83da3a57ba0db7e84f46",
phala-pherry           |         ),
phala-pherry           |         headernum: 15773204,
phala-pherry           |         para_headernum: 2916912,
phala-pherry           |         blocknum: 2916864,
phala-pherry           |         state_root: "6203ba82e36eb62b6bd21f5aee44c39c707f90bf39ab5db0e379e367c346b2fe",
phala-pherry           |         dev_mode: false,
phala-pherry           |         pending_messages: 0,
phala-pherry           |         score: 0,
phala-pherry           |         gatekeeper: Some(
phala-pherry           |             GatekeeperStatus {
phala-pherry           |                 role: None,
phala-pherry           |                 master_public_key: "",
phala-pherry           |             },
phala-pherry           |         ),
phala-pherry           |         version: "0.2.4",
phala-pherry           |         git_revision: "848b954d581c2fa60b1024cc7f3a1322b4ca027f",
phala-pherry           |         running_side_tasks: 0,
phala-pherry           |         memory_usage: Some(
phala-pherry           |             MemoryUsage {
phala-pherry           |                 rust_used: 127156151,
phala-pherry           |                 rust_peak_used: 201484964,
phala-pherry           |                 total_peak_used: 302870528,
phala-pherry           |             },
phala-pherry           |         ),
phala-pherry           |         number_of_clusters: 0,
phala-pherry           |         number_of_contracts: 0,
phala-pherry           |         waiting_for_paraheaders: false,
phala-pherry           |     }
phala-pherry           | [2022-12-18T20:31:59.351021Z INFO  pherry] blocks fall behind
phala-pherry           | [2022-12-18T20:31:59.351025Z INFO  pherry] batch syncing from 2916864 to 2916911 (48 blocks)
phala-pherry           | [2022-12-18T20:31:59.351030Z INFO  pherry] fetch_storage_changes (2916864-2916867)
phala-pherry           | [2022-12-18T20:31:59.367807Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/2916864/4 (404)
phala-pherry           | [2022-12-18T20:32:02.200442Z WARN  soketto::connection] cbab757d: accumulated message length exceeds maximum
phala-pherry           | [2022-12-18T20:32:02.293665Z ERROR jsonrpsee_core::client::async_client] Error: Connection(MessageTooLarge { current: 11157135, maximum: 10485760 }) terminating client
phala-pherry           | [2022-12-18T20:32:02.293696Z WARN  jsonrpsee_core::client::async_client] Transport(WebSocket connection error: message too large: len >= 11157135, maximum = 10485760
phala-pherry           |     
phala-pherry           |     Caused by:
phala-pherry           |         message too large: len >= 11157135, maximum = 10485760)
phala-pherry           | Runtime update failed with result=Ok(())
phala-pherry           | [2022-12-18T20:32:02.333643Z INFO  pherry] bridge() exited with error: Rpc error: The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: message too large: len >= 11157135, maximum = 10485760; restart required
phala-pherry           |     
phala-pherry           |     Caused by:
phala-pherry           |         The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: message too large: len >= 11157135, maximum = 10485760; restart required

now Pherry sync process is stuck at this point and cannot continue even though I restart it

This one I shall prepare a new pherry to fix this (today), I know what is this

jimiflowers commented 1 year ago

Ok mate. Let me know when it's ready to test It on my nodes.

jasl commented 1 year ago

Try this

phalanetwork/phala-dev-pherry:22122001 DIGEST:sha256:b49e08f01034d72a6e6c63292b4a5ed3811e019cb7c08da6e445ab1479a0696c

jasl commented 1 year ago

Update: we internal tested it, and push to phalanetwork/phala-pherry:22122001 DIGEST:sha256:b49e08f01034d72a6e6c63292b4a5ed3811e019cb7c08da6e445ab1479a0696c

jimiflowers commented 1 year ago

Hi jasl. Well, one of my nodes is now synced and Pherry is importing new block without problem. The other node has this error, and I wonder if it's a database issue or it's related to the images I'm using.

phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         RPC error: RPC call failed: ErrorObject { code: ServerError(10000), message: "Error occurred while processing the block BlockId::Hash(0x640db3543ae8c7484bcb23f58a3b5e852299fd86bb15285372b7312d55fa0a16): block body not found.", data: None }
phala-pherry           | [2022-12-20T09:35:53.557821Z INFO  pherry] Restarting...
phala-pherry           | [2022-12-20T09:35:53.558909Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9945", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-20T09:35:53.620538Z INFO  pherry] Connected to relaychain at: ws://phala-node:9945
phala-pherry           | [2022-12-20T09:35:53.622831Z INFO  jsonrpsee_client_transport::ws] Connection established to target: Target { sockaddrs: [], host: "phala-node", host_header: "phala-node:9944", _mode: Plain, path_and_query: "/" }
phala-pherry           | [2022-12-20T09:35:53.689308Z INFO  pherry] Connected to parachain node at: ws://phala-node:9944
phala-pherry           | [2022-12-20T09:35:54.037901Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-20T09:35:54.037943Z INFO  pherry] pRuntime already initialized.
phala-pherry           | [2022-12-20T09:35:54.352406Z INFO  phactory_api::pruntime_client] Response: 200 OK
phala-pherry           | [2022-12-20T09:35:54.352440Z INFO  pherry] pRuntime get_info response: PhactoryInfo {
phala-pherry           |         initialized: true,
phala-pherry           |         registered: false,
phala-pherry           |         genesis_block_hash: Some(
phala-pherry           |             "ff93a4a903207ad45af110a3e15f8b66c903a0045f886c528c23fe7064532b08",
phala-pherry           |         ),
phala-pherry           |         public_key: Some(
phala-pherry           |             "565a4dee6aaa1b574ce2292f51ff1c1c7f4dc82b2a5f83da3a57ba0db7e84f46",
phala-pherry           |         ),
phala-pherry           |         ecdh_public_key: Some(
phala-pherry           |             "565a4dee6aaa1b574ce2292f51ff1c1c7f4dc82b2a5f83da3a57ba0db7e84f46",
phala-pherry           |         ),
phala-pherry           |         headernum: 15803813,
phala-pherry           |         para_headernum: 2931503,
phala-pherry           |         blocknum: 2931422,
phala-pherry           |         state_root: "b91ecd8d44561ae3932a8bebad33417069790cececaf3df45719bcba88d35320",
phala-pherry           |         dev_mode: false,
phala-pherry           |         pending_messages: 0,
phala-pherry           |         score: 0,
phala-pherry           |         gatekeeper: Some(
phala-pherry           |             GatekeeperStatus {
phala-pherry           |                 role: None,
phala-pherry           |                 master_public_key: "",
phala-pherry           |             },
phala-pherry           |         ),
phala-pherry           |         version: "0.2.4",
phala-pherry           |         git_revision: "848b954d581c2fa60b1024cc7f3a1322b4ca027f",
phala-pherry           |         memory_usage: Some(
phala-pherry           |             MemoryUsage {
phala-pherry           |                 rust_used: 119121927,
phala-pherry           |                 rust_peak_used: 255031565,
phala-pherry           |                 total_peak_used: 369070080,
phala-pherry           |             },
phala-pherry           |         ),
phala-pherry           |         waiting_for_paraheaders: false,
phala-pherry           |         system: None,
phala-pherry           |         can_load_chain_state: false,
phala-pherry           |     }
phala-pherry           | [2022-12-20T09:35:54.352478Z INFO  pherry] blocks fall behind
phala-pherry           | [2022-12-20T09:35:54.352482Z INFO  pherry] batch syncing from 2931422 to 2931502 (81 blocks)
phala-pherry           | [2022-12-20T09:35:54.352486Z INFO  pherry] fetch_storage_changes (2931422-2931425)
phala-pherry           | [2022-12-20T09:35:54.363489Z INFO  pherry::headers_cache] Requested cache from http://phala-headers-cache:8002/storage-changes/2931422/4 (404)
phala-pherry           | [2022-12-20T09:35:54.367921Z INFO  pherry] bridge() exited with error: Rpc error: RPC error: RPC call failed: ErrorObject { code: ServerError(10000), message: "Error occurred while processing the block BlockId::Hash(0x43b49c6faef1838d49d4e8a217891aa304ee5084062db4df3463183051040536): block body not found.", data: None }
phala-pherry           |
phala-pherry           |     Caused by:
phala-pherry           |         RPC error: RPC call failed: ErrorObject { code: ServerError(10000), message: "Error occurred while processing the block BlockId::Hash(0x43b49c6faef1838d49d4e8a217891aa304ee5084062db4df3463183051040536): block body not found.", data: None }

These are the images the node is using:

REPOSITORY                         TAG       IMAGE ID       CREATED        SIZE
phalanetwork/phala-dev-pherry      latest    2da340715ce3   2 hours ago    398MB
phalanetwork/phala-pherry          latest    2da340715ce3   2 hours ago    398MB
jasl123/khala-node                 latest    5c24ec834dc0   4 days ago     413MB
phalanetwork/khala-node            latest    5c24ec834dc0   4 days ago     413MB
phalanetwork/phala-headers-cache   latest    d9ba6c6c7139   3 months ago   320MB
phalanetwork/phala-sgx_detect      latest    b8f2eedb39c3   5 months ago   333MB
phalanetwork/phala-pruntime        latest    1ba5ade73c9b   7 months ago   342MB
jasl commented 1 year ago

block body not found

I haven't seen block body not found before... if you're running in pruning mode, I suggest try update your headers-cache

jimiflowers commented 1 year ago

block body not found

I haven't seen block body not found before... if you're running in pruning mode, I suggest try update your headers-cache

Yes, that's the first thing I tried before writing here, but all the headers were updated and the error persists.

jimiflowers commented 1 year ago

Any idea on how can I fix this?

jasl commented 1 year ago

Any idea on how can I fix this?

Sorry really don't have idea... I forward the issue to our team, hope my colleagues could know...

jimiflowers commented 1 year ago

Any idea on how can I fix this?

Sorry really don't have idea... I forward the issue to our team, hope my colleagues could know...

Ok, thanks. I have tried to copy the databases from another node that is running, but the issue is still there.

jasl commented 1 year ago

Any idea on how can I fix this?

Sorry really don't have idea... I forward the issue to our team, hope my colleagues could know...

Ok, thanks. I have tried to copy the databases from another node that is running, but the issue is still there.

I still suspect the headers-cache not freshed... but I really haven't seen the error before (if you met block discarded 100% for sure headers-cache not freash)

Parhaps you can use other node directly?