-
Notifications
You must be signed in to change notification settings - Fork 23
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
502 Bad Gateway when connecting to RPC #16
Comments
I am also facing same issue RPC is not working |
Getting same issue |
Hey @Gauravk0029 / @sohan-pelqa / @ajruizvargas can you let me know what command you were using to access the RPC? I would also ssh into any particular validator or fullnode and double check that edge is running with In my case, I just ran through the full process this evening while doing some testing on mumbai: |
@praetoriansentry edge service not starting error is
And Service not starting due to this error |
Hello @praetoriansentry, yes my bootstarp script is not work properly And not install node when i run script and quick deployment faced same error. Can you please check bootstarp.sh file. |
@praetoriansentry yes , when i run the ansible playbook, script is not deploying. When i try to run manual through validatore node it's giving errors like below: fatal: [i-03a65600a90ed31b3]: 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:07.295354", "end": "2023-05-17 10:52:21.876678", "msg": "non-zero return code", "rc": 1, "start": "2023-05-17 10:52:14.581324", "stderr": "cat: genesis.json: No such file or directory\nnpm WARN deprecated [email protected]: this library is no longer supported\nnpm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.\nnpm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.\nnpm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142\nnpm WARN deprecated [email protected]: This module has been superseded by the multiformats module\nnpm WARN deprecated [email protected]: This module has been superseded by the multiformats module\nnpm WARN deprecated [email protected]: This module has been superseded by the multiformats module\nnpm WARN deprecated [email protected]: This module has been superseded by the multiformats module\nnpm WARN deprecated [email protected]: This module has been superseded by the multiformats module\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:746:22)\n at Object._executeMethod (/var/lib/bootstrap/node_modules/web3-eth-contract/lib/index.js:762: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", "npm WARN deprecated [email protected]: this library is no longer supported", "npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.", "npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", "npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142", "npm WARN deprecated [email protected]: This module has been superseded by the multiformats module", "npm WARN deprecated [email protected]: This module has been superseded by the multiformats module", "npm WARN deprecated [email protected]: This module has been superseded by the multiformats module", "npm WARN deprecated [email protected]: This module has been superseded by the multiformats module", "npm WARN deprecated [email protected]: This module has been superseded by the multiformats module", "/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:746:22)", " at Object._executeMethod (/var/lib/bootstrap/node_modules/web3-eth-contract/lib/index.js:762:68)", " at file:///var/lib/bootstrap/deploy-and-run.js:19:102", "", "Node.js v18.16.0"], "stdout": "\nadded 335 packages, and audited 336 packages in 7s\n\n53 packages are looking for funding\n run |
I think there are different issues going on for different people. I think it's best if in each case you destroy your current environment and do a full reprovision based on the latest code in I would try pulling the latest code and resetting your environment. |
@praetoriansentry Thanks for your update, i have setup the mumbai testnet branch and it's working fine. Now i will also try with main branch. |
I ran the playbook and it seems that it ran successfully. When I try to connect to the RPC I get 502 Bad Gateway error. Any ideas why this is happening?
The text was updated successfully, but these errors were encountered: