terraform-polygon-supernets icon indicating copy to clipboard operation
terraform-polygon-supernets copied to clipboard

Contract address missing

Open imarkus8787 opened this issue 1 year ago • 0 comments

When running run.sh get this errors after passing multiple ansible Task

TASK [edge : Execute deploy and run script on the first validator] ****************************************************************** skipping: [i-029da648f72eca49e] skipping: [i-05c1dc647f0ab13ca] skipping: [i-07cc225ea7b1f8cfd] fatal: [i-0c21d328536a23815]: FAILED! => {"changed": true, "cmd": "cd /var/lib/bootstrap\nexport PRIVATE_KEY=$(cat rootchain-wallet.json | jq -r '.HexPrivateKey')\nexport NATIVE_ERC20_ADDR=$(cat genesis.json | jq -r '.params.engine.polybft.bridge.nativeERC20Address') \nnpm install\nnode /var/lib/bootstrap/deploy-and-run.js > /var/lib/bootstrap/run-deploy-output.txt\n", "delta": "0:00:01.575812", "end": "2023-05-03 20:40:24.947238", "msg": "non-zero return code", "rc": 1, "start": "2023-05-03 20:40:23.371426", "stderr": "cat: genesis.json: No such file or directory\n/var/lib/bootstrap/node_modules/web3-core-helpers/lib/errors.js:125\n return new Error('This contract object doesn't have address set yet, please set an address first.');\n ^\n\nError: This contract object doesn't have address set yet, please set an address first.\n at Object.ContractNoAddressDefinedError (/var/lib/bootstrap/node_modules/web3-core-helpers/lib/errors.js:125:16)\n at Object._processExecuteArguments (/var/lib/bootstrap/node_modules/web3-eth-contract/lib/index.js:729:22)\n at Object._executeMethod (/var/lib/bootstrap/node_modules/web3-eth-contract/lib/index.js:745:68)\n at file:///var/lib/bootstrap/deploy-and-run.js:19:102\n\nNode.js v18.16.0", "stderr_lines": ["cat: genesis.json: No such file or directory", "/var/lib/bootstrap/node_modules/web3-core-helpers/lib/errors.js:125", " return new Error('This contract object doesn't have address set yet, please set an address first.');", " ^", "", "Error: This contract object doesn't have address set yet, please set an address first.", " at Object.ContractNoAddressDefinedError (/var/lib/bootstrap/node_modules/web3-core-helpers/lib/errors.js:125:16)", " at Object._processExecuteArguments (/var/lib/bootstrap/node_modules/web3-eth-contract/lib/index.js:729:22)", " at Object._executeMethod (/var/lib/bootstrap/node_modules/web3-eth-contract/lib/index.js:745:68)", " at file:///var/lib/bootstrap/deploy-and-run.js:19:102", "", "Node.js v18.16.0"], "stdout": "\nup to date, audited 335 packages in 854ms\n\n52 packages are looking for funding\n run npm fund for details\n\n6 moderate severity vulnerabilities\n\nTo address all issues (including breaking changes), run:\n npm audit fix --force\n\nRun npm audit for details.", "stdout_lines": ["", "up to date, audited 335 packages in 854ms", "", "52 packages are looking for funding", " run npm fund for details", "", "6 moderate severity vulnerabilities", "", "To address all issues (including breaking changes), run:", " npm audit fix --force", "", "Run npm audit for details."]}

imarkus8787 avatar May 03 '23 22:05 imarkus8787