Relay Node unable to connect to Producer node

Hi all I have just installed 2 x Ubuntu 20.04 LTS servers. I have configured them both and am running them in a local network.

My relay node is working great however it can’t connect to my producer node. However my producer node can connect to my relay.

This is not a networking issue as they are in the same subnet and software firewall is off, this is for sure a configuration issue. I have tried changing the port and also running with:

cardano-node run --topology ~/mainnet-topology.json --database-path db/ --socket-path node.socket --host-addr --port 3032 --config ~/mainnet-config.json


On my producer node port is listening:

tcp LISTEN 0 8*

And is connected to the relay:

tcp ESTAB 0 0

However the relay won’t connect with the error:

[CryptoRo:cardano.node.IpSubscription:Notice:303] [2021-02-25 07:57:57.47 UTC] IPs: [] Connection Attempt End, destination outcome: ConnectSuccessLast
[CryptoRo:cardano.node.IpSubscription:Info:303] [2021-02-25 07:57:57.47 UTC] IPs: [] Closed socket to
[CryptoRo:cardano.node.IpSubscription:Error:82] [2021-02-25 07:57:57.50 UTC] IPs: [] Failed to start all required subscriptions

I am running 10.25.1, does anyone have any ideas? Do i need to reinstall my producer node?

I have checked the node.socket and its path varialbe which are good also on both side.

Is there a way for debug logging in cardano-node?

can you try from your relay

telnet PRODUCER_IP 3002

what is the output?

Telnet is working:

~# telnet 10..0.3 3032
Trying 10.
Connected to 10.***.0.3.
Escape character is ‘^]’.

ok. now check in your topology updater script, u wrote the right address?

Do you mean here:

root@Relay:~# cat mainnet-topology.json
“Producers”: [
“addr”: “”,
“port”: 3001,
“valency”: 2
“addr”: “10.***.0.3”,
“port”: 3032,
“valency”: 2

The address is correct, I also found an occasional error in the producer log which looks like this:

[:cardano.node.ErrorPolicy:Warning:77] [2021-02-25 09:08:38.00 UTC] IP ErrorPolicySuspendPeer (Just (ApplicationExceptionTrace (MuxError (MuxIOException Network.Socket.recvBuf: resource vanished (Connection reset by peer)) “(recv errored)”))) 20s 20s

But that doesn’t happen very often only really when i restart the produce i think.

If I stop the producer node, the relay node shows this error:

[:cardano.node.ErrorPolicy:Notice:76] [2021-02-25 09:05:07.96 UTC] IP 10.***.0.3:3032 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 49>: does not exist (Connection refused))) 20s

So i am sure it is not a networking issue as it sees the port once its started, the producer is just refusing the connection for some reason.

the relay and Producer are synced? I know mines not connecting to Producer if them are not synced

Relay is synced but the producer is still syncing from the relay, could that be the issue?

Yes, this is the issue; wait till Producer will be synced

Okay no problem at all thanks for your help! Will update once synced

1 Like