smol-dot / smoldot

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
GNU General Public License v3.0
188 stars 50 forks source link

Kusama gets stuck #1873

Closed ryanleecode closed 5 months ago

ryanleecode commented 5 months ago

When connecting to kusama it randomly gets stuck on the block in chainspec. But this isn't consistent behaviour between runs

smoldot: 2.0.28

chainspec: https://gist.github.com/ryanleecode/17aeb2a15d2c9137b20dd02a6bcfbbbe

Repro: https://stackblitz.com/~/github.com/ryanleecode/kusama-test

Stuck Logs: https://github.com/ryanleecode/kusama-test/actions/runs/9529257265/job/26267801534#step:7:382

Not Stuck Logs: https://github.com/ryanleecode/kusama-test/actions/runs/9529290166/job/26267875999#step:7:518

tomaka commented 5 months ago

job-logs.txt

CI logs expire

tomaka commented 5 months ago

Looks like the runtime service gets stuck after line 516

EDIT: actually, it doesn't really seem to do much more in the non-stuck logs.

tomaka commented 5 months ago

Interestingly, the tx service doesn't receive updates about the chain in the stuck logs (and does in the non-stuck logs), so it's probably related to the sync service.

EDIT: for reference this comment was wrong, as the tx service subscribes to the runtime service and not to the sync service

tomaka commented 5 months ago

The trace logs would be extremely useful in this case.

ryanleecode commented 5 months ago

Stuck: https://github.com/ryanleecode/kusama-test/actions/runs/9539425660/job/26289736986

raw logs: https://productionresultssa0.blob.core.windows.net/actions-results/75c120b0-95a9-40bc-b9ad-50e8730ac09f/workflow-job-run-e07742bd-189a-5079-918b-43f8b2f94b89/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-06-16T23%3A01%3A31Z&sig=O9WaB3%2B17XB%2F01KAriQm0z%2FM79QOS59wFWY7Nhu4e8c%3D&ske=2024-06-17T09%3A35%3A23Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2024-06-16T21%3A35%3A23Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2023-11-03&sp=r&spr=https&sr=b&st=2024-06-16T22%3A51%3A26Z&sv=2023-11-03


Not Stuck: https://github.com/ryanleecode/kusama-test/actions/runs/9538680966/job/26288168653

raw logs: https://productionresultssa2.blob.core.windows.net/actions-results/d521b6a9-21db-4226-ad9c-6b981bc35d80/workflow-job-run-e07742bd-189a-5079-918b-43f8b2f94b89/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-06-16T23%3A01%3A52Z&sig=nU7YA%2F0Fxi34xJP3OELAitjBd1pAJLCK4L%2FsHrLkPMQ%3D&ske=2024-06-17T09%3A35%3A53Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2024-06-16T21%3A35%3A53Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2023-11-03&sp=r&spr=https&sr=b&st=2024-06-16T22%3A51%3A47Z&sv=2023-11-03

tomaka commented 5 months ago

Stuck Not stuck