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

Zombienet command is not working. Getting Error parsing spec file #1914

Open
ashi20192020 opened this issue Oct 27, 2024 · 2 comments
Open

Comments

@ashi20192020
Copy link

Hello Team,

I have a solochain that I'm trying to run using zombienet with a simple script. Everything works fine until I make any modifications to the chain.

Here is my block-building.toml:

[relaychain]
default_command = "./target/release/example"
chain = "local"

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

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

Here is the command:

./zombienet-macos-arm64 -p native spawn ./zombienet/0000-block-building/block-building.toml

However, whenever I add a new pallet, which utilizes offchain-worker and session-handler, I encounter the following error while running Zombienet:

Error: Service(Other("Error parsing spec file: missing field `pallet_new_template` at line 102 column 13"))

I also want to highlight one more thing:

As I mentioned earlier, my new pallet introduces offchain-worker and session-handler, which adds a new session key to the chain.

Could this change be related to the issues I'm experiencing with Zombienet? If so, I would appreciate any help in resolving this.

Thanks for your assistance!

@ashi20192020
Copy link
Author

I wanted to share an observation regarding the spec generation in zombienet.

I've noticed that zombienet generates specs in two locations: one inside the cfg folder and another outside of it. When converting to a raw spec, zombienet seems to be picking the version outside the cfg folder.

When I manually convert the raw spec from outside cfg, I encounter the same issue. However, converting the raw spec from inside cfg works without any problems.

I’m unsure why zombienet is not selecting the spec from inside the cfg folder. Could you help me understand this behavior?

@ashi20192020
Copy link
Author

@pepoviola Can you help me with this issue? 🙏

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

No branches or pull requests

1 participant