You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contract Deployment Fails with "Connection Refused" Error When Running Zilliqa Node Manually
Description:
I am running a Zilliqa node using the following command:
$ RUST_LOG=zilliqa=warn,zilliqa=info ./target/debug/zilliqa 65d7f4da9bedc8fb79cbf6722342960bbdfb9759bc0d9e3fb4989e831ccbc227 -c config-single-node.toml 2>&1
2024-10-11T11:06:21.328011Z INFO zilliqa::p2p_node: 99: peer_id=12D3KooWESMZ2ttSxDwjfnNe23sHCqsJf6sNEKwgHkdgtCHDsbWU
2024-10-11T11:06:21.849639Z INFO zilliqa::node_launcher: 138: JSON-RPC server listening on port 4201
This approach to run the node is based on the script from Zilliqa's repo.
When trying to deploy a contract using the GoZilliqa SDK, I encounter the following logs:
Contract Deployment Fails with "Connection Refused" Error When Running Zilliqa Node Manually
Description:
I am running a Zilliqa node using the following command:
$ RUST_LOG=zilliqa=warn,zilliqa=info ./target/debug/zilliqa 65d7f4da9bedc8fb79cbf6722342960bbdfb9759bc0d9e3fb4989e831ccbc227 -c config-single-node.toml 2>&1 2024-10-11T11:06:21.328011Z INFO zilliqa::p2p_node: 99: peer_id=12D3KooWESMZ2ttSxDwjfnNe23sHCqsJf6sNEKwgHkdgtCHDsbWU 2024-10-11T11:06:21.849639Z INFO zilliqa::node_launcher: 138: JSON-RPC server listening on port 4201
This approach to run the node is based on the script from Zilliqa's repo.
When trying to deploy a contract using the GoZilliqa SDK, I encounter the following logs:
especially this:
error=Transport(Http(Stream(hyper_util::client::legacy::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))))
The error message indicates a
Connection Refused
issue, and the transaction fails. However, the transaction is reported as processed in the response:When I start the Zilliqa node using
docker compose up
, the contract deploys successfully, and no such connection issue occurs.Possible Issue:
Can you please help clarify the source of this connection refusal error when manually starting the node, and suggest a fix or workaround?
The text was updated successfully, but these errors were encountered: