Relay node unable to connect to block producing node

Hello all,

My block producing node is able to connect to the relay node(I can see my relay node as peer in block producing node). On the other hand my relay node is not able to connect my block producing node, where I get the following error:

[ip-172-3:cardano.node.IpSubscription:Info:53] [2020-10-18 17:13:45.25 UTC] [String "Trying to connect to xx.xx.xx.xx:8003",String "[xx.xx.xx.xx:8003]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Info:157] [2020-10-18 17:13:45.25 UTC] [String "Connection Attempt Start, destination xx.xx.xx.xx:8003",String "[xx.xx.xx.xx:8003]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Notice:53] [2020-10-18 17:13:45.25 UTC] [String "Waiting 0.025s before attempting a new connection",String "[xx.xx.xx.xx:8003]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Notice:157] [2020-10-18 17:13:45.25 UTC] [String "Connection Attempt End, destination xx.xx.xx.xx:8003 outcome: ConnectSuccessLast",String "[xx.xx.xx.xx:8003]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Info:157] [2020-10-18 17:13:45.26 UTC] [String "Closed socket to xx.xx.xx.xx:8003",String "[xx.xx.xx.xx:8003]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Error:53] [2020-10-18 17:13:45.27 UTC] [String "Failed to start all required subscriptions",String "[xx.xx.xx.xx:8003]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]

xx.xx.xx.xx is the public IP of my BP node
My mainnet-topology.json file for the relay node.

{
  "Producers": [
    {
      "addr": "xx.xx.xx.xx",
      "port": 8003,
      "valency": 1
    },
    {
      "addr": "relays-new.cardano-mainnet.iohk.io",
      "port": 3001,
      "valency": 2
    }
  ]
}

I am using the --host-addr 0.0.0.0 option to run both BP and relay nodes.
Earlier when I was using --host-addr xx.xx.xx.xx option even my BP node was not connecting to the relay node. Now the BP node is connected and syncing with the relay node, but relay node canโ€™t connect to the BP node. Am I missing anything, please help, I just got started with staking.

Hey there,
welcome to the cardano community! :slight_smile: :coffee:

First of all, just to be sure: Your firewalls allow the corresponding traffic, right?
In case you are running your nodes with ubuntu, please check the rules by

sudo ufw status

Do your nodes have multiple network interfaces?
Could you try running your nodes without parameter --host-addr 0.0.0.0 ?

can you share little bit more info on what kind of setup you have?
are the nodes running on one server or on several?
are you using own servers or VPS?

there could be several reasons, most probably in your case itโ€™s firewall

as @CardanoCafe already mentioned - check your local firewall. if you are using AWS/GCP/DO or any other platform, check in the control panel if you have opened the ports

let me know if you need help with that.
cheers,
Lauris

1 Like