paritytech / zombienet

A cli tool to easily spawn ephemeral Polkadot/Substrate networks and perform tests against them.
https://paritytech.github.io/zombienet/
GNU General Public License v3.0
159 stars 91 forks source link

Unable to spawn network example using README steps #1855

Closed siddheshzz closed 1 month ago

siddheshzz commented 1 month ago

Hi, I am trying to spawn example network following the readme file and cam across this error.. Is there something I am missing here?

I check the polkadot version as well..not sure what is actual problem here.

tried with ❯ ./zombienet-macos spawn --provider native examples/0001-small-network.toml


zombienet spawn --provider native examples/0001-small-network.toml
╔════════════════════╤════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ 🧟 Zombienet 🧟    │ Initiation                                                                                         ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Provider           │ native                                                                                             ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Namespace          │ zombie-4fca3e92b7f96df45ac4285a036ed130                                                            ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Temp Dir           │ /var/folders/lq/zx_0mjgn7hg543pmc04tgltm0000gn/T/zombie-4fca3e92b7f96df45ac4285a036ed130_-87329-2… ║
╚════════════════════╧════════════════════════════════════════════════════════════════════════════════════════════════════╝
┌─────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Pod                     │ temp                                                                                               │
├─────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Status                  │ Launching                                                                                          │
├─────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Command                 │ bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /var/fo              │
│                         │ lders/lq/zx_0mjgn7hg543pmc04tgltm0000gn/T/zombie-4fca3e92b7f96df45ac4285a036ed130_-87329-2         │
│                         │ pG3FX9HWHiq/cfg/rococo-local-plain.json                                                            │
└─────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
Error:       Error: Command failed with exit code 126: bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /var/folders/lq/zx_0mjgn7hg543pmc04tgltm0000gn/T/zombie-4fca3e92b7f96df45ac4285a036ed130_-87329-2pG3FX9HWHiq/cfg/rococo-local-plain.json
bash: /usr/local/bin/polkadot: cannot execute binary file

undefined
┌────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Node'              │ /var/folders/lq/zx_0mjgn7hg543pmc04tgltm0000gn/T/zombie-4fca3e92b7f96df45ac4285a036ed130_-87329-2… │
│ s logs:            │                                                                                                    │
│ m                  │                                                                                                    │
└────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘

 Error:      Error: Command failed with exit code 1: bash -c kill -9
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

polkadot --version
polkadot 1.15.1-16b0fd09d9e
pepoviola commented 1 month ago

Hi @siddheshzz, thanks for your feedback. Can you review if the polkadot binary have execution permissions.

bash: /usr/local/bin/polkadot: cannot execute binary file

with chmod u+x /usr/local/bin/polkadot should works.

Closing here, please re-open if needed. Thx!!