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

Unrecognized subcommand 'export-genesis-state' #1882

Open
magecnion opened this issue Sep 27, 2024 · 3 comments
Open

Unrecognized subcommand 'export-genesis-state' #1882

magecnion opened this issue Sep 27, 2024 · 3 comments
Labels
question Further information is requested

Comments

@magecnion
Copy link

magecnion commented Sep 27, 2024

Issue Description

I'm trying to run the Zombienet environment with a collator using the Frontier runtime.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Build frontier with polkadot-sdk v1.11.0
  2. Run zombienet with the following configuration:
[settings]
timeout = 1000

[relaychain]
default_image = "paritypr/polkadot-debug:master"
chain = "rococo-local"

  [[relaychain.nodes]]
  name = "alice"

  [[relaychain.nodes]]
  name = "bob"

[[parachains]]
id = 100

  [parachains.collator]
  name = "collator01"
  command =  "/frontier/target/release/frontier-template-node"

Describe the results you received

error: unrecognized subcommand 'export-genesis-state'

  tip: a similar subcommand exists: 'export-state'

Usage: frontier-template-node [OPTIONS]
       frontier-template-node <COMMAND>

For more information, try '--help'

Describe the results you expected

It should run a network with a collator that includes the frontier runtime.

Zombienet version

1.3.110

Provider

Native

Provider version

## For binaries
- polkadot: image from `paritypr/polkadot-debug:master`
- polkadot-parachain: https://github.com/polkadot-evm/frontier/tree/polkadot-v1.11.0

Upstream Latest Release

Yes

@pepoviola
Copy link
Collaborator

Hi @magecnion, I think the issue is that the needed subcommands are not available in the collator binary.

	/// Export the genesis state of the parachain.
	#[command(alias = "export-genesis-state")]
	ExportGenesisHead(cumulus_client_cli::ExportGenesisHeadCommand),

	/// Export the genesis wasm of the parachain.
	ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand),

Does this binary works before with zombienet?

@pepoviola pepoviola added the question Further information is requested label Sep 27, 2024
@pepoviola
Copy link
Collaborator

You can set the wasm/head of the parachain using this keys (at parachain level)

genesis_wasm_path = "<path to wasm>"
genesis_state_path = "<path to head/state>"

e.g

[[parachains]]
id = 100
genesis_wasm_path = "<path to wasm>"
genesis_state_path = "<path to head/state>"

  [parachains.collator]
  name = "collator01"
  command =  "/frontier/target/release/frontier-template-node"

Thx!

@magecnion
Copy link
Author

Hi @magecnion, I think the issue is that the needed subcommands are not available in the collator binary.

	/// Export the genesis state of the parachain.
	#[command(alias = "export-genesis-state")]
	ExportGenesisHead(cumulus_client_cli::ExportGenesisHeadCommand),

	/// Export the genesis wasm of the parachain.
	ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand),

Does this binary works before with zombienet?

It is the first time I am trying to run Frontier binary with Zombienet, but looking at previous versions, it doesn't include those commands either.

You can set the wasm/head of the parachain using this keys (at parachain level)

genesis_wasm_path = "<path to wasm>"
genesis_state_path = "<path to head/state>"

e.g

[[parachains]]
id = 100
genesis_wasm_path = "<path to wasm>"
genesis_state_path = "<path to head/state>"

  [parachains.collator]
  name = "collator01"
  command =  "/frontier/target/release/frontier-template-node"

Thx!

Because of what was stated in the previous comment, I'm not able to produce WASM and state manually. I could implement those commands in Frontier. However, I'm getting another error:

image

I think it is because the Frontier node has no integration with parachain code (aka Cumulus), so I guess there is no easy workaround to get this working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants