I’m running two docker containers (one for block producer, one for relay), both are connected to the same docker network (bridge), both have their ports opened, but starting the cardano-block It’s unable to connect to the relay.
Any ideas?
Sample error is:
[95b6abb9:cardano.node.IpSubscription:Info:54] [2021-05-20 00:44:17.42 UTC] IPs: 0.0.0.0:0 [172.17.0.2:3001] Connection Attempt Start, destination 172.17.0.2:3001 [95b6abb9:cardano.node.IpSubscription:Error:54] [2021-05-20 00:44:17.42 UTC] IPs: 0.0.0.0:0 [172.17.0.2:3001] Connection Attempt Exception, destination 172.17.0.2:3001 exception: Network.Socket.connect: <socket: 25>: does not exist (Connection refused) [95b6abb9:cardano.node.IpSubscription:Info:54] [2021-05-20 00:44:17.42 UTC] IPs: 0.0.0.0:0 [172.17.0.2:3001] Closed socket to 172.17.0.2:3001 [95b6abb9:cardano.node.ErrorPolicy:Notice:51] [2021-05-20 00:44:17.42 UTC] IP 172.17.0.2:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 25>: does not exist (Connection refused))) 20s [95b6abb9:cardano.node.IpSubscription:Error:53] [2021-05-20 00:44:17.44 UTC] IPs: 0.0.0.0:0 [172.17.0.2:3001] Failed to start all required subscriptions
Docker configuration:
- $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0af457255172 ubuntu "/bin/bash" 19 hours ago Up 19 hours cold-machine 95b6abb97ac1 cardano-block-v2:production "/bin/bash" 47 hours ago Up 42 hours 0.0.0.0:6000->6000/tcp, :::6000->6000/tcp cardano-block a643ac348cfd ubuntu "bash" 2 days ago Up 42 hours 0.0.0.0:3001->3001/tcp, :::3001->3001/tcp cardano-relay
- $ docker inspect bridge
"Containers": { "95b6abb97ac1c619443870781b1e9fa17c8a4d30bc991371331a11cb7c9c0583": { "Name": "cardano-block", "EndpointID": "ef09463393d166f46c4e108176488f726fa4f0d6448eda3452ca0bb52fff792b", "MacAddress": "02:42:ac:11:00:03", "IPv4Address": "172.17.0.3/16", "IPv6Address": "" }, "a643ac348cfda479c31f979ade79c5a6e0e0fd41e2b904c24bb7ab3ea463e61d": { "Name": "cardano-relay", "EndpointID": "2fa275f68e743ab907cc94d0d2da43024b13da550930768d11a760abc5dd371e", "MacAddress": "02:42:ac:11:00:02", "IPv4Address": "172.17.0.2/16", "IPv6Address": "" }
- mainnet-topology.json (block-producer)
{ "Producers": [ { "addr": "172.17.0.2", "port": 3001, "valency": 1 } ] }
- mainnet-topology (relay node)
{ "Producers": [ { "addr": "relays-new.cardano-mainnet.iohk.io", "port": 3001, "valency": 2 }, { "addr": "172.17.0.3", "port": 6000, "valency": 1 } ] }
I believe the relay node is up and running and working, I guess the cardano-block container just can’t reach to it for some reason?
$ ./startRelayNode1.sh
Listening on http://127.0.0.1:12798 [a643ac34:cardano.node.networkMagic:Notice:5] [2021-05-20 00:44:02.52 UTC] NetworkMagic 764824073 [a643ac34:cardano.node.basicInfo.protocol:Notice:5] [2021-05-20 00:44:02.52 UTC] Byron; Shelley [a643ac34:cardano.node.basicInfo.version:Notice:5] [2021-05-20 00:44:02.52 UTC] 1.27.0 [a643ac34:cardano.node.basicInfo.commit:Notice:5] [2021-05-20 00:44:02.52 UTC] 8fe46140a52810b6ca456be01d652ca08fe730bf [a643ac34:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-05-20 00:44:02.52 UTC] 2021-05-20 00:44:02.523784248 UTC [a643ac34:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-05-20 00:44:02.52 UTC] 2017-09-23 21:44:51 UTC [a643ac34:cardano.node.basicInfo.slotLengthByron:Notice:5] [2021-05-20 00:44:02.52 UTC] 20s [a643ac34:cardano.node.basicInfo.epochLengthByron:Notice:5] [2021-05-20 00:44:02.52 UTC] 21600 [a643ac34:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-05-20 00:44:02.52 UTC] 1s [a643ac34:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-05-20 00:44:02.52 UTC] 432000 [a643ac34:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-05-20 00:44:02.52 UTC] 129600 [a643ac34:cardano.node.basicInfo.slotLengthAllegra:Notice:5] [2021-05-20 00:44:02.52 UTC] 1s [a643ac34:cardano.node.basicInfo.epochLengthAllegra:Notice:5] [2021-05-20 00:44:02.52 UTC] 432000 [a643ac34:cardano.node.basicInfo.slotsPerKESPeriodAllegra:Notice:5] [2021-05-20 00:44:02.52 UTC] 129600 [a643ac34:cardano.node.basicInfo.slotLengthMary:Notice:5] [2021-05-20 00:44:02.52 UTC] 1s [a643ac34:cardano.node.basicInfo.epochLengthMary:Notice:5] [2021-05-20 00:44:02.52 UTC] 432000 [a643ac34:cardano.node.basicInfo.slotsPerKESPeriodMary:Notice:5] [2021-05-20 00:44:02.52 UTC] 129600 [a643ac34:cardano.node.addresses:Notice:5] [2021-05-20 00:44:02.52 UTC] [SocketInfo 0.0.0.0:6000] [a643ac34:cardano.node.diffusion-mode:Notice:5] [2021-05-20 00:44:02.52 UTC] InitiatorAndResponderDiffusionMode [a643ac34:cardano.node.dns-producers:Notice:5] [2021-05-20 00:44:02.52 UTC] [DnsSubscriptionTarget {dstDomain = "relays-new.cardano-mainnet.iohk.io", dstPort = 3001, dstValency = 2}] [a643ac34:cardano.node.ip-producers:Notice:5] [2021-05-20 00:44:02.52 UTC] IPSubscriptionTarget {ispIps = [172.17.0.3:6000], ispValency = 1}
(Currently following tutorial from CoinCashew)