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

omni-node: Cannot try_into() to Metadata: unsupported metadata version #6921

Closed
bkontur opened this issue Dec 17, 2024 · 0 comments · Fixed by #6923
Closed

omni-node: Cannot try_into() to Metadata: unsupported metadata version #6921

bkontur opened this issue Dec 17, 2024 · 0 comments · Fixed by #6923
Assignees

Comments

@bkontur
Copy link
Contributor

bkontur commented Dec 17, 2024

How to reproduce:

cd <polkadot-sdk-root>
# build on master
cargo build --profile=production -p polkadot-omni-node -p polkadot-parachain-bin

Run just with AssetHubWestend spec:

~/polkadot-sdk$ ./target/production/polkadot-omni-node --chain cumulus/polkadot-parachain/chain-specs/asset-hub-westend.json
2024-12-17 11:06:56 polkadot-omni-node    
2024-12-17 11:06:56 ✌️  version 0.1.0-5b04b4598cc    
2024-12-17 11:06:56 ❤️  by Parity Technologies <[email protected]>, 2017-2024    
2024-12-17 11:06:56 📋 Chain specification: Westend Asset Hub    
2024-12-17 11:06:56 🏷  Node name: profuse-burn-5169    
2024-12-17 11:06:56 👤 Role: FULL    
2024-12-17 11:06:56 💾 Database: RocksDb at /home/bkontur/.local/share/polkadot-omni-node/chains/asset-hub-westend/db/full    
Error: 
   0: Cannot try_into() to Metadata: unsupported metadata version

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

The same for polkadot-parachain-bin works:

~/polkadot-sdk$ ./target/production/polkadot-parachain --chain cumulus/polkadot-parachain/chain-specs/asset-hub-westend.json
2024-12-17 11:07:37 polkadot-parachain    
2024-12-17 11:07:37 ✌️  version 4.0.0-5b04b4598cc    
2024-12-17 11:07:37 ❤️  by Parity Technologies <[email protected]>, 2017-2024    
2024-12-17 11:07:37 📋 Chain specification: Westend Asset Hub    
2024-12-17 11:07:37 🏷  Node name: pathetic-reading-6837    
2024-12-17 11:07:37 👤 Role: FULL    
2024-12-17 11:07:37 💾 Database: RocksDb at /home/bkontur/.local/share/polkadot-parachain/chains/asset-hub-westend/db/full    
2024-12-17 11:07:39 🪪 Parachain id: Id(1000)    
2024-12-17 11:07:39 🧾 Parachain Account: 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ    
2024-12-17 11:07:39 ✍️ Is collating: no    
2024-12-17 11:07:39 [Parachain]  creating SingleState txpool Limit { count: 8192, total_bytes: 20971520 }/Limit { count: 819, total_bytes: 2097152 }.    
2024-12-17 11:07:39 [Relaychain]  creating SingleState txpool Limit { count: 8192, total_bytes: 20971520 }/Limit { count: 819, total_bytes: 2097152 }.    
2024-12-17 11:07:39 [Relaychain] 👶 Creating empty BABE epoch changes on what appears to be first startup.    
2024-12-17 11:07:39 [Relaychain] 🏷  Local node identity is: 12D3KooWNzVGrrSDRhp7zQnZhWSJmU9nqAYSHGbwr9c2bJWowXhg    
2024-12-17 11:07:39 [Relaychain] Running libp2p network backend    
2024-12-17 11:07:39 [Relaychain] local_peer_id=12D3KooWNzVGrrSDRhp7zQnZhWSJmU9nqAYSHGbwr9c2bJWowXhg
2024-12-17 11:07:39 [Relaychain] discovered peer on address peer=12D3KooWJF2xDhsFDU9X3N2NXMLZrRuMfEQGEh9ezJQto1hERMhj address=/ip4/192.168.3.242/tcp/30333/ws/p2p/12D3KooWJF2xDhsFDU9X3N2NXMLZrRuMfEQGEh9ezJQto1hERMhj
2024-12-17 11:07:39 [Relaychain] discovered peer on address peer=12D3KooWJF2xDhsFDU9X3N2NXMLZrRuMfEQGEh9ezJQto1hERMhj address=/ip4/192.168.4.241/tcp/30333/ws/p2p/12D3KooWJF2xDhsFDU9X3N2NXMLZrRuMfEQGEh9ezJQto1hERMhj
2024-12-17 11:07:39 [Relaychain] 💻 Operating system: linux    
2024-12-17 11:07:39 [Relaychain] 💻 CPU architecture: x86_64
...
2024-12-17 11:09:14 [Relaychain] ⚙️  Syncing, target=#23916707 (2 peers), best: #1544 (0x5942…5680), finalized #1536 (0x5255…8726), ⬇ 104.4kiB/s ⬆ 9.1kiB/s    
2024-12-17 11:09:14 [Parachain] assembling new collators for new session 5 at #7200    
2024-12-17 11:09:14 [Parachain] ⚙️  Syncing, target=#10154047 (9 peers), best: #7213 (0x348d…3fc4), finalized #0 (0x67f9…98c9), ⬇ 2.1MiB/s ⬆ 6.7kiB/s  
github-merge-queue bot pushed a commit that referenced this issue Dec 17, 2024
#6450 introduced metadata checks. Supported are metadata v14 and higher.

However, of course old chain-specs have a genesis code blob that might
be on older version. This needs to be tolerated. We should just skip the
checks in that case.

Fixes #6921

---------

Co-authored-by: command-bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants