zombienet icon indicating copy to clipboard operation
zombienet copied to clipboard

Beautify the `polkadot: command not found` error

Open wirednkod opened this issue 2 years ago • 0 comments

Make the error below, to provide a "proposing" solution of running setup and/or make sure that the polkadot command is correctly added in the PATH.

Error: Command failed with exit code 127: /bin/bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json
/bin/bash: line 1: polkadot: command not found
    at makeError (/home/wirednkod/Documents/repos/parity/zombienet/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/wirednkod/Documents/repos/parity/zombienet/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  shortMessage: 'Command failed with exit code 127: /bin/bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json',
  command: '/bin/bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json',
  escapedCommand: '"/bin/bash" -c "polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json"',
  exitCode: 127,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: '/bin/bash: line 1: polkadot: command not found',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
Error: Command failed with exit code 127: /bin/bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json
/bin/bash: line 1: polkadot: command not found
    at makeError (/home/wirednkod/Documents/repos/parity/zombienet/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/wirednkod/Documents/repos/parity/zombienet/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  shortMessage: 'Command failed with exit code 127: /bin/bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json',
  command: '/bin/bash -c polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json',
  escapedCommand: '"/bin/bash" -c "polkadot build-spec --chain rococo-local --disable-default-bootnode > /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/cfg/rococo-local-plain.json"',
  exitCode: 127,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: '/bin/bash: line 1: polkadot: command not found',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

	 Node's logs are available in /tmp/zombie-015eaebaf59ef306c6f0250230dda65d_-322338-qPwpUzehoTAB/logs
Error: Command failed with exit code 2: /bin/bash -c kill -9 
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    at makeError (/home/wirednkod/Documents/repos/parity/zombienet/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/wirednkod/Documents/repos/parity/zombienet/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  shortMessage: 'Command failed with exit code 2: /bin/bash -c kill -9 ',
  command: '/bin/bash -c kill -9 ',
  escapedCommand: '"/bin/bash" -c "kill -9 "',
  exitCode: 2,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: 'kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

wirednkod avatar Sep 15 '22 12:09 wirednkod