Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not sync blocks with node-template #964

Closed
clearloop opened this issue Apr 11, 2022 · 15 comments
Closed

Could not sync blocks with node-template #964

clearloop opened this issue Apr 11, 2022 · 15 comments
Labels
bug Something isn't working

Comments

@clearloop
Copy link

clearloop commented Apr 11, 2022

Versions

logs

client.js:81 [connections] Problem during discovery on dev: NoPeer
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:81 [connections] Problem during discovery on dev: NoPeer
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:81 [connections] Problem during discovery on dev: NoPeer
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:84 [smoldot] Smoldot v0.6.15. Current memory usage: 507 kiB. Average download: 0 B/s. Average upload: 0 B/s.
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:81 [connections] Problem during discovery on dev: NoPeer
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:84 [smoldot] Smoldot v0.6.15. Current memory usage: 507 kiB. Average download: 0 B/s. Average upload: 0 B/s.
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:81 [connections] Problem during discovery on dev: NoPeer
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:84 [smoldot] Smoldot v0.6.15. Current memory usage: 507 kiB. Average download: 0 B/s. Average upload: 0 B/s.
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
client.js:84 [smoldot] Smoldot v0.6.15. Current memory usage: 507 kiB. Average download: 0 B/s. Average upload: 0 B/s.
client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time

# ...waiting for hours

client.js:81 [sync-service-dev] GrandPa warp sync still in progress and taking a long time

Instructions for reproducing

  • chain
./target/release/node-template build-spec --chain=dev --raw > spec.json
./target/release/node-template --tmp --chain=spec.json --alice

> Local node identity is: 12D3KooWEdQyV58Tp2xftjpwYovTWohCom9DQyWLofdvzft7fTWP   
>
> - set "/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHCwVKM8WLYVpzroahKKAueQk1oRBhy3WuDUpdcAgkqk4" as one of the bootnodes to the spec.json
  • app
// index.ts
import { ApiPromise } from '@polkadot/api';
import {
    ScProvider
} from "@polkadot/rpc-provider/substrate-connect"

async function initApi(): Promise<ApiPromise> {
    const spec = JSON.stringify(require("./spec.json"));
    const provider = new ScProvider(JSON.stringify(spec));
    await provider.connect();

    return await ApiPromise.create({ provider });
} 

(async () => {
  const api = await initApi();
})()
@raoulmillais raoulmillais self-assigned this Apr 11, 2022
@raoulmillais
Copy link
Contributor

raoulmillais commented Apr 11, 2022

Not sure what's going on here 🤔 I tried to reproduce this using the substrate-node-template version you tried and it synced fine for me in firefox. Here's the more complete template I used: https://github.com/raoulmillais/sc-issue-964

My logs:

118:30:17.277 [smoldot] Smoldot v0.6.15 [client.js:74](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [smoldot] Chain initialization complete for dev. Name: "Development". Genesis hash: 0x8ae4…3b9d. State root hash: 0xa2b4f3fcde9bf71ca09df536ebc5b2d50115e5c7924a1725ac0193f9dbe358aa. Network identity: 12D3KooWBXqYtLbeGxDA1UyVzbPFhQJce2VPpK8FtYrhLGWz2C4W. Chain specification or database starting at: 0x8ae4…3b9d (#0) [client.js:74](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [runtime-dev] Worker <= Reset(finalized_block: 0x8ae4…3b9d) [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [runtime-dev] Worker => NewDownload(block=0x8ae4…3b9d) [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:0","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:0","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [runtime-dev] Worker <= FailedDownload(blocks=[0x8ae4…3b9d], error=StorageQuery(StorageQueryError { errors: [] })) [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.497 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:0","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.498 [connections] OutSlots(dev) ∋ 12D3KooWCW1GWRh9AZVwSaVLXRRUiw627QHu3YBdi17g6ahfYqUz [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.498 [connections] Pending(PendingId(0), 12D3KooWCW1GWRh9AZVwSaVLXRRUiw627QHu3YBdi17g6ahfYqUz) started: /ip4/127.0.0.1/tcp/30333 [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.498 [connections] Pending(PendingId(0), 12D3KooWCW1GWRh9AZVwSaVLXRRUiw627QHu3YBdi17g6ahfYqUz) => ReachFailed(addr=/ip4/127.0.0.1/tcp/30333, known-unreachable=true, error="Error: TCP connections not available") [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.498 [connections] OutSlots(dev) ∋ 12D3KooWCW1GWRh9AZVwSaVLXRRUiw627QHu3YBdi17g6ahfYqUz [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.498 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:1","jsonrpc":"2.0","method":"chain_subscribeNewHeads","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.502 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:1","jsonrpc":"2.0","method":"chain_subscribeNewHeads","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:17.502 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:1","result":"0"} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:18.498 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:2","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:18.498 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:2","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:18.498 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:2","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:19.499 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:3","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:19.499 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:3","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:19.499 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:3","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:20.500 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:4","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:20.500 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:4","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:20.500 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:4","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:21.501 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:5","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:21.501 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:5","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:21.502 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:5","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:22.502 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:6","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:22.502 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:6","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:22.503 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:6","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:23.503 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:7","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:23.504 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:7","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:23.504 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:7","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:24.505 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:8","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:24.505 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:8","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:24.505 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:8","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:25.506 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:9","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:25.506 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:9","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:25.507 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:9","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:26.508 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:10","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:26.508 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:10","jsonrpc":"2.0","method":"system_health","params":[]} [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:26.508 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:10","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:27.494 [runtime-dev] Worker => NewDownload(block=0x8ae4…3b9d) [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)
18:30:27.494 [runtime-dev] Worker <= FailedDownload(blocks=[0x8ae4…3b9d], error=StorageQuery(StorageQueryError { errors: [] })) [client.js:77](webpack://sc-issue-964/node_modules/@substrate/smoldot-light/dist/client.js)​

We might be able to get a better idea of what's going wrong if you send us the logs including the debug logs. You'll need to make sure they're not filtered out in the chrome / firefox dev console

@clearloop
Copy link
Author

hi @raoulmillais , just retried with your template repo, here is the verbose log:

[runtime-dev] Worker => NewDownload(block=0x2ae7…94e4)
client.js:77 [runtime-dev] Worker <= FailedDownload(blocks=[0x2ae7…94e4], error=StorageQuery(StorageQueryError { errors: [] }))
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:61","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:61","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:61","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:62","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:62","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:62","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:63","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:63","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:63","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:64","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:64","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:64","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:65","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:65","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:65","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:66","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:66","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:66","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:67","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:67","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:67","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:68","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:68","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:68","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:69","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:69","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:69","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:70","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:70","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:70","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [runtime-dev] Worker => NewDownload(block=0x2ae7…94e4)
client.js:77 [runtime-dev] Worker <= FailedDownload(blocks=[0x2ae7…94e4], error=StorageQuery(StorageQueryError { errors: [] }))
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:71","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:71","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:71","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:72","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:72","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:72","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:73","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:73","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:73","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:74","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:74","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:74","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:75","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:75","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:75","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:71 [connections] Problem during discovery on dev: NoPeer
logCallback @ client.js:71
(anonymous) @ client.js:205
worker.onmessage @ index-browser-overwrite.js:16
client.js:71 [sync-service-dev] GrandPa warp sync still in progress and taking a long time
logCallback @ client.js:71
(anonymous) @ client.js:205
worker.onmessage @ index-browser-overwrite.js:16
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:76","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:76","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:76","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:77","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:77","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:77","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:78","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:78","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:78","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:79","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:79","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:79","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:80","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:80","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:80","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [runtime-dev] Worker => NewDownload(block=0x2ae7…94e4)
client.js:77 [runtime-dev] Worker <= FailedDownload(blocks=[0x2ae7…94e4], error=StorageQuery(StorageQueryError { errors: [] }))
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:81","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:81","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:81","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:82","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:82","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:82","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:83","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:83","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:83","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:84","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:84","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:84","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:85","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:85","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:85","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:86","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:86","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:86","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:87","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:87","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:87","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:88","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:88","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:88","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:89","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:89","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:89","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…
client.js:77 [json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:90","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:90","jsonrpc":"2.0","method":"system_health","params":[]}
client.js:77 [json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:90","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal…

@bernardoaraujor
Copy link
Contributor

@raoulmillais I'm also facing this issue

@tomaka
Copy link
Contributor

tomaka commented May 26, 2022

The problem in the OP is that it's missing a /ws in the bootnode address.

Instead of:

/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHCwVKM8WLYVpzroahKKAueQk1oRBhy3WuDUpdcAgkqk4

Should be:

/ip4/127.0.0.1/tcp/30333/ws/p2p/12D3KooWHCwVKM8WLYVpzroahKKAueQk1oRBhy3WuDUpdcAgkqk4

It's also possible that the Substrate node needs to be started to listen for WebSocket addresses, using --listen-addr /ip4/0.0.0.0/tcp/30333/ws.

@bernardoaraujor
Copy link
Contributor

only adding /ws to the bootnode address on the chainspec gives:

[smoldot] Smoldot v0.6.16 [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[smoldot] Chain initialization complete for dev. Name: "Development". Genesis hash: 0xc62e…0bfb. State root hash: 0x42d450bcc84ef8e28bdb67075e068f5ea474eb0b001ab365fdf73010f089ba6c. Network identity: 12D3KooWJofaE2RNbnAYxxrj9XQUfg82DLmaYZLrTz1PRPoa9HwS. Chain specification or database starting at: 0xc62e…0bfb (#0) [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
Firefox can’t establish a connection to the server at ws://127.0.0.1:30333/. [smoldot.js:2455:20](http://localhost:3001/smoldot.js)
[connections] Failed to reach bootnode 12D3KooWMyT3TWbhLsSZPdzRbABbwzPWiKceHtGYUYV5nM6YR39E through /ip4/127.0.0.1/tcp/30333/ws: Error code 1006 [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)

if I add --listen-addr /ip4/0.0.0.0/tcp/30333/ws while starting the node changed the error message to:

[smoldot] Smoldot v0.6.16 [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[smoldot] Chain initialization complete for dev. Name: "Development". Genesis hash: 0xc62e…0bfb. State root hash: 0x42d450bcc84ef8e28bdb67075e068f5ea474eb0b001ab365fdf73010f089ba6c. Network identity: 12D3KooWJgAGV3WgAifHq8zwbV1VkBWfRy1kXWuiNga2SB8XY8Xu. Chain specification or database starting at: 0xc62e…0bfb (#0) [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Problem during discovery on dev: NotConnected [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] GrandPa warp sync still in progress and taking a long time [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Problem during discovery on dev: NotConnected [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)​

@tomaka
Copy link
Contributor

tomaka commented May 27, 2022

When you call connect please do provider.connect({ forceEmbeddedNode: true, embeddedNodeConfig: { maxLogLevel: 4 } }) and provide the full logs here

@bernardoaraujor
Copy link
Contributor

first I'll report something else instead:
every time I do ./target/release/node-template build-spec --raw --dev, the bootnode on the generated chainspec is:

  "bootNodes": [
    "/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWMyT3TWbhLsSZPdzRbABbwzPWiKceHtGYUYV5nM6YR39E"
  ],

which needs to get an extra /ws as said before.

However, every time I start the node-template executable, it starts with a different p2p id:

2022-05-27 09:18:06 🏷  Local node identity is: 12D3KooWJL3dTi9x64rCjxJW1t8q9P7SgTBurM8HCT92WpDF7VfB
---
2022-05-27 09:18:24 🏷  Local node identity is: 12D3KooWDeGbB7mwFRP9FbpoGhyWfvT2AAvpNek7RQ9pFJFrZ3NS
---
2022-05-27 09:18:38 🏷  Local node identity is: 12D3KooWFZhNaTWTtUWY3UTRweeZ6hsSFgi2BuhBviY9XKT3BTmY

so that might be something worth investigating later at substrate-node-template.


so I start the node (with --dev --tmp --listen-addr /ip4/0.0.0.0/tcp/30333/ws) and manually fix the chainspec so the /ws issue is fixed and the p2p id is matching the running node.

also added the suggested provider.connect({ forceEmbeddedNode: true, embeddedNodeConfig: { maxLogLevel: 4 } }).
then, these are the logs:

[smoldot] Smoldot v0.6.16 [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[smoldot] Chain initialization complete for dev. Name: "Development". Genesis hash: 0xc62e…0bfb. State root hash: 0x42d450bcc84ef8e28bdb67075e068f5ea474eb0b001ab365fdf73010f089ba6c. Network identity: 12D3KooWCvp3pJMTaB3QUwgEZMbgQvEAoetRyroL5jH7KfiXz8H6. Chain specification or database starting at: 0xc62e…0bfb (#0) [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while initializing the virtual machine: Unresolved function `env`:`ext_benchmarking_add_to_whitelist_version_1` 38 [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[smoldot_light_base::runtime_service] Unresolved host function in runtime: `env`:`ext_benchmarking_add_to_whitelist_version_1`. Smoldot might encounter errors later on. Please report this issue in https://github.com/paritytech/smoldot [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while initializing the virtual machine: Unresolved function `env`:`ext_benchmarking_add_to_whitelist_version_1` [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Successfully compiled runtime. Spec version: 100. Size of `:code`: 184 kiB. [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while initializing the virtual machine: Unresolved function `env`:`ext_benchmarking_add_to_whitelist_version_1` 18 [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] GrandPa warp sync still in progress and taking a long time [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while initializing the virtual machine: Unresolved function `env`:`ext_benchmarking_add_to_whitelist_version_1` 60 [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] GrandPa warp sync still in progress and taking a long time [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while initializing the virtual machine: Unresolved function `env`:`ext_benchmarking_add_to_whitelist_version_1` 54 [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
Smoldot appears unresponsive while executing task `sync-service-dev`. Please open an issue at https://github.com/paritytech/smoldot/issues. If you have a debugger available, please pause execution, generate a stack trace of the thread that isn't the main execution thread, and paste it in the issue. Please also include any other log found in the console or elsewhere.

@tomaka
Copy link
Contributor

tomaka commented May 27, 2022

It seems that benchmarking is on. This is a feature only used to debug runtime and I don't think it's appropriate for smoldot to support it.

Sorry, this is all issues about Substrate.

@bernardoaraujor
Copy link
Contributor

disabled benchmarking feature by removing runtime-benchmarks = ["node-template-runtime/runtime-benchmarks"] from node/Cargo.toml

now logs are:

[smoldot] Smoldot v0.6.16 [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[smoldot] Chain initialization complete for dev. Name: "Development". Genesis hash: 0xc62e…0bfb. State root hash: 0x42d450bcc84ef8e28bdb67075e068f5ea474eb0b001ab365fdf73010f089ba6c. Network identity: 12D3KooWKAmrf8JT2GiA7QcgE58hjHutB5LffHYHfDQBU6GAXrZv. Chain specification or database starting at: 0xc62e…0bfb (#0) [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= Reset(finalized_block: 0xc62e…0bfb) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker => NewDownload(block=0xc62e…0bfb) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:0","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:0","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= FailedDownload(blocks=[0xc62e…0bfb], error=StorageQuery(StorageQueryError { errors: [] })) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] OutSlots(dev) ∋ 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Pending(PendingId(0), 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF) started: /ip4/127.0.0.1/tcp/30333/ws [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:0","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Pending(PendingId(0), 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF) => Connection(ConnectionId(0)) through /ip4/127.0.0.1/tcp/30333/ws [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:1","jsonrpc":"2.0","method":"chain_subscribeNewHeads","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:1","jsonrpc":"2.0","method":"chain_subscribeNewHeads","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:1","result":"0"} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connected(12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(dev, 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF) => ChainConnectAttemptFailed(error=GenesisMismatch { local_genesis: [198, 46, 12, 22, 242, 151, 50, 96, 5, 0, 222, 17, 85, 49, 218, 45, 78, 201, 168, 163, 126, 150, 27, 82, 125, 57, 178, 238, 6, 45, 11, 251], remote_genesis: [121, 73, 144, 133, 117, 246, 200, 166, 241, 216, 100, 168, 34, 20, 231, 195, 70, 16, 161, 120, 139, 43, 225, 156, 203, 142, 234, 25, 58, 1, 97, 11] }) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] OutSlots(dev) ∌ 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] InSlots(dev) ∋ 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF) => IdentifyRequest [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:2","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:2","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:2","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:3","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:3","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:3","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:4","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:4","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:4","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:5","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:5","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:5","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] On chain dev, discovered: [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:6","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:6","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:6","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:7","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:7","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:7","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:8","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:8","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:8","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:9","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:9","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:9","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:10","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:10","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:10","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] InSlots(dev) ∋ 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker => NewDownload(block=0xc62e…0bfb) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= FailedDownload(blocks=[0xc62e…0bfb], error=StorageQuery(StorageQueryError { errors: [] })) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:11","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:11","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:11","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:12","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:12","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:12","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:13","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:13","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:13","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:14","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:14","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:14","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:15","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:15","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:15","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] GrandPa warp sync still in progress and taking a long time [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] On chain dev, discovered: [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:16","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:16","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:16","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:17","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:17","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:17","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:18","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:18","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:18","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:19","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:19","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:19","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:20","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:20","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:20","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] InSlots(dev) ∋ 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker => NewDownload(block=0xc62e…0bfb) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)

@tomaka
Copy link
Contributor

tomaka commented May 27, 2022

[network] Connection(dev, 12D3KooWEgk9DKRKgrHyx3iaRMMPjgX8RSqZArpZQVTpePRbAeWF) => ChainConnectAttemptFailed(error=GenesisMismatch { local_genesis: [198, 46, 12, 22, 242, 151, 50, 96, 5, 0, 222, 17, 85, 49, 218, 45, 78, 201, 168, 163, 126, 150, 27, 82, 125, 57, 178, 238, 6, 45, 11, 251], remote_genesis: [121, 73, 144, 133, 117, 246, 200, 166, 241, 216, 100, 168, 34, 20, 231, 195, 70, 16, 161, 120, 139, 43, 225, 156, 203, 142, 234, 25, 58, 1, 97, 11] }) smoldot-light.js:44

The chain spec doesn't match the one of the Substrate node.

Maybe start the node with --chain=spec.json

@bernardoaraujor
Copy link
Contributor

I connected an extra full-node by feeding the chainspec to it, and it synced.
Then I also added its multiaddr to the bootNodes list of the chainspec.

[smoldot] Smoldot v0.6.16 [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[smoldot] Chain initialization complete for dev. Name: "Development". Genesis hash: 0xb029…33a8. State root hash: 0xc18f30f3e8ce2ccccbbaf8d4892e387598b0b04d1298513ac3d444b1d42271fa. Network identity: 12D3KooWSv5XfQJr6WP57mN3xW66sHV8e19c9qZViGxqJ5KVwiYY. Chain specification or database starting at: 0xb029…33a8 (#0) [smoldot-light.js:41](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= Reset(finalized_block: 0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker => NewDownload(block=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:0","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:0","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= FailedDownload(blocks=[0xb029…33a8], error=StorageQuery(StorageQueryError { errors: [] })) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] OutSlots(dev) ∋ 12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Pending(PendingId(0), 12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) started: /ip4/127.0.0.1/tcp/30333/ws [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:0","result":{"isSyncing":true,"peers":0,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] OutSlots(dev) ∋ 12D3KooWMwdGojPpAoPLBTSJsCviSgsz18iR6KQD69MZVjq8wHfo [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Pending(PendingId(1), 12D3KooWMwdGojPpAoPLBTSJsCviSgsz18iR6KQD69MZVjq8wHfo) started: /ip4/127.0.0.1/tcp/30334/ws [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:1","jsonrpc":"2.0","method":"chain_subscribeNewHeads","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:1","jsonrpc":"2.0","method":"chain_subscribeNewHeads","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:1","result":"0"} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Pending(PendingId(0), 12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => Connection(ConnectionId(0)) through /ip4/127.0.0.1/tcp/30333/ws [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] Pending(PendingId(1), 12D3KooWMwdGojPpAoPLBTSJsCviSgsz18iR6KQD69MZVjq8wHfo) => Connection(ConnectionId(1)) through /ip4/127.0.0.1/tcp/30334/ws [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connected(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connected(12D3KooWKeSArporDR1xYuzTUgfN47XDd5eP4v8eMmWBg5fgH62X) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk, dev) => ChainConnected(best_height=182, best_hash=0xae0c…b564) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(?, dev) => GrandpaCommitMessage(target_block_hash=0xc665…0f52) 2 [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => GrandpaCommitVerified [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Chain(dev) <= SetLocalGrandpaState(set_id: 0, commit_finalized_height: 0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => GrandpaCommitVerified [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Chain(dev) <= SetLocalGrandpaState(set_id: 0, commit_finalized_height: 0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= InputFinalized(hash=0xb029…33a8, best=0xb029…33a8) 2 [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => IdentifyRequest [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWKeSArporDR1xYuzTUgfN47XDd5eP4v8eMmWBg5fgH62X) => IdentifyRequest [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk, dev) => BlockAnnounce(best_hash=0xc665…0f52, is_best=false) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync <= BlockAnnounce(sender=12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk, hash=0xc665…0f52, is_best=false, parent_hash=0xcfcc…f260) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => Discarded [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(?, dev) => GrandpaCommitMessage(target_block_hash=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => GrandpaCommitVerified [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Chain(dev) <= SetLocalGrandpaState(set_id: 0, commit_finalized_height: 0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= InputFinalized(hash=0xb029…33a8, best=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:2","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:2","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:2","result":{"isSyncing":true,"peers":1,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:3","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:3","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:3","result":{"isSyncing":true,"peers":1,"shouldHavePeers":fals… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(?, dev) => GrandpaCommitMessage(target_block_hash=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => GrandpaCommitVerified [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Chain(dev) <= SetLocalGrandpaState(set_id: 0, commit_finalized_height: 0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= InputFinalized(hash=0xb029…33a8, best=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xc665…0f52) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found.

these specific lines got my attention:

[runtime-dev] Worker <= FailedDownload(blocks=[0xb029…33a8], error=StorageQuery(StorageQueryError { errors: [] })) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
---
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)

I let it run for a while, and eventually it hit this:

[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xe5e4…63a0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xe5e4…63a0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] GrandPa warp sync still in progress and taking a long time [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk, dev) => BlockAnnounce(best_hash=0xe015…8065, is_best=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(?, dev) => GrandpaCommitMessage(target_block_hash=0xe5e4…63a0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync <= BlockAnnounce(sender=12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk, hash=0xe015…8065, is_best=true, parent_hash=0x90cd…ecc0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => Discarded [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Sync => GrandpaCommitVerified [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Chain(dev) <= SetLocalGrandpaState(set_id: 0, commit_finalized_height: 0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[runtime-dev] Worker <= InputFinalized(hash=0xb029…33a8, best=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= StorageProofRequest(chain=dev, block=0xe5e4…63a0) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[connections] On chain dev, discovered: 12D3KooWKeSArporDR1xYuzTUgfN47XDd5eP4v8eMmWBg5fgH62X, 12D3KooWMwdGojPpAoPLBTSJsCviSgsz18iR6KQD69MZVjq8wHfo [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => StorageProofRequest(chain=dev, num_elems=5, total_size=152 kiB) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[sync-service-dev] Error during GrandPa warp syncing: Error while starting the virtual machine: Function to start was not found. [smoldot-light.js:38](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) <= GrandpaWarpSyncRequest(chain=dev, start=0xb029…33a8) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue <= {"id":"health-checker:15","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] PendingRequestsQueue => {"id":"health-checker:15","jsonrpc":"2.0","method":"system_health","params":[]} [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[json-rpc-dev] JSON-RPC <= {"jsonrpc":"2.0","id":"health-checker:15","result":{"isSyncing":true,"peers":1,"shouldHavePeers":fal… [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
[network] Connection(12D3KooWJnCh5Dekd8yrNwBXckSmRs6SppzBbXH6ACWr3cnzV7Hk) => GrandpaWarpSyncRequest(chain=dev, num_fragments=1, finished=true) [smoldot-light.js:44](webpack://test/node_modules/@substrate/connect/dist/connector/smoldot-light.js)
Smoldot has panicked while executing task `network-events`. This is a bug in smoldot. Please open an issue at https://github.com/paritytech/smoldot/issues with the following message:
Error: Error: panicked at 'explicit panic', src/network/service/addresses.rs:102:22 [client.js:229](webpack://test/node_modules/@substrate/smoldot-light/dist/client.js)
Error: panicked at 'explicit panic', src/network/service/addresses.rs:102:22 [smoldot.js:2690:19](http://localhost:3001/smoldot.js)
Smoldot has panicked while executing task `network-events`. This is a bug in smoldot. Please open an issue at https://github.com/paritytech/smoldot/issues with the following message:
Error: Error: panicked at 'called `Result::unwrap()` on an `Err` value: "WouldBlock"', bin/wasm-node/rust/src/init.rs:258:57 [client.js:229](webpack://test/node_modules/@substrate/smoldot-light/dist/client.js)
Error: panicked at 'called `Result::unwrap()` on an `Err` value: "WouldBlock"', bin/wasm-node/rust/src/init.rs:258:57 [smoldot.js:2690:19](http://localhost:3001/smoldot.js)
Uncaught CrashError: Error: Error: panicked at 'called `Result::unwrap()` on an `Err` value: "WouldBlock"', bin/wasm-node/rust/src/init.rs:258:57
    CrashError types.js:9
    transformErrors smoldot-light.js:97
    sendJsonRpc smoldot-light.js:120
    startHealthRequest Health.js:201
    setTimeout handler*update Health.js:212
    responsePassThrough Health.js:132
    responsePassThrough Health.js:47
    onResponse ScProvider.js:70
    node_modules vendors-node_modules_substrate_smoldot-light_dist_index_js.js:154
    node_modules vendors-node_modules_substrate_smoldot-light_dist_index_js.js:369
    workerOnMessage index-browser-overwrite.js:16
    start client.js:130
    node_modules main.js:56442
    promise callback*getClientAndIncRef smoldot-light.js:23
    addChain smoldot-light.js:111
    connect ScProvider.js:99
    onload index.ts:10
    onload index.ts:19
    ts index.ts:4
    Webpack 3

@tomaka
Copy link
Contributor

tomaka commented May 28, 2022

Ahh, I see, it's because the node template uses Aura but smoldot can only warp sync Babe.

cc paritytech/smoldot#933

@bernardoaraujor
Copy link
Contributor

was this substrate-node-template.json chainspec being used for the full node implementation only?

@tomaka
Copy link
Contributor

tomaka commented Jun 2, 2022

The chain specs in the smoldot repo are just for testing, they're not "used"

@wirednkod wirednkod added the bug Something isn't working label Jul 28, 2022
@tomaka
Copy link
Contributor

tomaka commented Oct 12, 2022

Smoldot supports Aura warp syncing since v0.6.28, released in August, so this should now work.

@tomaka tomaka closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants