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 TOML file error when setting up a local relaychain #116

Closed
chungquantin opened this issue Apr 21, 2024 · 4 comments
Closed

Zombienet TOML file error when setting up a local relaychain #116

chungquantin opened this issue Apr 21, 2024 · 4 comments
Labels
bug Something isn't working parachain Features related to parachain functionality

Comments

@chungquantin
Copy link

I followed the instructions from the latest Getting Started step in the README file and got an error: Error thrown when running pop up parachain -f ./zombienet-config.toml with zombienet-config.toml is a generated toml config file for Zombienet after running pop new parachain my-app fpt

◇  Sourcing complete.
│
◐  🚀 Launching local network...                                                                                                                                   └  Could not spawn network: TOML parse error at line 30, column 11
   |
30 |   args = [""]
   |           ^^
the provided argument is invalid and doesn't match Arg::Option or Arg::Flag
@AlexD10S
Copy link
Collaborator

Thanks for trying pop-cli and reporting the issue.
We are not parsing property the Zombienet config file of the Frontier Parachain Template: https://github.com/paritytech/frontier-parachain-template/blob/main/zombienet-config.toml

I am going to fix it, but in the meantime if you remove the line args = [""] in the /zombienet-config.toml should work

@chungquantin
Copy link
Author

chungquantin commented Apr 22, 2024

@AlexD10S After removing that line and I did try to create the contract node instead of evm compatible chain with the command pop new parachain cpt but both returning this bug below:

┌   Pop CLI : Deploy a parachain
│
Error: error decoding response body: invalid type: map, expected a sequence at line 1 column 0

Caused by:
    invalid type: map, expected a sequence at line 1 column 0

Seems like another issue with the file parser.

@AlexD10S
Copy link
Collaborator

I wasn't able to replicate your issue, can you share the .toml file?.

For fpt parachain, it worked for me removing args = [""] . I opened an issue in Zombienet-SDK repository paritytech/zombienet-sdk#202 and the decision was to create a PR to remove args = [""] in the template parity repository, so hopefully will be fixed soon.

For the cpt parachain I am getting a different error:

Could not spawn network: Orchestrator error: Provider error: File generation failed: Error: Input("Error opening spec file `contracts-parachain-local`: No such file or directory (os error 2)")

I am investigating it, but the repository, seems to be unmantained, so we will deprecate this parachains soon in favour of new EVM and Contracts templates chains.

@AlexD10S AlexD10S added bug Something isn't working parachain Features related to parachain functionality labels May 22, 2024
@AlexD10S
Copy link
Collaborator

AlexD10S commented Jul 1, 2024

We are deprecating Parity templates in favor of Pop ones:
Captura de pantalla 2024-07-01 a las 10 05 47

To generate a contracts parachain and run it:

pop new parachain my_parachain -t contracts`
cd my_parachain
pop up parachain -f ./zombienet-config.toml

For evm parachain and run it:

pop new parachain evm_parachain -t evm`
cd evm_parachain
pop up parachain -f ./zombienet-config.toml

Both works !

@AlexD10S AlexD10S closed this as completed Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parachain Features related to parachain functionality
Projects
None yet
Development

No branches or pull requests

2 participants